review request
cover review request
Please review these next set of changes for gatesgarth. Builds cleanly on autobuilder.
Thanks,
Anuj
The following changes since commit 6311cb4930bd0add7aec61e5e0df6bb7ae0c4481:
libsdl2: fix CVE-2020-14409 CVE-2020-14410 (2021-03-10 00:24:18 +0000)
are available in the Git repository at:
git://push.openembedded.org/openembedded-core-contrib stable/gatesgarth-next
Alejandro Hernandez Samaniego (1):
devtool: Fix do_kernel_configme task
Anatol Belski (1):
glib-2.0: Fix CVE-2021-27219
Anuj Mittal (1):
Revert "sstatesig.py: show an error instead of warning when sstate
manifest isn't found"
Bruce Ashfield (3):
linux-yocto/5.4: update to v5.4.99
linux-yocto/5.4: update to v5.4.101
linux-yocto/5.4: update to v5.4.103
Chen Qi (2):
python3-jinja2: set CVE_PRODUCT
populate_sdk_ext: record METADATA_REVISION
Jon Mason (1):
runqemu: use "raw" instead of "bin" for ovmf
Martin Jansa (1):
iso-codes: fix protocol in SRC_URI
Mike Crowe (1):
gcc-sanitizers: Move content from gcclibdir into libdir
Minjae Kim (1):
qemu: fix CVE-2021-20203
Purushottam Choudhary (1):
shadow: whitelist CVE-2013-4235
Richard Leitner (1):
xcb-proto: update to 1.14.1
Richard Purdie (6):
libsecret: Improve determimism
igt-gpu-tools: Fix reproducibility issue
apr-util: Fix CFLAGS used in build selftest/reproducible: Don't call sync between each file compare gstreamer1.0-python: Set internal python library path correcty
build-appliance-image: Drop kernel module handling
Ross Burton (2):
libinput: less parallism to increase chances the test suite works
ptest-packagelists: remove libinput-ptest
Stefan Ghinea (1):
wpa-supplicant: fix CVE-2021-27803
Stefan Schmidt (1):
systemd-conf: do not ask for DHCP if configured on kernel command line
Ulrich Ölmann (1):
local.conf.sample: fix typo
meta/classes/populate_sdk_ext.bbclass | 3 +
.../distro/include/ptest-packagelists.inc | 2 +-
meta/conf/local.conf.sample | 2 +-
meta/lib/oe/sstatesig.py | 2 +-
meta/lib/oeqa/selftest/cases/reproducible.py | 2 +-
.../wpa-supplicant/CVE-2021-27803.patch | 58 +
.../wpa-supplicant/wpa-supplicant_2.9.bb | 1 +
.../glib-2.0/glib-2.0/CVE-2021-27219.patch | 1444 +++++++++++++++++
meta/recipes-core/glib-2.0/glib-2.0_2.64.5.bb | 1 +
.../images/build-appliance-image_15.0.0.bb | 8 +-
.../systemd/systemd-conf/wired.network | 1 +
.../systemd/systemd-conf_246.9.bb | 3 -
meta/recipes-devtools/gcc/gcc-sanitizers.inc | 7 +-
.../python/python3-jinja2_2.11.2.bb | 2 +
meta/recipes-devtools/qemu/qemu.inc | 1 +
.../qemu/qemu/CVE-2021-20203.patch | 74 +
meta/recipes-extended/shadow/shadow_4.8.1.bb | 5 +-
.../libsecret/libsecret/determinism.patch | 37 +
.../libsecret/libsecret_0.20.3.bb | 3 +-
.../igt-gpu-tools/reproducibility.patch | 38 +
.../igt-gpu-tools/igt-gpu-tools_git.bb | 5 +-
.../wayland/libinput/run-ptest | 2 +-
...{xcb-proto_1.14.bb => xcb-proto_1.14.1.bb} | 4 +-
.../linux/linux-yocto-rt_5.4.bb | 6 +-
.../linux/linux-yocto-tiny_5.4.bb | 8 +-
meta/recipes-kernel/linux/linux-yocto_5.4.bb | 22 +-
.../gstreamer/gstreamer1.0-python_1.16.3.bb | 2 +
meta/recipes-support/apr/apr-util_1.6.1.bb | 2 +
.../iso-codes/iso-codes_4.5.0.bb | 2 +-
scripts/lib/devtool/standard.py | 7 +-
scripts/runqemu | 2 +
31 files changed, 1713 insertions(+), 43 deletions(-)
create mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/CVE-2021-27803.patch
create mode 100644 meta/recipes-core/glib-2.0/glib-2.0/CVE-2021-27219.patch
create mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-20203.patch
create mode 100644 meta/recipes-gnome/libsecret/libsecret/determinism.patch
create mode 100644 meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/reproducibility.patch
rename meta/recipes-graphics/xorg-proto/{xcb-proto_1.14.bb => xcb-proto_1.14.1.bb} (84%)Signature · 1 line
2.30.2
PATCH 1/25 qemu: fix CVE-2021-20203
From: Minjae Kim <[email protected]>
net: vmxnet3: validate configuration values during activate
Upstream-Status: Acepted [https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg07935.html]
CVE: CVE-2021-20203
--- meta/recipes-devtools/qemu/qemu.inc | 1 + .../qemu/qemu/CVE-2021-20203.patch | 74 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2021-20203.patch
meta/recipes-devtools/qemu/qemu.inc +1 -0
@@ -39,6 +39,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ file://CVE-2020-28916.patch \ file://CVE-2020-35517.patch \ file://CVE-2020-29443.patch \ + file://CVE-2021-20203.patch \ " UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
meta/recipes-devtools/qemu/qemu/CVE-2021-20203.patch new file +74 -0
74 lines not on this page · raw message
Signature · 1 line
2.30.2
PATCH 2/25 wpa-supplicant: fix CVE-2021-27803
In reply to Anuj MittalFrom: Stefan Ghinea <[email protected]>
A vulnerability was discovered in how p2p/p2p_pd.c in wpa_supplicant before 2.10 processes P2P (Wi-Fi Direct) provision discovery requests. It could result in denial of service or other impact (potentially execution of arbitrary code), for an attacker within radio range.
References:
https://nvd.nist.gov/vuln/detail/CVE-2021-27803
Upstream patches:
https://w1.fi/cgit/hostap/commit/?id=8460e3230988ef2ec13ce6b69b687e941f6cdb32
--- .../wpa-supplicant/CVE-2021-27803.patch | 58 +++++++++++++++++++ .../wpa-supplicant/wpa-supplicant_2.9.bb | 1 + 2 files changed, 59 insertions(+) create mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/CVE-2021-27803.patch
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/CVE-2021-27803.patch new file +58 -0
@@ -0,0 +1,58 @@ +From 8460e3230988ef2ec13ce6b69b687e941f6cdb32 Mon Sep 17 00:00:00 2001 +From: Jouni Malinen <[email protected]> +Date: Tue, 8 Dec 2020 23:52:50 +0200 +Subject: [PATCH] P2P: Fix a corner case in peer addition based on PD Request + +p2p_add_device() may remove the oldest entry if there is no room in the +peer table for a new peer. This would result in any pointer to that +removed entry becoming stale. A corner case with an invalid PD Request +frame could result in such a case ending up using (read+write) freed +memory. This could only by triggered when the peer table has reached its +maximum size and the PD Request frame is received from the P2P Device +Address of the oldest remaining entry and the frame has incorrect P2P +Device Address in the payload. + +Fix this by fetching the dev pointer again after having called +p2p_add_device() so that the stale pointer cannot be used. + +Fixes: 17bef1e97a50 ("P2P: Add peer entry based on Provision Discovery Request") +Signed-off-by: Jouni Malinen <[email protected]> + +Upstream-Status: Backport +CVE: CVE-2021-27803 + +Reference to upstream patch: +[https://w1.fi/cgit/hostap/commit/?id=8460e3230988ef2ec13ce6b69b687e941f6cdb32] + +Signed-off-by: Stefan Ghinea <[email protected]> +--- + src/p2p/p2p_pd.c | 12 +++++------- + 1 file changed, 5 insertions(+), 7 deletions(-) + +diff --git a/src/p2p/p2p_pd.c b/src/p2p/p2p_pd.c +index 3994ec0..05fd593 100644 +--- a/src/p2p/p2p_pd.c ++++ b/src/p2p/p2p_pd.c +@@ -595,14 +595,12 @@ void p2p_process_prov_disc_req(struct p2p_data *p2p, const u8 *sa, + goto out; + } + ++ dev = p2p_get_device(p2p, sa); + if (!dev) { +- dev = p2p_get_device(p2p, sa); +- if (!dev) { +- p2p_dbg(p2p, +- "Provision Discovery device not found " +- MACSTR, MAC2STR(sa)); +- goto out; +- } ++ p2p_dbg(p2p, ++ "Provision Discovery device not found " ++ MACSTR, MAC2STR(sa)); ++ goto out; + } + } else if (msg.wfd_subelems) { + wpabuf_free(dev->info.wfd_subelems); +-- +2.17.1 +
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb +1 -0
@@ -30,6 +30,7 @@ SRC_URI = "http://w1.fi/releases/wpa_supplicant-${PV}.tar.gz \ file://0002-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch \ file://0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch \ file://CVE-2021-0326.patch \ + file://CVE-2021-27803.patch \ " SRC_URI[md5sum] = "2d2958c782576dc9901092fbfecb4190" SRC_URI[sha256sum] = "fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17"
Signature · 1 line
2.30.2
PATCH 3/25 libinput: less parallism to increase chances the test suite works
In reply to Anuj MittalFrom: Ross Burton <[email protected]>
Discussion with the libinput maintainer has confirmed that many of the libinput test cases need to run on a relatively unloaded system, because input handling is by definition time-sensitive and any event mismatches are considered a failure to avoid broken code hiding.
We can't expect libinput to run on an otherside unloaded machine because the autobuilder ptests execute in a qemu at the same time as builds can be happening. We can however reduce the amount of parallellism happening in the libinput test suite to give it a better chance of succeeding.
This may not be enough, but it's worth a go.
[ YOCTO #14164 ]
--- meta/recipes-graphics/wayland/libinput/run-ptest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/wayland/libinput/run-ptest +1 -1
@@ -1,6 +1,6 @@ #!/bin/sh -/usr/libexec/libinput/libinput-test-suite +/usr/libexec/libinput/libinput-test-suite -j1 if [ $? -eq 0 ]; then echo 'PASS: libinput-test-suite' else
Signature · 1 line
2.30.2
PATCH 4/25 local.conf.sample: fix typo
In reply to Anuj MittalFrom: Ulrich Ölmann <[email protected]>
--- meta/conf/local.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/local.conf.sample +1 -1
@@ -185,7 +185,7 @@ BB_DISKMON_DIRS ??= "\ # # Shared-state files from other locations # -# As mentioned above, shared state files are prebuilt cache data objects which can +# As mentioned above, shared state files are prebuilt cache data objects which can be # used to accelerate build time. This variable can be used to configure the system # to search other mirror locations for these objects before it builds the data itself. #
Signature · 1 line
2.30.2
PATCH 5/25 linux-yocto/5.4: update to v5.4.99
In reply to Anuj MittalFrom: Bruce Ashfield <[email protected]>
Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits:
850e6a95deb5 Linux 5.4.99
e8ffaca0fe27 ovl: expand warning in ovl_d_real()
b55528a18e40 net/qrtr: restrict user-controlled length in qrtr_tun_write_iter() 99996cd558ba net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS ac79b1d94a88 vsock: fix locking in vsock_shutdown()
c025081b57df vsock/virtio: update credit only if socket is not closed 2545c5bd8316 net: watchdog: hold device global xmit lock during tx disable a5f0b6f7b1c0 net/vmw_vsock: improve locking in vsock_connect_timeout() 611d93fbea54 net: fix iteration for sctp transport seq_files
2085d886630a net: gro: do not keep too many GRO packets in napi->rx_list 5c53956a8da0 net: dsa: call teardown method on probe failure
0b42ab078369 udp: fix skb_copy_and_csum_datagram with odd segment sizes 73bc75fda669 rxrpc: Fix clearance of Tx/Rx ring when releasing a call b90e8d5d28d1 usb: dwc3: ulpi: Replace CPU-based busyloop with Protocol-based one 35834bf0b210 usb: dwc3: ulpi: fix checkpatch warning
0b49b82eeea2 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 1019015a5dca i2c: stm32f7: fix configuration of the digital filter 546d92a43c94 clk: sunxi-ng: mp: fix parent rate change flag check b02db23d2647 drm/sun4i: dw-hdmi: Fix max. frequency for H6
40db7dba50fe drm/sun4i: Fix H6 HDMI PHY configuration
3063b80b4bdf drm/sun4i: tcon: set sync polarity for tcon1 channel 107cf5eede74 firmware_loader: align .builtin_fw to 8
beb85f4927e8 net: hns3: add a check for queue_id in hclge_reset_vf_queue() a045956a3b41 x86/build: Disable CET instrumentation in the kernel for 32-bit too da1a5442ad2c netfilter: conntrack: skip identical origin tuple in same zone only 0142b957866f ibmvnic: Clear failover_pending if unable to schedule 3f8954cc624c net: stmmac: set TxQ mode back to DCB after disabling CBS c0daa74b8ed7 selftests: txtimestamp: fix compilation issue
6107338c2fa2 net: enetc: initialize the RFS and RSS memories
71d2bd7921db xen/netback: avoid race in xenvif_rx_ring_slots_available() ff758e8a77f3 netfilter: flowtable: fix tcp and udp header checksum update b110391d1e80 netfilter: nftables: fix possible UAF over chains from packet path in netns 35c279e02b7e netfilter: xt_recent: Fix attempt to update deleted entry 7e3a6b820535 bpf: Check for integer overflow when using roundup_pow_of_two() e29126678f65 drm/vc4: hvs: Fix buffer overflow with the dlist handling 69beec4a8b36 mt76: dma: fix a possible memory leak in mt76_add_fragment() 8a5991c8214b lkdtm: don't move ctors to .rodata
4f5416710e13 vmlinux.lds.h: Create section for protection against instrumentation b7f41a7ad444 ARM: kexec: fix oops after TLB are invalidated
f49bff85b6db ARM: ensure the signal page contains defined contents 06350c7f7923 ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL e60577e29deb bfq-iosched: Revert "bfq: Fix computation of shallow depth" 91d604ab2a99 riscv: virt_addr_valid must check the address belongs to linear mapping 0db8d192ee57 drm/amd/display: Decrement refcount of dc_sink before reassignment 5c8f63266255 drm/amd/display: Free atomic state after drm_atomic_commit f35da70b516f drm/amd/display: Fix dc_sink kref count in emulated_link_detect 76979956a8af drm/amd/display: Add more Clock Sources to DCN2.1 4516a0a2c087 nvme-pci: ignore the subsysem NQN on Phison E16
335a285aa0f0 ovl: skip getxattr of security labels
43e3cf46afb1 cap: fix conversions on getxattr
df094aa0aab0 ovl: perform vfs_getxattr() with mounter creds
cc512646b2e7 platform/x86: hp-wmi: Disable tablet-mode reporting by default 2bb22cd4dae4 ARM: OMAP2+: Fix suspcious RCU usage splats for omap_enter_idle_coupled 2cb208ba0fd1 arm64: dts: qcom: sdm845: Reserve LPASS clocks in gcc 92c40ed0abcb arm64: dts: rockchip: Fix PCIe DT properties on rk3399 2407794f2298 cgroup: fix psi monitor for root cgroup
18d691d837b3 arm/xen: Don't probe xenbus as part of an early initcall a0997a86f5c0 tracing: Check length before giving out the filter buffer 74c7bafdd303 tracing: Do not count ftrace events in top level enable output 4851d7b340e9 gpio: ep93xx: Fix single irqchip with multi gpiochips 2c5abe0f8e9c gpio: ep93xx: fix BUG_ON port F usage
--- .../linux/linux-yocto-rt_5.4.bb | 6 ++--- .../linux/linux-yocto-tiny_5.4.bb | 8 +++---- meta/recipes-kernel/linux/linux-yocto_5.4.bb | 22 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb +3 -3
@@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "0406e600800a40015d02b16ee6a4a46c6673c66f" -SRCREV_meta ?= "4f6d6c23cc8ca5d9c39b1efc2619b1dfec1ef2bc" +SRCREV_machine ?= "b2502919947df2b3d135c92e1749e13844312102" +SRCREV_meta ?= "c69f1109d70d869c0b0560771f825b97fac5a7e0" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.4.98" +LINUX_VERSION ?= "5.4.99" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb +4 -4
@@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.4.98" +LINUX_VERSION ?= "5.4.99" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine_qemuarm ?= "fc95a485415d22eb772359b8d350c03b85c0cd1b" -SRCREV_machine ?= "2d0a4ea86fe97f13a4bc2a92a097e4edb51d737d" -SRCREV_meta ?= "4f6d6c23cc8ca5d9c39b1efc2619b1dfec1ef2bc" +SRCREV_machine_qemuarm ?= "7d5c1d38ab787f5aefc81fc5dec49e620a26a749" +SRCREV_machine ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" +SRCREV_meta ?= "c69f1109d70d869c0b0560771f825b97fac5a7e0" PV = "${LINUX_VERSION}+git${SRCPV}"
meta/recipes-kernel/linux/linux-yocto_5.4.bb +11 -11
@@ -12,16 +12,16 @@ KBRANCH_qemux86 ?= "v5.4/standard/base" KBRANCH_qemux86-64 ?= "v5.4/standard/base" KBRANCH_qemumips64 ?= "v5.4/standard/mti-malta64" -SRCREV_machine_qemuarm ?= "28bc6b294bb1e49da671b2848234f9011efcad88" -SRCREV_machine_qemuarm64 ?= "2d0a4ea86fe97f13a4bc2a92a097e4edb51d737d" -SRCREV_machine_qemumips ?= "105568d1696f86625cf7bc30d8c5c921732de2f4" -SRCREV_machine_qemuppc ?= "2d0a4ea86fe97f13a4bc2a92a097e4edb51d737d" -SRCREV_machine_qemuriscv64 ?= "2d0a4ea86fe97f13a4bc2a92a097e4edb51d737d" -SRCREV_machine_qemux86 ?= "2d0a4ea86fe97f13a4bc2a92a097e4edb51d737d" -SRCREV_machine_qemux86-64 ?= "2d0a4ea86fe97f13a4bc2a92a097e4edb51d737d" -SRCREV_machine_qemumips64 ?= "c76ba20ee1b1de859736f85f0210459c2104b8df" -SRCREV_machine ?= "2d0a4ea86fe97f13a4bc2a92a097e4edb51d737d" -SRCREV_meta ?= "4f6d6c23cc8ca5d9c39b1efc2619b1dfec1ef2bc" +SRCREV_machine_qemuarm ?= "a8aad3b73d3a70d40114968a35740605310c5242" +SRCREV_machine_qemuarm64 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" +SRCREV_machine_qemumips ?= "ab621e6177fe53efa5b5ec06dc68c1253ba1aa13" +SRCREV_machine_qemuppc ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" +SRCREV_machine_qemuriscv64 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" +SRCREV_machine_qemux86 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" +SRCREV_machine_qemux86-64 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" +SRCREV_machine_qemumips64 ?= "401e403397ee46c782ba1246ea04eb02fc20d0be" +SRCREV_machine ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" +SRCREV_meta ?= "c69f1109d70d869c0b0560771f825b97fac5a7e0" # remap qemuarm to qemuarma15 for the 5.4 kernel # KMACHINE_qemuarm ?= "qemuarma15"
@@ -30,7 +30,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" -LINUX_VERSION ?= "5.4.98" +LINUX_VERSION ?= "5.4.99" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native"
Signature · 1 line
2.30.2
PATCH 6/25 linux-yocto/5.4: update to v5.4.101
In reply to Anuj MittalFrom: Bruce Ashfield <[email protected]>
Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits:
ef1fcccf6e5f Linux 5.4.101
fe257f47e2c3 scripts/recordmcount.pl: support big endian for ARCH sh
a2c5e4a083a7 cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath. e6f7bf29e32d cxgb4: Add new T6 PCI device id 0x6092
aaf830ad624a NET: usb: qmi_wwan: Adding support for Cinterion MV31
5f2093be3627 KVM: Use kvm_pfn_t for local PFN variable in hva_to_pfn_remapped() 3f9fbe703164 mm: provide a saner PTE walking API for modules
32f070ad274d KVM: do not assume PTE is writable after follow_pfn
78c7b242573a mm: simplify follow_pte{,pmd}
8aeef9c9ac7e mm: unexport follow_pte_pmd
8f869895cf9d scripts: set proper OpenSSL include dir also for sign-file c7ed0a50f20a scripts: use pkg-config to locate libcrypto
c8e3bcc6db7c arm64: tegra: Add power-domain for Tegra210 HDA
74c8a6af692a ntfs: check for valid standard information attribute
54a3c25368d9 usb: quirks: add quirk to start video capture on ELMO L-12F document camera reliable 96ef50ec7266 USB: quirks: sort quirk entries
fce3654c648d HID: make arrays usage and value to be the same
185c2266c1df bpf: Fix truncation handling for mod32 dst reg wrt zero
fc944ddc0b4a Linux 5.4.100
38d777aaf2c3 btrfs: fix backport of 2175bf57dc952 in 5.4.95
c6dd8545fe38 media: pwc: Use correct device for DMA
524a77aa5d69 xen-blkback: fix error handling in xen_blkbk_map()
be05138a9cdd xen-scsiback: don't "handle" error by BUG()
52e8f43af540 xen-netback: don't "handle" error by BUG()
7109f61d25ff xen-blkback: don't "handle" error by BUG()
55ccf71c0985 xen/arm: don't ignore return errors from set_phys_to_machine feda880969a5 Xen/gntdev: correct error checking in gntdev_map_grant_pages() 0e382682dda4 Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages() da92e41f010e Xen/x86: also check kernel mapping in set_foreign_p2m_mapping() 104eef952314 Xen/x86: don't bail early from clear_foreign_p2m_mapping() 49de0a17e68f net: bridge: Fix a warning when del bridge sysfs
c35ce3d38caa net: qrtr: Fix port ID for control messages
f49731dfdb20 KVM: SEV: fix double locking due to incorrect backport
--- .../linux/linux-yocto-rt_5.4.bb | 6 ++--- .../linux/linux-yocto-tiny_5.4.bb | 8 +++---- meta/recipes-kernel/linux/linux-yocto_5.4.bb | 22 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb +3 -3
@@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "b2502919947df2b3d135c92e1749e13844312102" -SRCREV_meta ?= "c69f1109d70d869c0b0560771f825b97fac5a7e0" +SRCREV_machine ?= "207cc4c23780d4dd0b40960b1364c75a54437102" +SRCREV_meta ?= "b11f59557b924d5d1db8c088848d40ef1a0b7da6" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.4.99" +LINUX_VERSION ?= "5.4.101" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb +4 -4
@@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.4.99" +LINUX_VERSION ?= "5.4.101" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine_qemuarm ?= "7d5c1d38ab787f5aefc81fc5dec49e620a26a749" -SRCREV_machine ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" -SRCREV_meta ?= "c69f1109d70d869c0b0560771f825b97fac5a7e0" +SRCREV_machine_qemuarm ?= "ca4fa7f9d562a9be1ca7d9d47fa7c2b70d9bb249" +SRCREV_machine ?= "3a8744ea60ad663c53c582d519a636658e405994" +SRCREV_meta ?= "b11f59557b924d5d1db8c088848d40ef1a0b7da6" PV = "${LINUX_VERSION}+git${SRCPV}"
meta/recipes-kernel/linux/linux-yocto_5.4.bb +11 -11
@@ -12,16 +12,16 @@ KBRANCH_qemux86 ?= "v5.4/standard/base" KBRANCH_qemux86-64 ?= "v5.4/standard/base" KBRANCH_qemumips64 ?= "v5.4/standard/mti-malta64" -SRCREV_machine_qemuarm ?= "a8aad3b73d3a70d40114968a35740605310c5242" -SRCREV_machine_qemuarm64 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" -SRCREV_machine_qemumips ?= "ab621e6177fe53efa5b5ec06dc68c1253ba1aa13" -SRCREV_machine_qemuppc ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" -SRCREV_machine_qemuriscv64 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" -SRCREV_machine_qemux86 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" -SRCREV_machine_qemux86-64 ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" -SRCREV_machine_qemumips64 ?= "401e403397ee46c782ba1246ea04eb02fc20d0be" -SRCREV_machine ?= "517defa4ffb28867801c15f773fd3742fb22c4f5" -SRCREV_meta ?= "c69f1109d70d869c0b0560771f825b97fac5a7e0" +SRCREV_machine_qemuarm ?= "fe56acd0cb4769b18e8dd778f74f8c64c8622f0c" +SRCREV_machine_qemuarm64 ?= "3a8744ea60ad663c53c582d519a636658e405994" +SRCREV_machine_qemumips ?= "4ddbef4e60bc7e13f2a33f57c3c6dc6ca71e0d81" +SRCREV_machine_qemuppc ?= "3a8744ea60ad663c53c582d519a636658e405994" +SRCREV_machine_qemuriscv64 ?= "3a8744ea60ad663c53c582d519a636658e405994" +SRCREV_machine_qemux86 ?= "3a8744ea60ad663c53c582d519a636658e405994" +SRCREV_machine_qemux86-64 ?= "3a8744ea60ad663c53c582d519a636658e405994" +SRCREV_machine_qemumips64 ?= "44f1e579ba921196f7c3b36e47473b907e09870e" +SRCREV_machine ?= "3a8744ea60ad663c53c582d519a636658e405994" +SRCREV_meta ?= "b11f59557b924d5d1db8c088848d40ef1a0b7da6" # remap qemuarm to qemuarma15 for the 5.4 kernel # KMACHINE_qemuarm ?= "qemuarma15"
@@ -30,7 +30,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" -LINUX_VERSION ?= "5.4.99" +LINUX_VERSION ?= "5.4.101" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native"
Signature · 1 line
2.30.2
PATCH 7/25 shadow: whitelist CVE-2013-4235
In reply to Anuj MittalFrom: Purushottam Choudhary <[email protected]>
This CVE is about TOCTOU (time-of-check time-of-use) race condition when copying and removing directory trees which had very low severity problem and marked as closed and won't fix. Therefore whitelisted CVE-2013-4235. Master, gatesgarth and dunfell all have shadow version 4.81. Hence, this is applicable for master, gatesgarth and dunfell.
--- meta/recipes-extended/shadow/shadow_4.8.1.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-extended/shadow/shadow_4.8.1.bb +3 -2
@@ -6,5 +6,6 @@ BUILD_LDFLAGS_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'p BBCLASSEXTEND = "native nativesdk" - - +# Severity is low and marked as closed and won't fix. +# https://bugzilla.redhat.com/show_bug.cgi?id=884658 +CVE_CHECK_WHITELIST += "CVE-2013-4235"
Signature · 1 line
2.30.2
PATCH 8/25 ptest-packagelists: remove libinput-ptest
In reply to Anuj MittalFrom: Ross Burton <[email protected]>
The libinput ptests are very sensitive to system load, and will fail if events from the kernel don't arrive sufficiently fast (from 20ms to 200ms depending on the test).
This is by design as input processing is inherently time-sensitive and to avoid code bugs the test suite considers timing problems fatal.
As this is causing a large proportion of ptest runs to fail in libinput, disable the execution of these tests for now.
[ YOCTO #14164 ]
--- meta/conf/distro/include/ptest-packagelists.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/distro/include/ptest-packagelists.inc +1 -1
@@ -60,6 +60,7 @@ PTESTS_FAST_remove_mips64 = "qemu-ptest" # bash-ptest \ # Test outcomes are non-deterministic by design # ifupdown-ptest \ # Tested separately in lib/oeqa/selftest/cases/imagefeatures.py # mdadm-ptest \ # Tests rely on non-deterministic sleep() amounts +# libinput-ptest \ # Tests need an unloaded system to be reliable #" PTESTS_SLOW = "\
@@ -72,7 +73,6 @@ PTESTS_SLOW = "\ glib-2.0-ptest \ gstreamer1.0-ptest \ libevent-ptest \ - libinput-ptest \ lttng-tools-ptest \ openssh-ptest \ openssl-ptest \
Signature · 1 line
2.30.2
PATCH 9/25 python3-jinja2: set CVE_PRODUCT
In reply to Anuj MittalFrom: Chen Qi <[email protected]>
Set CVE_PRODUCT for more accurate CVE scanning.
--- meta/recipes-devtools/python/python3-jinja2_2.11.2.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-devtools/python/python3-jinja2_2.11.2.bb +2 -0
@@ -7,6 +7,8 @@ SRC_URI[sha256sum] = "89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c65 PYPI_PACKAGE = "Jinja2" +CVE_PRODUCT = "jinja2 jinja" + CLEANBROKEN = "1" inherit pypi setuptools3
Signature · 1 line
2.30.2
PATCH 10/25 libsecret: Improve determimism
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
--- .../libsecret/libsecret/determinism.patch | 37 +++++++++++++++++++ .../libsecret/libsecret_0.20.3.bb | 3 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-gnome/libsecret/libsecret/determinism.patch
meta/recipes-gnome/libsecret/libsecret/determinism.patch new file +37 -0
@@ -0,0 +1,37 @@ +secret-enum-types.c/h.template: Fix reproducibility issue + +When full filenames are used in generated sources it makes the resulting +debug packages non-reproducible. Best practise is to use basename in +comments instead. + +Signed-off-by: Richard Purdie [email protected] +Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/libsecret/-/merge_requests/68] + +Index: libsecret-0.20.4/libsecret/secret-enum-types.c.template +=================================================================== +--- libsecret-0.20.4.orig/libsecret/secret-enum-types.c.template ++++ libsecret-0.20.4/libsecret/secret-enum-types.c.template +@@ -23,8 +23,8 @@ + /*** END file-header ***/ + + /*** BEGIN file-production ***/ +-#include "@filename@" +-/* enumerations from "@filename@" */ ++#include "@basename@" ++/* enumerations from "@basename@" */ + /*** END file-production ***/ + + /*** BEGIN value-header ***/ +Index: libsecret-0.20.4/libsecret/secret-enum-types.h.template +=================================================================== +--- libsecret-0.20.4.orig/libsecret/secret-enum-types.h.template ++++ libsecret-0.20.4/libsecret/secret-enum-types.h.template +@@ -27,7 +27,7 @@ G_BEGIN_DECLS + + /*** BEGIN file-production ***/ + +-/* enumerations from "@filename@" */ ++/* enumerations from "@basename@" */ + /*** END file-production ***/ + + /*** BEGIN value-header ***/
meta/recipes-gnome/libsecret/libsecret_0.20.3.bb +2 -1
@@ -13,7 +13,8 @@ inherit gnomebase gtk-doc vala gobject-introspection manpages DEPENDS += "glib-2.0 libgcrypt gettext-native" -SRC_URI += "file://0001-meson-add-option-introspection.patch" +SRC_URI += "file://0001-meson-add-option-introspection.patch \ + file://determinism.patch" SRC_URI[archive.md5sum] = "47c3fdfeb111a87b509ad271e4a6f496" SRC_URI[archive.sha256sum] = "4fcb3c56f8ac4ab9c75b66901fb0104ec7f22aa9a012315a14c0d6dffa5290e4"
Signature · 1 line
2.30.2
PATCH 11/25 igt-gpu-tools: Fix reproducibility issue
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
Add a configuration option to pass in srcdir, removing hard coded build paths from the binaries.
--- .../igt-gpu-tools/reproducibility.patch | 38 +++++++++++++++++++ .../igt-gpu-tools/igt-gpu-tools_git.bb | 5 ++- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/reproducibility.patch
meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/reproducibility.patch new file +38 -0
@@ -0,0 +1,38 @@ +meson: Allow source location to be configurable + +Hardcoding a build source path into a binary when cross compiling isn't +appropriate and breaks build reproducibility. Allow the srcdir to be +specified by an optional configuration option to meson. + +Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org> +Upstream-Status: Submitted [https://lists.freedesktop.org/archives/igt-dev/2021-February/029443.html] + +Index: git/lib/meson.build +=================================================================== +--- git.orig/lib/meson.build ++++ git/lib/meson.build +@@ -122,7 +122,11 @@ if chamelium.found() + lib_sources += 'igt_chamelium_stream.c' + endif + +-srcdir = join_paths(meson.source_root(), 'tests') ++if get_option('srcdir') != '' ++ srcdir = join_paths(get_option('srcdir'), 'tests') ++else ++ srcdir = join_paths(meson.source_root(), 'tests') ++endif + + lib_version = vcs_tag(input : 'version.h.in', output : 'version.h', + fallback : 'NO-GIT', +Index: git/meson_options.txt +=================================================================== +--- git.orig/meson_options.txt ++++ git/meson_options.txt +@@ -50,3 +50,7 @@ option('use_rpath', + type : 'boolean', + value : false, + description : 'Set runpath on installed executables for libigt.so') ++ ++option('srcdir', ++ type : 'string', ++ description : 'Path to source code to be compiled into binaries (optional)')
meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb +3 -2
@@ -10,7 +10,8 @@ inherit meson SRCREV = "d16ad07e7f2a028e14d61f570931c87fa5ce404c" PV = "1.25+git${SRCPV}" -SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https" +SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https \ + file://reproducibility.patch" S = "${WORKDIR}/git"
@@ -22,7 +23,7 @@ PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests" PACKAGECONFIG[chamelium] = "-Dchamelium=enabled,-Dchamelium=disabled,gsl xmlrpc-c" -EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled" +EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dsrcdir=/usr/src/debug/${PN}/${PV}-${PR}/git/" COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux" COMPATIBLE_HOST_libc-musl_class-target = "null" SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}"
Signature · 1 line
2.30.2
PATCH 12/25 apr-util: Fix CFLAGS used in build
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
We need to use CFLAGS with the correct WORKDIR in them, replace those in the sysroot file with the ones appropriate to the current recipe.
--- meta/recipes-support/apr/apr-util_1.6.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-support/apr/apr-util_1.6.1.bb +2 -0
@@ -35,6 +35,7 @@ OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'" do_configure_append() { if [ "${CLASSOVERRIDE}" = "class-target" ]; then cp ${STAGING_DATADIR}/apr/apr_rules.mk ${B}/build/rules.mk + sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${B}/build/rules.mk fi } do_configure_prepend_class-native() {
@@ -49,6 +50,7 @@ do_configure_append_class-native() { do_configure_prepend_class-nativesdk() { cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk + sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${S}/build/rules.mk } do_configure_append_class-nativesdk() {
Signature · 1 line
2.30.2
PATCH 13/25 selftest/reproducible: Don't call sync between each file compare
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
Calling sync between each file compare is horrible performance wise as we compare thousands of files. We don't care about IO latency here so disable.
--- meta/lib/oeqa/selftest/cases/reproducible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/selftest/cases/reproducible.py +1 -1
@@ -68,7 +68,7 @@ def compare_file(reference, test, diffutils_sysroot): result.status = MISSING return result - r = runCmd(['cmp', '--quiet', reference, test], native_sysroot=diffutils_sysroot, ignore_status=True) + r = runCmd(['cmp', '--quiet', reference, test], native_sysroot=diffutils_sysroot, ignore_status=True, sync=False) if r.status: result.status = DIFFERENT
Signature · 1 line
2.30.2
PATCH 14/25 gstreamer1.0-python: Set internal python library path correcty
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
The library hardcodes paths to the python library internally and currently these are build paths. Fix this to use the correct target path and fix reproducibility in the process.
--- meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.16.3.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.16.3.bb +2 -0
@@ -16,6 +16,8 @@ PNREAL = "gst-python" S = "${WORKDIR}/${PNREAL}-${PV}" +EXTRA_OEMESON += "-Dlibpython-dir=${libdir}" + # gobject-introspection is mandatory and cannot be configured REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" UNKNOWN_CONFIGURE_WHITELIST_append = " introspection"
Signature · 1 line
2.30.2
PATCH 15/25 gcc-sanitizers: Move content from gcclibdir into libdir
In reply to Anuj MittalFrom: Mike Crowe <[email protected]>
Quoted 10 lines · Khem Raj
OE does not use the traditional
/usr/lib/gccprefix to store gcc-runtime it basically is moved into libdir, however some newer files were installed by newer versions of gcc especially libgomp (omp.hopenacc.h) into gcclibdir, so we have content in both directories, this confuses other tools which are trying to guess the gcc installation and its runtime location, since now we have two directories, the tools either choose one or other and we get inconsistent behavior, e.g. clang for aarch64 uses/usr/libbut same clang for riscv64 chose/usr/lib/gcc
Quoted 2 lines
This change ensures that OE ends up with single valid location for gcc runtime files
I think that the same thing needs to happen in gcc-sanitizers.inc, otherwise I get errors like:
| .../recipe-sysroot/usr/include/gpg-error-64.h:884:11: fatal error: sanitizer/lsan_interface.h: No such file or directory
when attempting to compile with sanitizers enabled.
FILES_${PN} needs updating to match too.
--- meta/recipes-devtools/gcc/gcc-sanitizers.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-sanitizers.inc +6 -1
@@ -35,6 +35,11 @@ do_compile () { do_install () { cd ${B}/${TARGET_SYS}/libsanitizer/ oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/${TARGET_SYS}/libsanitizer/ install + if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include ]; then + install -d ${D}${libdir}/${TARGET_SYS}/${BINV}/include + mv ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/* ${D}${libdir}/${TARGET_SYS}/${BINV}/include + rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include + fi if [ -d ${D}${infodir} ]; then rmdir --ignore-fail-on-non-empty -p ${D}${infodir} fi
@@ -109,4 +114,4 @@ FILES_libtsan-dev += "\ " FILES_libtsan-staticdev += "${libdir}/libtsan.a" -FILES_${PN} = "${libdir}/*.spec ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/sanitizer/*.h" +FILES_${PN} = "${libdir}/*.spec ${libdir}/${TARGET_SYS}/${BINV}/include/sanitizer/*.h"
Signature · 1 line
2.30.2
PATCH 16/25 iso-codes: fix protocol in SRC_URI
In reply to Anuj MittalFrom: Martin Jansa <[email protected]>
* it doesn't listen on http and the redirect sometimes doesn't work
WARNING: iso-codes-4.6.0-r0 do_fetch: Failed to fetch URL git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http;branch=main;, attempting MIRRORS if available
The protocol should be changed to https, like all other salsa.debian.org pulls are, so that it doesn't depend on mirrors.bbclass to resolve this. meta/classes/mirrors.bbclass:git://salsa.debian.org/.* git://salsa.debian.org/PATH;protocol=https \n \
from log.do_fetch:
DEBUG: Fetcher accessed the network with the command LANG=C git -c core.fsyncobjectfiles=0 fetch -f --progress http://salsa.debian.org/iso-codes-team/iso-codes.git refs/*:refs/*
fatal: unable to access 'http://salsa.debian.org/iso-codes-team/iso-codes.git/': Couldn't connect to server
WARNING: Failed to fetch URL git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http;branch=main;, attempting MIRRORS if available
...
warning: redirecting to https://salsa.debian.org/iso-codes-team/iso-codes.git/
--- meta/recipes-support/iso-codes/iso-codes_4.5.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/iso-codes/iso-codes_4.5.0.bb +1 -1
@@ -5,7 +5,7 @@ BUGTRACKER = "https://salsa.debian.org/iso-codes-team/iso-codes/issues" LICENSE = "LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" -SRC_URI = "git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http;branch=main;" +SRC_URI = "git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=https;branch=main;" SRCREV = "a36019e5014bff251f83d522ddcfebaecf52afd3" # inherit gettext cannot be used, because it adds gettext-native to BASEDEPENDS which
Signature · 1 line
2.30.2
PATCH 17/25 devtool: Fix do_kernel_configme task
In reply to Anuj MittalFrom: Alejandro Hernandez Samaniego <[email protected]>
The do_kernel_configme task is no longer part of SRCTREECOVEREDTASKS, its been removed from the kernel-yocto.bbclass since b72dbb2e4, but there wasnt a matching patch for devtool for those changes.
This patch enables us to invoke the do_kernel_configme task when using a devtool workspace, it also prepends a check for an existing .config file in the source directory and moves it if thats the case, since when using devtool modify a .config is created and do_kernel_configme complains about it, this is not the case when using bitbake since the .config file would be on B instead.
Alowing do_kernel_configme to run also fixes the flow where testing a new config fragment from devtool workspace isnt added properly (config queue shows it as ///frg.cfg) and as a side effect it never gets merged into the final config.
--- scripts/lib/devtool/standard.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
scripts/lib/devtool/standard.py +6 -1
@@ -953,12 +953,17 @@ def modify(args, config, basepath, workspace): if bb.data.inherits_class('kernel', rd): f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout ' - 'do_fetch do_unpack do_kernel_configme do_kernel_configcheck"\n') + 'do_fetch do_unpack do_kernel_configcheck"\n') f.write('\ndo_patch[noexec] = "1"\n') f.write('\ndo_configure_append() {\n' ' cp ${B}/.config ${S}/.config.baseline\n' ' ln -sfT ${B}/.config ${S}/.config.new\n' '}\n') + f.write('\ndo_kernel_configme_prepend() {\n' + ' if [ -e ${S}/.config ]; then\n' + ' mv ${S}/.config ${S}/.config.old\n' + ' fi\n' + '}\n') if rd.getVarFlag('do_menuconfig','task'): f.write('\ndo_configure_append() {\n' ' if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
Signature · 1 line
2.30.2
PATCH 18/25 runqemu: use "raw" instead of "bin" for ovmf
In reply to Anuj MittalFrom: Jon Mason <[email protected]>
bin is not an acceptable format for qemu and will throw an error is set. The correct format in this case is raw.
--- scripts/runqemu | 2 ++ 1 file changed, 2 insertions(+)
scripts/runqemu +2 -0
@@ -1340,6 +1340,8 @@ class BaseConfig(object): for ovmf in self.ovmf_bios: format = ovmf.rsplit('.', 1)[-1] + if format == "bin": + format = "raw" self.qemu_opt += ' -drive if=pflash,format=%s,file=%s' % (format, ovmf) self.qemu_opt += ' ' + self.qemu_opt_script
Signature · 1 line
2.30.2
PATCH 19/25 populate_sdk_ext: record METADATA_REVISION
In reply to Anuj MittalFrom: Chen Qi <[email protected]>
As we delete the .git/ directory, it's impossible to get METADATA_REVISION inside eSDK. Because of this, we meet the following warning when installing eSDK.
WARNING: The base-files:do_install sig is computed to be 16b9d96148d45de183cc94667aae016ec7d102d48255456381e718cd4bbd0aa0, \
but the sig is locked to 6eb0dcaed504282becee94662481d79264db920dee1f7deda18230133fff8f36 in SIGGEN_LOCKEDSIGS_t-qemux86-64
So we record METADATA_REVISION in eSDK generation time to fix this problem.
--- meta/classes/populate_sdk_ext.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/populate_sdk_ext.bbclass +3 -0
@@ -364,6 +364,9 @@ python copy_buildsystem () { # Hide the config information from bitbake output (since it's fixed within the SDK) f.write('BUILDCFG_HEADER = ""\n\n') + # Write METADATA_REVISION + f.write('METADATA_REVISION = "%s"\n\n' % d.getVar('METADATA_REVISION')) + f.write('# Provide a flag to indicate we are in the EXT_SDK Context\n') f.write('WITHIN_EXT_SDK = "1"\n\n')
Signature · 1 line
2.30.2
PATCH 20/25 systemd-conf: do not ask for DHCP if configured on kernel command line
In reply to Anuj MittalFrom: Stefan Schmidt <[email protected]>
In cases where we configure the IP address and more on the kernel command line with ip= we should not ask for DHCP with systemd-networkd later on. We have such a setup with our runqemu script.
With this match in place we can also deploy this unit on qemu systems.
--- meta/recipes-core/systemd/systemd-conf/wired.network | 1 + meta/recipes-core/systemd/systemd-conf_246.9.bb | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
meta/recipes-core/systemd/systemd-conf/wired.network +1 -0
@@ -1,6 +1,7 @@ [Match] Name=en* eth* KernelCommandLine=!nfsroot +KernelCommandLine=!ip [Network] DHCP=yes
meta/recipes-core/systemd/systemd-conf_246.9.bb +0 -3
@@ -23,9 +23,6 @@ do_install() { # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 do_install_append_qemuall() { install -D -m0644 ${WORKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf - - # Do not install wired.network for qemu bsps - rm -rf ${D}${systemd_unitdir}/network } PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
2.30.2
PATCH 21/25 glib-2.0: Fix CVE-2021-27219
In reply to Anuj MittalFrom: Anatol Belski <[email protected]>
The upstream patches are only in glib >= 2.66.6 and >= 2.67.3 and won't be backported. This patch is developed based on the upstream patch set and consulting teh backports recently made by Ubuntu for the 2.64.6 series.
--- .../glib-2.0/glib-2.0/CVE-2021-27219.patch | 1444 +++++++++++++++++ meta/recipes-core/glib-2.0/glib-2.0_2.64.5.bb | 1 + 2 files changed, 1445 insertions(+) create mode 100644 meta/recipes-core/glib-2.0/glib-2.0/CVE-2021-27219.patch
meta/recipes-core/glib-2.0/glib-2.0/CVE-2021-27219.patch new file +1444 -0
@@ -0,0 +1,1444 @@ +commit b70039028b4a39ea071f6ed368a58ad5b5b90ba3 +Author: Anatol Belski <[email protected]> +Date: Sun Mar 14 17:51:53 2021 +0000 + + backport: 2.64.5_CVE-2021-27219 + +CVE: CVE-2021-27219 +Upstream-Status: Backport +[https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1926] + +Signed-off-by: Anatol Belski <[email protected]> + +diff --git a/docs/reference/glib/meson.build b/docs/reference/glib/meson.build +index 62d95f78d..7eebb04ac 100644 +--- a/docs/reference/glib/meson.build ++++ b/docs/reference/glib/meson.build +@@ -22,6 +22,7 @@ if get_option('gtk_doc') + 'gprintfint.h', + 'gmirroringtable.h', + 'gscripttable.h', ++ 'gstrfuncsprivate.h', + 'glib-mirroring-tab', + 'gnulib', + 'pcre', +diff --git a/gio/gdatainputstream.c b/gio/gdatainputstream.c +index 2e7750cb5..2cdcbda19 100644 +--- a/gio/gdatainputstream.c ++++ b/gio/gdatainputstream.c +@@ -27,6 +27,7 @@ + #include "gioenumtypes.h" + #include "gioerror.h" + #include "glibintl.h" ++#include "gstrfuncsprivate.h" + + #include <string.h> + +@@ -856,7 +857,7 @@ static gssize + scan_for_chars (GDataInputStream *stream, + gsize *checked_out, + const char *stop_chars, +- gssize stop_chars_len) ++ gsize stop_chars_len) + { + GBufferedInputStream *bstream; + const char *buffer; +@@ -952,7 +953,7 @@ typedef struct + gsize checked; + + gchar *stop_chars; +- gssize stop_chars_len; ++ gsize stop_chars_len; + gsize length; + } GDataInputStreamReadData; + +@@ -1078,12 +1079,17 @@ g_data_input_stream_read_async (GDataInputStream *stream, + { + GDataInputStreamReadData *data; + GTask *task; ++ gsize stop_chars_len_unsigned; + + data = g_slice_new0 (GDataInputStreamReadData); +- if (stop_chars_len == -1) +- stop_chars_len = strlen (stop_chars); +- data->stop_chars = g_memdup (stop_chars, stop_chars_len); +- data->stop_chars_len = stop_chars_len; ++ ++ if (stop_chars_len < 0) ++ stop_chars_len_unsigned = strlen (stop_chars); ++ else ++ stop_chars_len_unsigned = (gsize) stop_chars_len; ++ ++ data->stop_chars = g_memdup2 (stop_chars, stop_chars_len_unsigned); ++ data->stop_chars_len = stop_chars_len_unsigned; + data->last_saw_cr = FALSE; + + task = g_task_new (stream, cancellable, callback, user_data); +@@ -1338,17 +1344,20 @@ g_data_input_stream_read_upto (GDataInputStream *stream, + gssize found_pos; + gssize res; + char *data_until; ++ gsize stop_chars_len_unsigned; + + g_return_val_if_fail (G_IS_DATA_INPUT_STREAM (stream), NULL); + + if (stop_chars_len < 0) +- stop_chars_len = strlen (stop_chars); ++ stop_chars_len_unsigned = strlen (stop_chars); ++ else ++ stop_chars_len_unsigned = (gsize) stop_chars_len; + + bstream = G_BUFFERED_INPUT_STREAM (stream); + + checked = 0; + +- while ((found_pos = scan_for_chars (stream, &checked, stop_chars, stop_chars_len)) == -1) ++ while ((found_pos = scan_for_chars (stream, &checked, stop_chars, stop_chars_len_unsigned)) == -1) + { + if (g_buffered_input_stream_get_available (bstream) == + g_buffered_input_stream_get_buffer_size (bstream)) +diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c +index 1a4dae3bd..9de661bde 100644 +--- a/gio/gdbusconnection.c ++++ b/gio/gdbusconnection.c +@@ -110,6 +110,7 @@ + #include "gasyncinitable.h" + #include "giostream.h" + #include "gasyncresult.h" ++#include "gstrfuncsprivate.h" + #include "gtask.h" + #include "gmarshal-internal.h" + +@@ -4007,7 +4008,7 @@ _g_dbus_interface_vtable_copy (const GDBusInterfaceVTable *vtable) + /* Don't waste memory by copying padding - remember to update this + * when changing struct _GDBusInterfaceVTable in gdbusconnection.h + */ +- return g_memdup ((gconstpointer) vtable, 3 * sizeof (gpointer)); ++ return g_memdup2 ((gconstpointer) vtable, 3 * sizeof (gpointer)); + } + + static void +@@ -4024,7 +4025,7 @@ _g_dbus_subtree_vtable_copy (const GDBusSubtreeVTable *vtable) + /* Don't waste memory by copying padding - remember to update this + * when changing struct _GDBusSubtreeVTable in gdbusconnection.h + */ +- return g_memdup ((gconstpointer) vtable, 3 * sizeof (gpointer)); ++ return g_memdup2 ((gconstpointer) vtable, 3 * sizeof (gpointer)); + } + + static void +diff --git a/gio/gdbusinterfaceskeleton.c b/gio/gdbusinterfaceskeleton.c +index 4a06516c1..4a4b719a5 100644 +--- a/gio/gdbusinterfaceskeleton.c ++++ b/gio/gdbusinterfaceskeleton.c +@@ -28,6 +28,7 @@ + #include "gdbusmethodinvocation.h" + #include "gdbusconnection.h" + #include "gmarshal-internal.h" ++#include "gstrfuncsprivate.h" + #include "gtask.h" + #include "gioerror.h" + +@@ -701,7 +702,7 @@ add_connection_locked (GDBusInterfaceSkeleton *interface_, + * properly before building the hooked_vtable, so we create it + * once at the last minute. + */ +- interface_->priv->hooked_vtable = g_memdup (g_dbus_interface_skeleton_get_vtable (interface_), sizeof (GDBusInterfaceVTable)); ++ interface_->priv->hooked_vtable = g_memdup2 (g_dbus_interface_skeleton_get_vtable (interface_), sizeof (GDBusInterfaceVTable)); + interface_->priv->hooked_vtable->method_call = skeleton_intercept_handle_method_call; + } + +diff --git a/gio/gfile.c b/gio/gfile.c +index a2ded14ea..25930435f 100644 +--- a/gio/gfile.c ++++ b/gio/gfile.c +@@ -60,6 +60,7 @@ + #include "gasyncresult.h" + #include "gioerror.h" + #include "glibintl.h" ++#include "gstrfuncsprivate.h" + + + /** +@@ -7854,7 +7855,7 @@ measure_disk_usage_progress (gboolean reporting, + g_main_context_invoke_full (g_task_get_context (task), + g_task_get_priority (task), + measure_disk_usage_invoke_progress, +- g_memdup (&progress, sizeof progress), ++ g_memdup2 (&progress, sizeof progress), + g_free); + } + +@@ -7872,7 +7873,7 @@ measure_disk_usage_thread (GTask *task, + data->progress_callback ? measure_disk_usage_progress : NULL, task, + &result.disk_usage, &result.num_dirs, &result.num_files, + &error)) +- g_task_return_pointer (task, g_memdup (&result, sizeof result), g_free); ++ g_task_return_pointer (task, g_memdup2 (&result, sizeof result), g_free); + else + g_task_return_error (task, error); + } +@@ -7896,7 +7897,7 @@ g_file_real_measure_disk_usage_async (GFile *file, + + task = g_task_new (file, cancellable, callback, user_data); + g_task_set_source_tag (task, g_file_real_measure_disk_usage_async); +- g_task_set_task_data (task, g_memdup (&data, sizeof data), g_free); ++ g_task_set_task_data (task, g_memdup2 (&data, sizeof data), g_free); + g_task_set_priority (task, io_priority); + + g_task_run_in_thread (task, measure_disk_usage_thread); +diff --git a/gio/giowin32-private.c b/gio/giowin32-private.c +index 7120ae0ea..47e840805 100644 +--- a/gio/giowin32-private.c ++++ b/gio/giowin32-private.c +@@ -16,11 +16,12 @@ + * along with this library; if not, see <http://www.gnu.org/licenses/>. + */ + ++#include "gstrfuncsprivate.h" + +-static gssize ++static gsize + g_utf16_len (const gunichar2 *str) + { +- gssize result; ++ gsize result; + + for (result = 0; str[0] != 0; str++, result++) + ; +@@ -31,17 +32,20 @@ g_utf16_len (const gunichar2 *str) + static gunichar2 * + g_wcsdup (const gunichar2 *str, gssize str_len) + { +- gssize str_size; ++ gsize str_len_unsigned; ++ gsize str_size; + + g_return_val_if_fail (str != NULL, NULL); + +- if (str_len == -1) +- str_len = g_utf16_len (str); ++ if (str_len < 0) ++ str_len_unsigned = g_utf16_len (str); ++ else ++ str_len_unsigned = (gsize) str_len; + +- g_assert (str_len <= G_MAXSIZE / sizeof (gunichar2) - 1); +- str_size = (str_len + 1) * sizeof (gunichar2); ++ g_assert (str_len_unsigned <= G_MAXSIZE / sizeof (gunichar2) - 1); ++ str_size = (str_len_unsigned + 1) * sizeof (gunichar2); + +- return g_memdup (str, str_size); ++ return g_memdup2 (str, str_size); + } + + static const gunichar2 * +diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c +index cd5765afd..de216e615 100644 +--- a/gio/gkeyfilesettingsbackend.c ++++ b/gio/gkeyfilesettingsbackend.c +@@ -33,6 +33,7 @@ + #include "gfilemonitor.h" + #include "gsimplepermission.h" + #include "gsettingsbackendinternal.h" ++#include "gstrfuncsprivate.h" + #include "giomodule-priv.h" + #include "gportalsupport.h" + +@@ -145,8 +146,8 @@ convert_path (GKeyfileSettingsBackend *kfsb, + gchar **group, + gchar **basename) + { +- gint key_len = strlen (key); +- gint i; ++ gsize key_len = strlen (key); ++ const gchar *last_slash; + + if (key_len < kfsb->prefix_len || + memcmp (key, kfsb->prefix, kfsb->prefix_len) != 0) +@@ -155,38 +156,48 @@ convert_path (GKeyfileSettingsBackend *kfsb, + key_len -= kfsb->prefix_len; + key += kfsb->prefix_len; + +- for (i = key_len; i >= 0; i--) +- if (key[i] == '/') +- break; ++ last_slash = strrchr (key, '/'); ++ ++ /* Disallow empty group names or key names */ ++ if (key_len == 0 || ++ (last_slash != NULL && ++ (*(last_slash + 1) == '\0' || ++ last_slash == key))) ++ return FALSE; + + if (kfsb->root_group) + { + /* if a root_group was specified, make sure the user hasn't given + * a path that ghosts that group name + */ +- if (i == kfsb->root_group_len && memcmp (key, kfsb->root_group, i) == 0) ++ if (last_slash != NULL && (last_slash - key) == kfsb->root_group_len && memcmp (key, kfsb->root_group, last_slash - key) == 0) + return FALSE; + } + else + { + /* if no root_group was given, ensure that the user gave a path */ +- if (i == -1) ++ if (last_slash == NULL) + return FALSE; + } + + if (group) + { +- if (i >= 0) ++ if (last_slash != NULL) + { +- *group = g_memdup (key, i + 1); +- (*group)[i] = '\0'; ++ *group = g_memdup2 (key, (last_slash - key) + 1); ++ (*group)[(last_slash - key)] = '\0'; + } + else + *group = g_strdup (kfsb->root_group); + } + + if (basename) +- *basename = g_memdup (key + i + 1, key_len - i); ++ { ++ if (last_slash != NULL) ++ *basename = g_memdup2 (last_slash + 1, key_len - (last_slash - key)); ++ else ++ *basename = g_strdup (key); ++ } + + return TRUE; + } +diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c +index 0b94f76f6..eb5a3b846 100644 +--- a/gio/gsettingsschema.c ++++ b/gio/gsettingsschema.c +@@ -20,6 +20,7 @@ + + #include "gsettingsschema-internal.h" + #include "gsettings.h" ++#include "gstrfuncsprivate.h" + + #include "gvdb/gvdb-reader.h" + #include "strinfo.c" +@@ -1067,9 +1068,9 @@ g_settings_schema_list_children (GSettingsSchema *schema) + + if (g_str_has_suffix (key, "/")) + { +- gint length = strlen (key); ++ gsize length = strlen (key); + +- strv[j] = g_memdup (key, length); ++ strv[j] = g_memdup2 (key, length); + strv[j][length - 1] = '\0'; + j++; + } +diff --git a/gio/gsocket.c b/gio/gsocket.c +index 2a15bdd22..554af026b 100644 +--- a/gio/gsocket.c ++++ b/gio/gsocket.c +@@ -75,6 +75,7 @@ + #include "gcredentialsprivate.h" + #include "glibintl.h" + #include "gioprivate.h" ++#include "gstrfuncsprivate.h" + + #ifdef G_OS_WIN32 + /* For Windows XP runtime compatibility, but use the system's if_nametoindex() if available */ +@@ -174,7 +175,7 @@ static gboolean g_socket_datagram_based_condition_wait (GDatagramBased + GError **error); + + static GSocketAddress * +-cache_recv_address (GSocket *socket, struct sockaddr *native, int native_len); ++cache_recv_address (GSocket *socket, struct sockaddr *native, size_t native_len); + + static gssize + g_socket_receive_message_with_timeout (GSocket *socket, +@@ -260,7 +261,7 @@ struct _GSocketPrivate + struct { + GSocketAddress *addr; + struct sockaddr *native; +- gint native_len; ++ gsize native_len; + guint64 last_used; + } recv_addr_cache[RECV_ADDR_CACHE_SIZE]; + }; +@@ -5259,14 +5260,14 @@ g_socket_send_messages_with_timeout (GSocket *socket, + } + + static GSocketAddress * +-cache_recv_address (GSocket *socket, struct sockaddr *native, int native_len) ++cache_recv_address (GSocket *socket, struct sockaddr *native, size_t native_len) + { + GSocketAddress *saddr; + gint i; + guint64 oldest_time = G_MAXUINT64; + gint oldest_index = 0; + +- if (native_len <= 0) ++ if (native_len == 0) + return NULL; + + saddr = NULL; +@@ -5274,7 +5275,7 @@ cache_recv_address (GSocket *socket, struct sockaddr *native, int native_len) + { + GSocketAddress *tmp = socket->priv->recv_addr_cache[i].addr; + gpointer tmp_native = socket->priv->recv_addr_cache[i].native; +- gint tmp_native_len = socket->priv->recv_addr_cache[i].native_len; ++ gsize tmp_native_len = socket->priv->recv_addr_cache[i].native_len; + + if (!tmp) + continue; +@@ -5304,7 +5305,7 @@ cache_recv_address (GSocket *socket, struct sockaddr *native, int native_len) + g_free (socket->priv->recv_addr_cache[oldest_index].native); + } + +- socket->priv->recv_addr_cache[oldest_index].native = g_memdup (native, native_len); ++ socket->priv->recv_addr_cache[oldest_index].native = g_memdup2 (native, native_len); + socket->priv->recv_addr_cache[oldest_index].native_len = native_len; + socket->priv->recv_addr_cache[oldest_index].addr = g_object_ref (saddr); + socket->priv->recv_addr_cache[oldest_index].last_used = g_get_monotonic_time (); +@@ -5452,6 +5453,9 @@ g_socket_receive_message_with_timeout (GSocket *socket, + /* do it */ + while (1) + { ++ /* addrlen has to be of type int because that’s how WSARecvFrom() is defined */ ++ G_STATIC_ASSERT (sizeof addr <= G_MAXINT); ++ + addrlen = sizeof addr; + if (address) + result = WSARecvFrom (socket->priv->fd, +diff --git a/gio/gtlspassword.c b/gio/gtlspassword.c +index 1e437a7b6..bd86a6dfe 100644 +--- a/gio/gtlspassword.c ++++ b/gio/gtlspassword.c +@@ -23,6 +23,7 @@ + #include "glibintl.h" + + #include "gioenumtypes.h" ++#include "gstrfuncsprivate.h" + #include "gtlspassword.h" + + #include <string.h> +@@ -287,9 +288,14 @@ g_tls_password_set_value (GTlsPassword *password, + g_return_if_fail (G_IS_TLS_PASSWORD (password)); + + if (length < 0) +- length = strlen ((gchar *)value); ++ { ++ /* FIXME: g_tls_password_set_value_full() doesn’t support unsigned gsize */ ++ gsize length_unsigned = strlen ((gchar *) value); ++ g_return_if_fail (length_unsigned <= G_MAXSSIZE); ++ length = (gssize) length_unsigned; ++ } + +- g_tls_password_set_value_full (password, g_memdup (value, length), length, g_free); ++ g_tls_password_set_value_full (password, g_memdup2 (value, (gsize) length), length, g_free); + } + + /** +diff --git a/gio/gwin32registrykey.c b/gio/gwin32registrykey.c +index aa7819294..efb9ae713 100644 +--- a/gio/gwin32registrykey.c ++++ b/gio/gwin32registrykey.c +@@ -28,6 +28,8 @@ + #include <ntstatus.h> + #include <winternl.h> + ++#include "gstrfuncsprivate.h" ++ + #ifndef _WDMDDK_ + typedef enum _KEY_INFORMATION_CLASS { + KeyBasicInformation, +@@ -125,16 +127,34 @@ typedef enum + G_WIN32_REGISTRY_UPDATED_PATH = 1, + } GWin32RegistryKeyUpdateFlag; + ++static gsize ++g_utf16_len (const gunichar2 *str) ++{ ++ gsize result; ++ ++ for (result = 0; str[0] != 0; str++, result++) ++ ; ++ ++ return result; ++} ++ + static gunichar2 * +-g_wcsdup (const gunichar2 *str, +- gssize str_size) ++g_wcsdup (const gunichar2 *str, gssize str_len) + { +- if (str_size == -1) +- { +- str_size = wcslen (str) + 1; +- str_size *= sizeof (gunichar2); +- } +- return g_memdup (str, str_size); ++ gsize str_len_unsigned; ++ gsize str_size; ++ ++ g_return_val_if_fail (str != NULL, NULL); ++ ++ if (str_len < 0) ++ str_len_unsigned = g_utf16_len (str); ++ else ++ str_len_unsigned = (gsize) str_len; ++ ++ g_assert (str_len_unsigned <= G_MAXSIZE / sizeof (gunichar2) - 1); ++ str_size = (str_len_unsigned + 1) * sizeof (gunichar2); ++ ++ return g_memdup2 (str, str_size); + } + + /** +@@ -247,7 +267,7 @@ g_win32_registry_value_iter_copy (const GWin32RegistryValueIter *iter) + new_iter->value_name_size = iter->value_name_size; + + if (iter->value_data != NULL) +- new_iter->value_data = g_memdup (iter->value_data, iter->value_data_size); ++ new_iter->value_data = g_memdup2 (iter->value_data, iter->value_data_size); + + new_iter->value_data_size = iter->value_data_size; + +@@ -268,8 +288,8 @@ g_win32_registry_value_iter_copy (const GWin32RegistryValueIter *iter) + new_iter->value_data_expanded_charsize = iter->value_data_expanded_charsize; + + if (iter->value_data_expanded_u8 != NULL) +- new_iter->value_data_expanded_u8 = g_memdup (iter->value_data_expanded_u8, +- iter->value_data_expanded_charsize); ++ new_iter->value_data_expanded_u8 = g_memdup2 (iter->value_data_expanded_u8, ++ iter->value_data_expanded_charsize); + + new_iter->value_data_expanded_u8_size = iter->value_data_expanded_charsize; + +diff --git a/gio/tests/async-close-output-stream.c b/gio/tests/async-close-output-stream.c +index 5f6620275..d3f97a119 100644 +--- a/gio/tests/async-close-output-stream.c ++++ b/gio/tests/async-close-output-stream.c +@@ -24,6 +24,8 @@ + #include <stdlib.h> + #include <string.h> + ++#include "gstrfuncsprivate.h" ++ + #define DATA_TO_WRITE "Hello world\n" + + typedef struct +@@ -147,9 +149,9 @@ prepare_data (SetupData *data, + + data->expected_size = g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (data->data_stream)); + +- g_assert_cmpint (data->expected_size, >, 0); ++ g_assert_cmpuint (data->expected_size, >, 0); + +- data->expected_output = g_memdup (written, (guint)data->expected_size); ++ data->expected_output = g_memdup2 (written, data->expected_size); + + /* then recreate the streams and prepare them for the asynchronous close */ + destroy_streams (data); +diff --git a/gio/tests/gdbus-export.c b/gio/tests/gdbus-export.c +index fda654c44..10dd6d82f 100644 +--- a/gio/tests/gdbus-export.c ++++ b/gio/tests/gdbus-export.c +@@ -23,6 +23,7 @@ + #include <string.h> + + #include "gdbus-tests.h" ++#include "gstrfuncsprivate.h" + + /* all tests rely on a shared mainloop */ + static GMainLoop *loop = NULL; +@@ -671,7 +672,7 @@ subtree_introspect (GDBusConnection *connection, + g_assert_not_reached (); + } + +- return g_memdup (interfaces, 2 * sizeof (void *)); ++ return g_memdup2 (interfaces, 2 * sizeof (void *)); + } + + static const GDBusInterfaceVTable * +@@ -727,7 +728,7 @@ dynamic_subtree_introspect (GDBusConnection *connection, + { + const GDBusInterfaceInfo *interfaces[2] = { &dyna_interface_info, NULL }; + +- return g_memdup (interfaces, 2 * sizeof (void *)); ++ return g_memdup2 (interfaces, 2 * sizeof (void *)); + } + + static const GDBusInterfaceVTable * +diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c +index baadca8f5..afe594a23 100644 +--- a/gio/tests/gsettings.c ++++ b/gio/tests/gsettings.c +@@ -1,3 +1,4 @@ ++#include <errno.h> + #include <stdlib.h> + #include <locale.h> + #include <libintl.h> +@@ -1740,6 +1741,14 @@ key_changed_cb (GSettings *settings, const gchar *key, gpointer data) + (*b) = TRUE; + } + ++typedef struct ++{ ++ const gchar *path; ++ const gchar *root_group; ++ const gchar *keyfile_group; ++ const gchar *root_path; ++} KeyfileTestData; ++ + /* + * Test that using a keyfile works + */ +@@ -1834,7 +1843,11 @@ test_keyfile (Fixture *fixture, + g_free (str); + + g_settings_set (settings, "farewell", "s", "cheerio"); +- ++ ++ /* Check that empty keys/groups are not allowed. */ ++ g_assert_false (g_settings_is_writable (settings, "")); ++ g_assert_false (g_settings_is_writable (settings, "/")); ++ + /* When executing as root, changing the mode of the keyfile will have + * no effect on the writability of the settings. + */ +@@ -1866,6 +1879,149 @@ test_keyfile (Fixture *fixture, + g_free (keyfile_path); + } + ++/* ++ * Test that using a keyfile works with a schema with no path set. ++ */ ++static void ++test_keyfile_no_path (Fixture *fixture, ++ gconstpointer user_data) ++{ ++ const KeyfileTestData *test_data = user_data; ++ GSettingsBackend *kf_backend; ++ GSettings *settings; ++ GKeyFile *keyfile; ++ gboolean writable; ++ gchar *key = NULL; ++ GError *error = NULL; ++ gchar *keyfile_path = NULL, *store_path = NULL; ++ ++ keyfile_path = g_build_filename (fixture->tmp_dir, "keyfile", NULL); ++ store_path = g_build_filename (keyfile_path, "gsettings.store", NULL); ++ kf_backend = g_keyfile_settings_backend_new (store_path, test_data->root_path, test_data->root_group); ++ settings = g_settings_new_with_backend_and_path ("org.gtk.test.no-path", kf_backend, test_data->path); ++ g_object_unref (kf_backend); ++ ++ g_settings_reset (settings, "test-boolean"); ++ g_assert_true (g_settings_get_boolean (settings, "test-boolean")); ++ ++ writable = g_settings_is_writable (settings, "test-boolean"); ++ g_assert_true (writable); ++ g_settings_set (settings, "test-boolean", "b", FALSE); ++ ++ g_assert_false (g_settings_get_boolean (settings, "test-boolean")); ++ ++ g_settings_delay (settings); ++ g_settings_set (settings, "test-boolean", "b", TRUE); ++ g_settings_apply (settings); ++ ++ keyfile = g_key_file_new (); ++ g_assert_true (g_key_file_load_from_file (keyfile, store_path, 0, NULL)); ++ ++ g_assert_true (g_key_file_get_boolean (keyfile, test_data->keyfile_group, "test-boolean", NULL)); ++ ++ g_key_file_free (keyfile); ++ ++ g_settings_reset (settings, "test-boolean"); ++ g_settings_apply (settings); ++ keyfile = g_key_file_new (); ++ g_assert_true (g_key_file_load_from_file (keyfile, store_path, 0, NULL)); ++ ++ g_assert_false (g_key_file_get_string (keyfile, test_data->keyfile_group, "test-boolean", &error)); ++ g_assert_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_KEY_NOT_FOUND); ++ g_clear_error (&error); ++ ++ /* Check that empty keys/groups are not allowed. */ ++ g_assert_false (g_settings_is_writable (settings, "")); ++ g_assert_false (g_settings_is_writable (settings, "/")); ++ ++ /* Keys which ghost the root group name are not allowed. This can only be ++ * tested when the path is `/` as otherwise it acts as a prefix and prevents ++ * any ghosting. */ ++ if (g_str_equal (test_data->path, "/")) ++ { ++ key = g_strdup_printf ("%s/%s", test_data->root_group, ""); ++ g_assert_false (g_settings_is_writable (settings, key)); ++ g_free (key); ++ ++ key = g_strdup_printf ("%s/%s", test_data->root_group, "/"); ++ g_assert_false (g_settings_is_writable (settings, key)); ++ g_free (key); ++ ++ key = g_strdup_printf ("%s/%s", test_data->root_group, "test-boolean"); ++ g_assert_false (g_settings_is_writable (settings, key)); ++ g_free (key); ++ } ++ ++ g_key_file_free (keyfile); ++ g_object_unref (settings); ++ ++ /* Clean up the temporary directory. */ ++ g_assert_cmpint (g_chmod (keyfile_path, 0777) == 0 ? 0 : errno, ==, 0); ++ g_assert_cmpint (g_remove (store_path) == 0 ? 0 : errno, ==, 0); ++ g_assert_cmpint (g_rmdir (keyfile_path) == 0 ? 0 : errno, ==, 0); ++ g_free (store_path); ++ g_free (keyfile_path); ++} ++ ++/* ++ * Test that a keyfile rejects writes to keys outside its root path. ++ */ ++static void ++test_keyfile_outside_root_path (Fixture *fixture, ++ gconstpointer user_data) ++{ ++ GSettingsBackend *kf_backend; ++ GSettings *settings; ++ gchar *keyfile_path = NULL, *store_path = NULL; ++ ++ keyfile_path = g_build_filename (fixture->tmp_dir, "keyfile", NULL); ++ store_path = g_build_filename (keyfile_path, "gsettings.store", NULL); ++ kf_backend = g_keyfile_settings_backend_new (store_path, "/tests/basic-types/", "root"); ++ settings = g_settings_new_with_backend_and_path ("org.gtk.test.no-path", kf_backend, "/tests/"); ++ g_object_unref (kf_backend); ++ ++ g_assert_false (g_settings_is_writable (settings, "test-boolean")); ++ ++ g_object_unref (settings); ++ ++ /* Clean up the temporary directory. The keyfile probably doesn’t exist, so ++ * don’t error on failure. */ ++ g_remove (store_path); ++ g_assert_cmpint (g_rmdir (keyfile_path) == 0 ? 0 : errno, ==, 0); ++ g_free (store_path); ++ g_free (keyfile_path); ++} ++ ++/* ++ * Test that a keyfile rejects writes to keys in the root if no root group is set. ++ */ ++static void ++test_keyfile_no_root_group (Fixture *fixture, ++ gconstpointer user_data) ++{ ++ GSettingsBackend *kf_backend; ++ GSettings *settings; ++ gchar *keyfile_path = NULL, *store_path = NULL; ++ ++ keyfile_path = g_build_filename (fixture->tmp_dir, "keyfile", NULL); ++ store_path = g_build_filename (keyfile_path, "gsettings.store", NULL); ++ kf_backend = g_keyfile_settings_backend_new (store_path, "/", NULL); ++ settings = g_settings_new_with_backend_and_path ("org.gtk.test.no-path", kf_backend, "/"); ++ g_object_unref (kf_backend); ++ ++ g_assert_false (g_settings_is_writable (settings, "test-boolean")); ++ g_assert_true (g_settings_is_writable (settings, "child/test-boolean")); ++ ++ g_object_unref (settings); ++ ++ /* Clean up the temporary directory. The keyfile probably doesn’t exist, so ++ * don’t error on failure. */ ++ g_remove (store_path); ++ g_assert_cmpint (g_rmdir (keyfile_path) == 0 ? 0 : errno, ==, 0); ++ g_free (store_path); ++ g_free (keyfile_path); ++} ++ + /* Test that getting child schemas works + */ + static void +@@ -2844,6 +3000,14 @@ main (int argc, char *argv[]) + gchar *override_text; + gchar *enums; + gint result; ++ const KeyfileTestData keyfile_test_data_explicit_path = { "/tests/", "root", "tests", "/" }; ++ const KeyfileTestData keyfile_test_data_empty_path = { "/", "root", "root", "/" }; ++ const KeyfileTestData keyfile_test_data_long_path = { ++ "/tests/path/is/very/long/and/this/makes/some/comparisons/take/a/different/branch/", ++ "root", ++ "tests/path/is/very/long/and/this/makes/some/comparisons/take/a/different/branch", ++ "/" ++ }; + + /* Meson build sets this */ + #ifdef TEST_LOCALE_PATH +@@ -2967,6 +3131,11 @@ main (int argc, char *argv[]) + } + + g_test_add ("/gsettings/keyfile", Fixture, NULL, setup, test_keyfile, teardown); ++ g_test_add ("/gsettings/keyfile/explicit-path", Fixture, &keyfile_test_data_explicit_path, setup, test_keyfile_no_path, teardown); ++ g_test_add ("/gsettings/keyfile/empty-path", Fixture, &keyfile_test_data_empty_path, setup, test_keyfile_no_path, teardown); ++ g_test_add ("/gsettings/keyfile/long-path", Fixture, &keyfile_test_data_long_path, setup, test_keyfile_no_path, teardown); ++ g_test_add ("/gsettings/keyfile/outside-root-path", Fixture, NULL, setup, test_keyfile_outside_root_path, teardown); ++ g_test_add ("/gsettings/keyfile/no-root-group", Fixture, NULL, setup, test_keyfile_no_root_group, teardown); + g_test_add_func ("/gsettings/child-schema", test_child_schema); + g_test_add_func ("/gsettings/strinfo", test_strinfo); + g_test_add_func ("/gsettings/enums", test_enums); +diff --git a/gio/tests/tls-interaction.c b/gio/tests/tls-interaction.c +index 4f0737d7e..5661e8e0d 100644 +--- a/gio/tests/tls-interaction.c ++++ b/gio/tests/tls-interaction.c +@@ -174,6 +174,38 @@ test_interaction_ask_password_finish_failure (GTlsInteraction *interaction, + } + + ++/* Return a copy of @str that is allocated in a silly way, to exercise ++ * custom free-functions. The returned pointer points to a copy of @str ++ * in a buffer of the form "BEFORE \0 str \0 AFTER". */ ++static guchar * ++special_dup (const char *str) ++{ ++ GString *buf = g_string_new ("BEFORE"); ++ guchar *ret; ++ ++ g_string_append_c (buf, '\0'); ++ g_string_append (buf, str); ++ g_string_append_c (buf, '\0'); ++ g_string_append (buf, "AFTER"); ++ ret = (guchar *) g_string_free (buf, FALSE); ++ return ret + strlen ("BEFORE") + 1; ++} ++ ++ ++/* Free a copy of @str that was made with special_dup(), after asserting ++ * that it has not been corrupted. */ ++static void ++special_free (gpointer p) ++{ ++ gchar *s = p; ++ gchar *buf = s - strlen ("BEFORE") - 1; ++ ++ g_assert_cmpstr (buf, ==, "BEFORE"); ++ g_assert_cmpstr (s + strlen (s) + 1, ==, "AFTER"); ++ g_free (buf); ++} ++ ++ + static GTlsInteractionResult + test_interaction_ask_password_sync_success (GTlsInteraction *interaction, + GTlsPassword *password, +@@ -181,6 +213,8 @@ test_interaction_ask_password_sync_success (GTlsInteraction *interaction, + GError **error) + { + TestInteraction *self; ++ const guchar *value; ++ gsize len; + + g_assert (TEST_IS_INTERACTION (interaction)); + self = TEST_INTERACTION (interaction); +@@ -192,6 +226,27 @@ test_interaction_ask_password_sync_success (GTlsInteraction *interaction, + g_assert (error != NULL); + g_assert (*error == NULL); + ++ /* Exercise different ways to set the value */ ++ g_tls_password_set_value (password, (const guchar *) "foo", 4); ++ len = 0; ++ value = g_tls_password_get_value (password, &len); ++ g_assert_cmpmem (value, len, "foo", 4); ++ ++ g_tls_password_set_value (password, (const guchar *) "bar", -1); ++ len = 0; ++ value = g_tls_password_get_value (password, &len); ++ g_assert_cmpmem (value, len, "bar", 3); ++ ++ g_tls_password_set_value_full (password, special_dup ("baa"), 4, special_free); ++ len = 0; ++ value = g_tls_password_get_value (password, &len); ++ g_assert_cmpmem (value, len, "baa", 4); ++ ++ g_tls_password_set_value_full (password, special_dup ("baz"), -1, special_free); ++ len = 0; ++ value = g_tls_password_get_value (password, &len); ++ g_assert_cmpmem (value, len, "baz", 3); ++ + /* Don't do this in real life. Include a null terminator for testing */ + g_tls_password_set_value (password, (const guchar *)"the password", 13); + return G_TLS_INTERACTION_HANDLED; +diff --git a/gio/win32/gwinhttpfile.c b/gio/win32/gwinhttpfile.c +index cf5eed31d..246ec0578 100644 +--- a/gio/win32/gwinhttpfile.c ++++ b/gio/win32/gwinhttpfile.c +@@ -29,6 +29,7 @@ + #include "gio/gfile.h" + #include "gio/gfileattribute.h" + #include "gio/gfileinfo.h" ++#include "gstrfuncsprivate.h" + #include "gwinhttpfile.h" + #include "gwinhttpfileinputstream.h" + #include "gwinhttpfileoutputstream.h" +@@ -393,10 +394,10 @@ g_winhttp_file_resolve_relative_path (GFile *file, + child = g_object_new (G_TYPE_WINHTTP_FILE, NULL); + child->vfs = winhttp_file->vfs; + child->url = winhttp_file->url; +- child->url.lpszScheme = g_memdup (winhttp_file->url.lpszScheme, (winhttp_file->url.dwSchemeLength+1)*2); +- child->url.lpszHostName = g_memdup (winhttp_file->url.lpszHostName, (winhttp_file->url.dwHostNameLength+1)*2); +- child->url.lpszUserName = g_memdup (winhttp_file->url.lpszUserName, (winhttp_file->url.dwUserNameLength+1)*2); +- child->url.lpszPassword = g_memdup (winhttp_file->url.lpszPassword, (winhttp_file->url.dwPasswordLength+1)*2); ++ child->url.lpszScheme = g_memdup2 (winhttp_file->url.lpszScheme, ((gsize) winhttp_file->url.dwSchemeLength + 1) * 2); ++ child->url.lpszHostName = g_memdup2 (winhttp_file->url.lpszHostName, ((gsize) winhttp_file->url.dwHostNameLength + 1) * 2); ++ child->url.lpszUserName = g_memdup2 (winhttp_file->url.lpszUserName, ((gsize) winhttp_file->url.dwUserNameLength + 1) * 2); ++ child->url.lpszPassword = g_memdup2 (winhttp_file->url.lpszPassword, ((gsize) winhttp_file->url.dwPasswordLength + 1) * 2); + child->url.lpszUrlPath = wnew_path; + child->url.dwUrlPathLength = wcslen (wnew_path); + child->url.lpszExtraInfo = NULL; +diff --git a/glib/gbytes.c b/glib/gbytes.c +index ec6923188..6f17d104c 100644 +--- a/glib/gbytes.c ++++ b/glib/gbytes.c +@@ -34,6 +34,8 @@ + + #include <string.h> + ++#include "gstrfuncsprivate.h" ++ + /** + * GBytes: + * +@@ -95,7 +97,7 @@ g_bytes_new (gconstpointer data, + { + g_return_val_if_fail (data != NULL || size == 0, NULL); + +- return g_bytes_new_take (g_memdup (data, size), size); ++ return g_bytes_new_take (g_memdup2 (data, size), size); + } + + /** +@@ -499,7 +501,7 @@ g_bytes_unref_to_data (GBytes *bytes, + * Copy: Non g_malloc (or compatible) allocator, or static memory, + * so we have to copy, and then unref. + */ +- result = g_memdup (bytes->data, bytes->size); ++ result = g_memdup2 (bytes->data, bytes->size); + *size = bytes->size; + g_bytes_unref (bytes); + } +diff --git a/glib/gdir.c b/glib/gdir.c +index 6b85e99c8..6747a8c6f 100644 +--- a/glib/gdir.c ++++ b/glib/gdir.c +@@ -37,6 +37,7 @@ + #include "gconvert.h" + #include "gfileutils.h" + #include "gstrfuncs.h" ++#include "gstrfuncsprivate.h" + #include "gtestutils.h" + #include "glibintl.h" + +@@ -112,7 +113,7 @@ g_dir_open_with_errno (const gchar *path, + return NULL; + #endif + +- return g_memdup (&dir, sizeof dir); ++ return g_memdup2 (&dir, sizeof dir); + } + + /** +diff --git a/glib/ghash.c b/glib/ghash.c +index 0f1562a06..c1e15c957 100644 +--- a/glib/ghash.c ++++ b/glib/ghash.c +@@ -34,6 +34,7 @@ + #include "gmacros.h" + #include "glib-private.h" + #include "gstrfuncs.h" ++#include "gstrfuncsprivate.h" + #include "gatomic.h" + #include "gtestutils.h" + #include "gslice.h" +@@ -962,7 +963,7 @@ g_hash_table_ensure_keyval_fits (GHashTable *hash_table, gpointer key, gpointer + if (hash_table->have_big_keys) + { + if (key != value) +- hash_table->values = g_memdup (hash_table->keys, sizeof (gpointer) * hash_table->size); ++ hash_table->values = g_memdup2 (hash_table->keys, sizeof (gpointer) * hash_table->size); + /* Keys and values are both big now, so no need for further checks */ + return; + } +@@ -970,7 +971,7 @@ g_hash_table_ensure_keyval_fits (GHashTable *hash_table, gpointer key, gpointer + { + if (key != value) + { +- hash_table->values = g_memdup (hash_table->keys, sizeof (guint) * hash_table->size); ++ hash_table->values = g_memdup2 (hash_table->keys, sizeof (guint) * hash_table->size); + is_a_set = FALSE; + } + } +@@ -998,7 +999,7 @@ g_hash_table_ensure_keyval_fits (GHashTable *hash_table, gpointer key, gpointer + + /* Just split if necessary */ + if (is_a_set && key != value) +- hash_table->values = g_memdup (hash_table->keys, sizeof (gpointer) * hash_table->size); ++ hash_table->values = g_memdup2 (hash_table->keys, sizeof (gpointer) * hash_table->size); + + #endif + } +diff --git a/glib/giochannel.c b/glib/giochannel.c +index d16399846..b41381d38 100644 +--- a/glib/giochannel.c ++++ b/glib/giochannel.c +@@ -37,6 +37,7 @@ + #include "giochannel.h" + + #include "gstrfuncs.h" ++#include "gstrfuncsprivate.h" + #include "gtestutils.h" + #include "glibintl.h" + +@@ -886,17 +887,26 @@ g_io_channel_set_line_term (GIOChannel *channel, + const gchar *line_term, + gint length) + { ++ guint length_unsigned; ++ + g_return_if_fail (channel != NULL); + g_return_if_fail (line_term == NULL || length != 0); /* Disallow "" */ + + if (line_term == NULL) +- length = 0; +- else if (length < 0) +- length = strlen (line_term); ++ length_unsigned = 0; ++ else if (length >= 0) ++ length_unsigned = (guint) length; ++ else ++ { ++ /* FIXME: We’re constrained by line_term_len being a guint here */ ++ gsize length_size = strlen (line_term); ++ g_return_if_fail (length_size <= G_MAXUINT); ++ length_unsigned = (guint) length_size; ++ } + + g_free (channel->line_term); +- channel->line_term = line_term ? g_memdup (line_term, length) : NULL; +- channel->line_term_len = length; ++ channel->line_term = line_term ? g_memdup2 (line_term, length_unsigned) : NULL; ++ channel->line_term_len = length_unsigned; + } + + /** +@@ -1673,10 +1683,10 @@ g_io_channel_read_line (GIOChannel *channel, + + /* Copy the read bytes (including any embedded nuls) and nul-terminate. + * `USE_BUF (channel)->str` is guaranteed to be nul-terminated as it’s a +- * #GString, so it’s safe to call g_memdup() with +1 length to allocate ++ * #GString, so it’s safe to call g_memdup2() with +1 length to allocate + * a nul-terminator. */ + g_assert (USE_BUF (channel)); +- line = g_memdup (USE_BUF (channel)->str, got_length + 1); ++ line = g_memdup2 (USE_BUF (channel)->str, got_length + 1); + line[got_length] = '\0'; + *str_return = g_steal_pointer (&line); + g_string_erase (USE_BUF (channel), 0, got_length); +diff --git a/glib/gslice.c b/glib/gslice.c +index 4c758c3be..bcdbb8853 100644 +--- a/glib/gslice.c ++++ b/glib/gslice.c +@@ -41,6 +41,7 @@ + #include "gmain.h" + #include "gmem.h" /* gslice.h */ + #include "gstrfuncs.h" ++#include "gstrfuncsprivate.h" + #include "gutils.h" + #include "gtrashstack.h" + #include "gtestutils.h" +@@ -350,7 +351,7 @@ g_slice_get_config_state (GSliceConfig ckey, + array[i++] = allocator->contention_counters[address]; + array[i++] = allocator_get_magazine_threshold (allocator, address); + *n_values = i; +- return g_memdup (array, sizeof (array[0]) * *n_values); ++ return g_memdup2 (array, sizeof (array[0]) * *n_values); + default: + return NULL; + } +diff --git a/glib/gstrfuncsprivate.h b/glib/gstrfuncsprivate.h +new file mode 100644 +index 000000000..85c88328a +--- /dev/null ++++ b/glib/gstrfuncsprivate.h +@@ -0,0 +1,55 @@ ++/* GLIB - Library of useful routines for C programming ++ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, see <http://www.gnu.org/licenses/>. ++ */ ++ ++#include <glib.h> ++#include <string.h> ++ ++/* ++ * g_memdup2: ++ * @mem: (nullable): the memory to copy. ++ * @byte_size: the number of bytes to copy. ++ * ++ * Allocates @byte_size bytes of memory, and copies @byte_size bytes into it ++ * from @mem. If @mem is %NULL it returns %NULL. ++ * ++ * This replaces g_memdup(), which was prone to integer overflows when ++ * converting the argument from a #gsize to a #guint. ++ * ++ * This static inline version is a backport of the new public API from ++ * GLib 2.68, kept internal to GLib for backport to older stable releases. ++ * See https://gitlab.gnome.org/GNOME/glib/-/issues/2319. ++ * ++ * Returns: (nullable): a pointer to the newly-allocated copy of the memory, ++ * or %NULL if @mem is %NULL. ++ * Since: 2.68 ++ */ ++static inline gpointer ++g_memdup2 (gconstpointer mem, ++ gsize byte_size) ++{ ++ gpointer new_mem; ++ ++ if (mem && byte_size != 0) ++ { ++ new_mem = g_malloc (byte_size); ++ memcpy (new_mem, mem, byte_size); ++ } ++ else ++ new_mem = NULL; ++ ++ return new_mem; ++} +diff --git a/glib/gtestutils.c b/glib/gtestutils.c +index 18b117285..26d46ad75 100644 +--- a/glib/gtestutils.c ++++ b/glib/gtestutils.c +@@ -49,6 +49,7 @@ + #include "gpattern.h" + #include "grand.h" + #include "gstrfuncs.h" ++#include "gstrfuncsprivate.h" + #include "gtimer.h" + #include "gslice.h" + #include "gspawn.h" +@@ -3803,7 +3804,7 @@ g_test_log_extract (GTestLogBuffer *tbuffer) + if (p <= tbuffer->data->str + mlength) + { + g_string_erase (tbuffer->data, 0, mlength); +- tbuffer->msgs = g_slist_prepend (tbuffer->msgs, g_memdup (&msg, sizeof (msg))); ++ tbuffer->msgs = g_slist_prepend (tbuffer->msgs, g_memdup2 (&msg, sizeof (msg))); + return TRUE; + } + +diff --git a/glib/gvariant.c b/glib/gvariant.c +index 77d7e746b..ef4257f6d 100644 +--- a/glib/gvariant.c ++++ b/glib/gvariant.c +@@ -33,6 +33,7 @@ + + #include <string.h> + ++#include "gstrfuncsprivate.h" + + /** + * SECTION:gvariant +@@ -725,7 +726,7 @@ g_variant_new_variant (GVariant *value) + g_variant_ref_sink (value); + + return g_variant_new_from_children (G_VARIANT_TYPE_VARIANT, +- g_memdup (&value, sizeof value), ++ g_memdup2 (&value, sizeof value), + 1, g_variant_is_trusted (value)); + } + +@@ -1229,7 +1230,7 @@ g_variant_new_fixed_array (const GVariantType *element_type, + return NULL; + } + +- data = g_memdup (elements, n_elements * element_size); ++ data = g_memdup2 (elements, n_elements * element_size); + value = g_variant_new_from_data (array_type, data, + n_elements * element_size, + FALSE, g_free, data); +@@ -1908,7 +1909,7 @@ g_variant_dup_bytestring (GVariant *value, + if (length) + *length = size; + +- return g_memdup (original, size + 1); ++ return g_memdup2 (original, size + 1); + } + + /** +diff --git a/glib/gvarianttype.c b/glib/gvarianttype.c +index c46f1a2c6..585e29ab2 100644 +--- a/glib/gvarianttype.c ++++ b/glib/gvarianttype.c +@@ -28,6 +28,7 @@ + + #include <string.h> + ++#include "gstrfuncsprivate.h" + + /** + * SECTION:gvarianttype +@@ -1181,7 +1182,7 @@ g_variant_type_new_tuple (const GVariantType * const *items, + g_assert (offset < sizeof buffer); + buffer[offset++] = ')'; + +- return (GVariantType *) g_memdup (buffer, offset); ++ return (GVariantType *) g_memdup2 (buffer, offset); + } + + /** +diff --git a/glib/meson.build b/glib/meson.build +index 456e0c2a1..2e5cd77bb 100644 +--- a/glib/meson.build ++++ b/glib/meson.build +@@ -268,6 +268,7 @@ glib_sources = files( + 'gslist.c', + 'gstdio.c', + 'gstrfuncs.c', ++ 'gstrfuncsprivate.h', + 'gstring.c', + 'gstringchunk.c', + 'gtestutils.c', +diff --git a/glib/tests/array-test.c b/glib/tests/array-test.c +index 1da514a3e..88f22de80 100644 +--- a/glib/tests/array-test.c ++++ b/glib/tests/array-test.c +@@ -29,6 +29,8 @@ + #include <string.h> + #include "glib.h" + ++#include "gstrfuncsprivate.h" ++ + /* Test data to be passed to any function which calls g_array_new(), providing + * the parameters for that call. Most #GArray tests should be repeated for all + * possible values of #ArrayTestData. */ +@@ -1917,7 +1919,7 @@ byte_array_new_take (void) + GByteArray *gbarray; + guint8 *data; + +- data = g_memdup ("woooweeewow", 11); ++ data = g_memdup2 ("woooweeewow", 11); + gbarray = g_byte_array_new_take (data, 11); + g_assert (gbarray->data == data); + g_assert_cmpuint (gbarray->len, ==, 11); +diff --git a/glib/tests/io-channel.c b/glib/tests/io-channel.c +index ff53fcef7..4a1b10876 100644 +--- a/glib/tests/io-channel.c ++++ b/glib/tests/io-channel.c +@@ -49,8 +49,10 @@ test_read_line_embedded_nuls (void) + channel = g_io_channel_new_file (filename, "r", &local_error); + g_assert_no_error (local_error); + +- /* Only break on newline characters, not nuls. */ +- g_io_channel_set_line_term (channel, "\n", 1); ++ /* Only break on newline characters, not nuls. ++ * Use length -1 here to exercise glib#2323; the case where length > 0 ++ * is covered in glib/tests/protocol.c. */ ++ g_io_channel_set_line_term (channel, "\n", -1); + g_io_channel_set_encoding (channel, NULL, &local_error); + g_assert_no_error (local_error); + +diff --git a/glib/tests/option-context.c b/glib/tests/option-context.c +index 149d22353..88d2b80d1 100644 +--- a/glib/tests/option-context.c ++++ b/glib/tests/option-context.c +@@ -27,6 +27,8 @@ + #include <string.h> + #include <locale.h> + ++#include "gstrfuncsprivate.h" ++ + static GOptionEntry main_entries[] = { + { "main-switch", 0, 0, + G_OPTION_ARG_NONE, NULL, +@@ -256,7 +258,7 @@ join_stringv (int argc, char **argv) + static char ** + copy_stringv (char **argv, int argc) + { +- return g_memdup (argv, sizeof (char *) * (argc + 1)); ++ return g_memdup2 (argv, sizeof (char *) * (argc + 1)); + } + + static void +@@ -2323,7 +2325,7 @@ test_group_parse (void) + g_option_context_add_group (context, group); + + argv = split_string ("program --test arg1 -f arg2 --group-test arg3 --frob arg4 -z arg5", &argc); +- orig_argv = g_memdup (argv, (argc + 1) * sizeof (char *)); ++ orig_argv = g_memdup2 (argv, (argc + 1) * sizeof (char *)); + + retval = g_option_context_parse (context, &argc, &argv, &error); + +diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c +index e1f9619c7..d968afff9 100644 +--- a/glib/tests/strfuncs.c ++++ b/glib/tests/strfuncs.c +@@ -32,6 +32,8 @@ + #include <string.h> + #include "glib.h" + ++#include "gstrfuncsprivate.h" ++ + #if defined (_MSC_VER) && (_MSC_VER <= 1800) + #define isnan(x) _isnan(x) + +@@ -219,6 +221,26 @@ test_memdup (void) + g_free (str_dup); + } + ++/* Testing g_memdup2() function with various positive and negative cases */ ++static void ++test_memdup2 (void) ++{ ++ gchar *str_dup = NULL; ++ const gchar *str = "The quick brown fox jumps over the lazy dog"; ++ ++ /* Testing negative cases */ ++ g_assert_null (g_memdup2 (NULL, 1024)); ++ g_assert_null (g_memdup2 (str, 0)); ++ g_assert_null (g_memdup2 (NULL, 0)); ++ ++ /* Testing normal usage cases */ ++ str_dup = g_memdup2 (str, strlen (str) + 1); ++ g_assert_nonnull (str_dup); ++ g_assert_cmpstr (str, ==, str_dup); ++ ++ g_free (str_dup); ++} ++ + /* Testing g_strpcpy() function with various positive and negative cases */ + static void + test_stpcpy (void) +@@ -2523,6 +2545,7 @@ main (int argc, + g_test_add_func ("/strfuncs/has-prefix", test_has_prefix); + g_test_add_func ("/strfuncs/has-suffix", test_has_suffix); + g_test_add_func ("/strfuncs/memdup", test_memdup); ++ g_test_add_func ("/strfuncs/memdup2", test_memdup2); + g_test_add_func ("/strfuncs/stpcpy", test_stpcpy); + g_test_add_func ("/strfuncs/str_match_string", test_str_match_string); + g_test_add_func ("/strfuncs/str_tokenize_and_fold", test_str_tokenize_and_fold); +diff --git a/gobject/gsignal.c b/gobject/gsignal.c +index 45effa92d..effbfec62 100644 +--- a/gobject/gsignal.c ++++ b/gobject/gsignal.c +@@ -28,6 +28,7 @@ + #include <signal.h> + + #include "gsignal.h" ++#include "gstrfuncsprivate.h" + #include "gtype-private.h" + #include "gbsearcharray.h" + #include "gvaluecollector.h" +@@ -1809,7 +1810,7 @@ g_signal_newv (const gchar *signal_name, + node->single_va_closure_is_valid = FALSE; + node->flags = signal_flags & G_SIGNAL_FLAGS_MASK; + node->n_params = n_params; +- node->param_types = g_memdup (param_types, sizeof (GType) * n_params); ++ node->param_types = g_memdup2 (param_types, sizeof (GType) * n_params); + node->return_type = return_type; + node->class_closure_bsa = NULL; + if (accumulator) +diff --git a/gobject/gtype.c b/gobject/gtype.c +index b5ef2d11e..8d152dccc 100644 +--- a/gobject/gtype.c ++++ b/gobject/gtype.c +@@ -33,6 +33,7 @@ + + #include "glib-private.h" + #include "gconstructor.h" ++#include "gstrfuncsprivate.h" + + #ifdef G_OS_WIN32 + #include <windows.h> +@@ -1470,7 +1471,7 @@ type_add_interface_Wm (TypeNode *node, + iholder->next = iface_node_get_holders_L (iface); + iface_node_set_holders_W (iface, iholder); + iholder->instance_type = NODE_TYPE (node); +- iholder->info = info ? g_memdup (info, sizeof (*info)) : NULL; ++ iholder->info = info ? g_memdup2 (info, sizeof (*info)) : NULL; + iholder->plugin = plugin; + + /* create an iface entry for this type */ +@@ -1731,7 +1732,7 @@ type_iface_retrieve_holder_info_Wm (TypeNode *iface, + INVALID_RECURSION ("g_type_plugin_*", iholder->plugin, NODE_NAME (iface)); + + check_interface_info_I (iface, instance_type, &tmp_info); +- iholder->info = g_memdup (&tmp_info, sizeof (tmp_info)); ++ iholder->info = g_memdup2 (&tmp_info, sizeof (tmp_info)); + } + + return iholder; /* we don't modify write lock upon returning NULL */ +@@ -2016,10 +2017,10 @@ type_iface_vtable_base_init_Wm (TypeNode *iface, + IFaceEntry *pentry = type_lookup_iface_entry_L (pnode, iface); + + if (pentry) +- vtable = g_memdup (pentry->vtable, iface->data->iface.vtable_size); ++ vtable = g_memdup2 (pentry->vtable, iface->data->iface.vtable_size); + } + if (!vtable) +- vtable = g_memdup (iface->data->iface.dflt_vtable, iface->data->iface.vtable_size); ++ vtable = g_memdup2 (iface->data->iface.dflt_vtable, iface->data->iface.vtable_size); + entry->vtable = vtable; + vtable->g_type = NODE_TYPE (iface); + vtable->g_instance_type = NODE_TYPE (node); +diff --git a/gobject/gtypemodule.c b/gobject/gtypemodule.c +index 4ecaf8c88..20911fafd 100644 +--- a/gobject/gtypemodule.c ++++ b/gobject/gtypemodule.c +@@ -19,6 +19,7 @@ + + #include <stdlib.h> + ++#include "gstrfuncsprivate.h" + #include "gtypeplugin.h" + #include "gtypemodule.h" + +@@ -436,7 +437,7 @@ g_type_module_register_type (GTypeModule *module, + module_type_info->loaded = TRUE; + module_type_info->info = *type_info; + if (type_info->value_table) +- module_type_info->info.value_table = g_memdup (type_info->value_table, ++ module_type_info->info.value_table = g_memdup2 (type_info->value_table, + sizeof (GTypeValueTable)); + + return module_type_info->type; +diff --git a/gobject/tests/param.c b/gobject/tests/param.c +index 93c3f4b94..0a77e51b7 100644 +--- a/gobject/tests/param.c ++++ b/gobject/tests/param.c +@@ -2,6 +2,8 @@ + #include <glib-object.h> + #include <stdlib.h> + ++#include "gstrfuncsprivate.h" ++ + static void + test_param_value (void) + { +@@ -874,7 +876,7 @@ main (int argc, char *argv[]) + test_path = g_strdup_printf ("/param/implement/subprocess/%d-%d-%d-%d", + data.change_this_flag, data.change_this_type, + data.use_this_flag, data.use_this_type); +- test_data = g_memdup (&data, sizeof (TestParamImplementData)); ++ test_data = g_memdup2 (&data, sizeof (TestParamImplementData)); + g_test_add_data_func_full (test_path, test_data, test_param_implement_child, g_free); + g_free (test_path); + }
meta/recipes-core/glib-2.0/glib-2.0_2.64.5.bb +1 -0
@@ -18,6 +18,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \ file://tzdata-update.patch \ file://CVE-2020-35457.patch \ + file://CVE-2021-27219.patch \ " SRC_URI_append_class-native = " file://relocate-modules.patch"
Signature · 1 line
2.30.2
PATCH 22/25 Revert "sstatesig.py: show an error instead of warning when sstate manifest isn't found"
In reply to Anuj MittalThis is causing problems. See:
https://lists.openembedded.org/g/openembedded-core/message/149374
This reverts commit da6b76bf6152b2a60c6a31756c287289c3559a74.
--- meta/lib/oe/sstatesig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/sstatesig.py +1 -1
@@ -458,7 +458,7 @@ def find_sstate_manifest(taskdata, taskdata2, taskname, d, multilibcache): manifest = d2.expand("${SSTATE_MANIFESTS}/manifest-%s-%s.%s" % (pkgarch, taskdata, taskname)) if os.path.exists(manifest): return manifest, d2 - bb.error("Manifest %s not found in %s (variant '%s')?" % (manifest, d2.expand(" ".join(pkgarchs)), variant)) + bb.warn("Manifest %s not found in %s (variant '%s')?" % (manifest, d2.expand(" ".join(pkgarchs)), variant)) return None, d2 def OEOuthashBasic(path, sigfile, task, d):
Signature · 1 line
2.30.2
PATCH 23/25 linux-yocto/5.4: update to v5.4.103
In reply to Anuj MittalFrom: Bruce Ashfield <[email protected]>
Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits:
c4ca4659678e Linux 5.4.103
47478db9ad21 ALSA: hda/realtek: Apply dual codec quirks for MSI Godlike X570 board 4cf243476463 ALSA: hda/realtek: Add quirk for Intel NUC 10
2254dfa68428 ALSA: hda/realtek: Add quirk for Clevo NH55RZQ
027ddd67f685 media: v4l: ioctl: Fix memory leak in video_usercopy
60fdceaa91ad swap: fix swapfile read/write offset
bebf5e832779 zsmalloc: account the number of compacted pages correctly
f038a22632a4 xen-netback: respect gnttab_map_refs()'s return value
474773c42ffd Xen/gnttab: handle p2m update errors on a per-slot basis
def70c33c478 scsi: iscsi: Verify lengths on passthrough PDUs
567a234a231d scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE 5f4243642873 sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output ca3afdd03773 scsi: iscsi: Restrict sessions and handles to admin capabilities fdaec40526b4 ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet 68b15ca91add ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet db0e94615263 ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet 925ae8148535 ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet 99d2926531ac sched/features: Fix hrtick reprogramming
4a3f4feeb622 parisc: Bump 64-bit IRQ stack size to 64 KB
f41ed2164364 perf/x86/kvm: Add Cascade Lake Xeon steppings to isolation_ucodes[] 2b130871e20a btrfs: fix error handling in commit_fs_roots
9bf519ca55c4 ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr()
7702b331861b nvme-tcp: add clean action for failed reconnection
a9ea34d2717a nvme-rdma: add clean action for failed reconnection
4bf6c84c9ad3 nvme-core: add cancel tagset helpers
8253cc11abb2 f2fs: fix to set/clear I_LINKABLE under i_lock
77dc257b4feb f2fs: handle unallocated section and zone on pinned/atgc
aa1362606059 media: uvcvideo: Allow entities with no pads
0e9d7902764a drm/amd/display: Guard against NULL pointer deref when get_i2c_info fails f1fef55a3f1a PCI: Add a REBAR size quirk for Sapphire RX 5600 XT Pulse
b252cdd9c650 drm/amdgpu: Add check to prevent IH overflow
a8d46a3feb02 crypto: tcrypt - avoid signed overflow in byte count
9f8d3e4b8ad8 drm/hisilicon: Fix use-after-free
e1b9c1c9dbb0 brcmfmac: Add DMI nvram filename quirk for Voyo winpad A15 tablet 3c099c272eb5 brcmfmac: Add DMI nvram filename quirk for Predia Basic tablet d1f262561993 staging: bcm2835-audio: Replace unsafe strcpy() with strscpy() e3ec4af50642 staging: most: sound: add sanity check for function argument 7d16e7c1615d Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data bba1995325b5 x86/build: Treat R_386_PLT32 relocation as R_386_PC32
e37674e1a48d ath10k: fix wmi mgmt tx queue full due to race condition
46813e4a7caa pktgen: fix misuse of BUG_ON() in pktgen_thread_worker()
b074e7e20cc9 Bluetooth: hci_h5: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for btrtl 5a8bbefd0074 wlcore: Fix command execute failure 19 for wl12xx
48549db10dbe vt/consolemap: do font sum unsigned
de00b8f037ca x86/reboot: Add Zotac ZBOX CI327 nano PCI reboot quirk
48f6c1a89487 staging: fwserial: Fix error handling in fwserial_create
ce2b4b9c86b7 rsi: Move card interrupt handling to RX thread
133b0b1aa5c4 rsi: Fix TX EAPOL packet handling against iwlwifi AP
c8c3088a90c3 drm/virtio: use kvmalloc for large allocations
584149c771ec MIPS: Drop 32-bit asm string functions
648c5b1b24d0 dt-bindings: net: btusb: DT fix s/interrupt-name/interrupt-names/ 823e6524e1f3 dt-bindings: ethernet-controller: fix fixed-link specification 176188cff67e net: fix dev_ifsioc_locked() race condition
e4fc812e3577 net: ag71xx: remove unnecessary MTU reservation
ad112654e21d net: bridge: use switchdev for port flags set through sysfs too 2e235c3a9518 mm/hugetlb.c: fix unnecessary address expansion of pmd sharing 4ed3162e92bf nbd: handle device refs for DESTROY_ON_DISCONNECT properly
e6af7cb64b7b net: fix up truesize of cloned skb in skb_prepare_for_shift() 4ceb5ca9e626 smackfs: restrict bytes count in smackfs write functions
5fe244620e74 net/af_iucv: remove WARN_ONCE on malformed RX packets
09e47dc27ed5 xfs: Fix assert failure in xfs_setattr_size()
a72c45f4ee33 media: v4l2-ctrls.c: fix shift-out-of-bounds in std_validate edaa0a0aab6e erofs: fix shift-out-of-bounds of blkszbits
706068d0811a media: mceusb: sanity check for prescaler value
64677f10e560 udlfb: Fix memory leak in dlfb_usb_probe
4e3b08cfe619 JFS: more checks for invalid superblock
86d7c693670e MIPS: VDSO: Use CLANG_FLAGS instead of filtering out '--target=' 9757d5c4fc3f arm64 module: set plt* section addresses to 0x0
69861dcc78c2 nvme-pci: fix error unwind in nvme_map_data
744073c5c79c nvme-pci: refactor nvme_unmap_data
9e4815cf1785 Input: elantech - fix protocol errors for some trackpoints in SMBus mode a1d010346e48 net: usb: qmi_wwan: support ZTE P685M modem
7f324ea75baa Linux 5.4.102
07c4c2e2bcd3 ARM: dts: aspeed: Add LCLK to lpc-snoop
39be7b978fde net: qrtr: Fix memory leak in qrtr_tun_open
7b518508c685 dm era: Update in-core bitset after committing the metadata
976ee31ea300 net: sched: fix police ext initialization
9875cb3c0968 net: icmp: pass zeroed opts from icmp{,v6}_ndo_send before sending 354fb7244fd0 ipv6: silence compilation warning for non-IPV6 builds
e528edf1e579 ipv6: icmp6: avoid indirect call for icmpv6_send()
c30e93eee3bf xfrm: interface: use icmp_ndo_send helper
e1ec06b833aa sunvnet: use icmp_ndo_send helper
d8d268ce1a5e gtp: use icmp_ndo_send helper
dd28e735df5c icmp: allow icmpv6_ndo_send to work with CONFIG_IPV6=n
2019554f9656 icmp: introduce helper for nat'd source address in network device context 0a35ff986617 drm/i915: Reject 446-480MHz HDMI clock on GLK
467214ddfa7e dm era: only resize metadata in preresume
fb8986363019 dm era: Reinitialize bitset cache before digesting a new writeset e59b9a8464be dm era: Use correct value size in equality function of writeset tree fead0c8e5c56 dm era: Fix bitset memory leaks
8ca89085fe72 dm era: Verify the data block size hasn't changed
e8a146ef82a4 dm era: Recover committed writeset after crash
d873884783ed dm writecache: fix writing beyond end of underlying device when shrinking 5233c47c8d46 dm: fix deadlock when swapping to encrypted device
fd3b7e07d3c1 gfs2: Recursive gfs2_quota_hold in gfs2_iomap_end
fa0201d3902e gfs2: Don't skip dlm unlock if glock has an lvb
c5abc17d2740 spi: spi-synquacer: fix set_cs handling
3dbe8f1d24de sparc32: fix a user-triggerable oops in clear_user()
7e17044631aa f2fs: fix out-of-repair __setattr_copy()
5b5d76028056 um: mm: check more comprehensively for stub changes
b95baf4efb68 virtio/s390: implement virtio-ccw revision 2 correctly
8e6c8cfa9aee s390/vtime: fix inline assembly clobber list
07332771663b cpufreq: intel_pstate: Get per-CPU max freq via MSR_HWP_CAPABILITIES if available dfbbed769f1b printk: fix deadlock when kernel panic
81c2472bcf33 gpio: pcf857x: Fix missing first interrupt
70dcfb66ef68 spmi: spmi-pmic-arb: Fix hw_irq overflow
d5194f7264e2 powerpc/32s: Add missing call to kuep_lock on syscall entry
6b22c402dff9 mmc: sdhci-esdhc-imx: fix kernel panic when remove module
b6bc5417385d module: Ignore _GLOBAL_OFFSET_TABLE_ when warning for undefined symbols 8a3e6c6fe9c6 media: smipcie: fix interrupt handling and IR timeout
2e1df9bfe6fa arm64: Extend workaround for erratum 1024718 to all versions of Cortex-A55 566209806176 hugetlb: fix copy_huge_page_from_user contig page struct assumption 5dd34ee9abdc hugetlb: fix update_and_free_page contig page struct assumption b74e3493264f x86: fix seq_file iteration for pat/memtype.c
ebd5a480db0e seq_file: document how per-entry resources are managed.
3e9b85cabea0 fs/affs: release old buffer head on error path
b2b5c3aec866 mtd: spi-nor: hisi-sfc: Put child node np on error path
61dfd4fbbd1e mtd: spi-nor: core: Add erase size check for erase command initialization 3ab134965691 mtd: spi-nor: core: Fix erase type discovery for overlaid region cc27d5f40680 mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region 7852feb3accb mtd: spi-nor: sfdp: Fix last erase region marking
97d079fd2ac1 watchdog: mei_wdt: request stop on unregister
4262c46bfbcf watchdog: qcom: Remove incorrect usage of QCOM_WDT_ENABLE_IRQ a82ebd5dde7d arm64: uprobe: Return EOPNOTSUPP for AARCH32 instruction probing efca4c991ecf arm64: kexec_file: fix memory leakage in create_dtb() when fdt_open_into() fails d4a7d6c02261 floppy: reintroduce O_NDELAY fix
337bba09d850 rcu/nocb: Perform deferred wake up before last idle's need_resched() check 3cd9a74bead1 rcu: Pull deferred rcuog wake up to rcu_eqs_enter() callers
14122331b1c3 powerpc/prom: Fix "ibm,arch-vec-5-platform-support" scan
84ec5883b4f9 x86/reboot: Force all cpus to exit VMX root if VMX is supported 4fa154124164 x86/virt: Eat faults on VMXOFF in reboot flows
3f5dc4a102a9 media: ipu3-cio2: Fix mbus_code processing in cio2_subdev_set_fmt() de9b5d51b627 staging: rtl8188eu: Add Edimax EW-7811UN V2 to device table
bb5bfd51f603 staging: gdm724x: Fix DMA from stack
d69583a2c1b3 staging/mt7621-dma: mtk-hsdma.c->hsdma-mt7621.c
eb6f42b101ec dts64: mt7622: fix slow sd card access
f73e98efaa10 pstore: Fix typo in compression option name
c9e529e635b9 drivers/misc/vmw_vmci: restrict too big queue size in qp_host_alloc_queue d82d5a77f0a0 misc: rtsx: init of rts522a add OCP power off when no card is present aa00c2d60ae1 seccomp: Add missing return in non-void function
0d95bdee02ad crypto: sun4i-ss - initialize need_fallback
903f576f4e66 crypto: sun4i-ss - handle BigEndian for cipher
4fc52e091a2c crypto: sun4i-ss - checking sg length is not sufficient
3b40af844c26 crypto: aesni - prevent misaligned buffers on the stack
46e6d781f87e crypto: arm64/sha - add missing module aliases
dca4f29507e4 btrfs: fix extent buffer leak on failure to copy root
df369c3afb0d btrfs: splice remaining dirty_bg's onto the transaction dirty bg list dc0780e456ac btrfs: fix reloc root leak with 0 ref reloc roots on recovery c0baf3aaf4b9 btrfs: abort the transaction if we fail to inc ref in btrfs_copy_root 2910038c09f4 KEYS: trusted: Fix migratable=1 failing
2c21eac499f8 tpm_tis: Clean up locality release
f19b98394c0a tpm_tis: Fix check_locality for correct locality acquisition 52f3bdb1078a erofs: initialized fields can only be observed after bit is set 4d09487509ad drm/sched: Cancel and flush all outstanding jobs before finish. c38fd6afe146 drm/nouveau/kms: handle mDP connectors
7c1a2f91908f drm/amdgpu: Set reference clock to 100Mhz on Renoir (v2)
ca5a8ad84ba0 drm/amd/display: Add vupdate_no_lock interrupts for DCN2.1
5431cb67306d bcache: Move journal work to new flush wq
a339f0998eb1 bcache: Give btree_io_wq correct semantics again
de5510b9825c Revert "bcache: Kill btree_io_wq"
f6992915031e ALSA: hda/realtek: modify EAPD in the ALC886
48d1950dafe9 ALSA: hda: Add another CometLake-H PCI ID
3ed9bd25fd88 USB: serial: mos7720: fix error code in mos7720_write()
e73874b41286 USB: serial: mos7840: fix error code in mos7840_write()
a678d130424a USB: serial: ftdi_sio: fix FTX sub-integer prescaler
d1f773b70ae6 usb: dwc3: gadget: Fix dep->interval for fullspeed interrupt 1c073b56e765 usb: dwc3: gadget: Fix setting of DEPCFG.bInterval_m1
a5ae281779a5 usb: musb: Fix runtime PM race in musb_queue_resume_work
e3ddfaf3e617 USB: serial: option: update interface mapping for ZTE P685M
32a82e001ead media: mceusb: Fix potential out-of-bounds shift
8812bed7ec74 Input: i8042 - add ASUS Zenbook Flip to noselftest list
80168ba86034 Input: joydev - prevent potential read overflow in ioctl
9fe66416b02e Input: xpad - add support for PowerA Enhanced Wired Controller for Xbox Series X|S d84f9c28abbe Input: raydium_ts_i2c - do not send zero length
2d954832ba48 HID: wacom: Ignore attempts to overwrite the touch_max value from HID 394f2b794310 HID: logitech-dj: add support for keyboard events in eQUAD step 4 Gaming e690b3f48635 ACPI: configfs: add missing check after configfs_register_default_group() 40b70c98be98 ACPI: property: Fix fwnode string properties matching
371a2218ed33 blk-settings: align max_sectors on "logical_block_size" boundary 4ad2a372e1cd scsi: bnx2fc: Fix Kconfig warning & CNIC build errors
d2aa80c36727 mm/rmap: fix potential pte_unmap on an not mapped pte
8450b1cd7cb3 i2c: brcmstb: Fix brcmstd_send_i2c_cmd condition
1a47856548fb arm64: Add missing ISB after invalidating TLB in __primary_switch 94a432151c35 r8169: fix jumbo packet handling on RTL8168e
c70c3b6e62e4 mm/compaction: fix misbehaviors of fast_find_migrateblock()
c200f4959586 mm/hugetlb: fix potential double free in hugetlb_register_node() error path 67a982ee20d2 mm/memory.c: fix potential pte_unmap_unlock pte error
5bf318965485 ocfs2: fix a use after free on error
55b6be947efa vxlan: move debug check after netdev unregister
e9ae8928ddd6 net/mlx4_core: Add missed mlx4_free_cmd_mailbox()
e41bb745fd0f vfio/type1: Use follow_pte()
005ed88685aa i40e: Fix add TC filter for IPv6
1b66e64ce349 i40e: Fix VFs not created
a60ef5efff55 i40e: Fix addition of RX filters after enabling FW LLDP agent 57a7b145d8a1 i40e: Fix overwriting flow control settings during driver loading 55af95c8ce4d i40e: Add zero-initialization of AQ command structures
d7c25783b8c8 i40e: Fix flow for IPv6 next header (extension header)
2efbd63b6e74 regmap: sdw: use _no_pm functions in regmap_read/write
62c4532ebb1d nvmem: core: skip child nodes not matching binding
e40a8924eb3b nvmem: core: Fix a resource leak on error in nvmem_add_cells_from_of() d8b7689a6240 ext4: fix potential htree index checksum corruption
2df4434766aa vfio/iommu_type1: Fix some sanity checks in detach group
179b83e72c89 drm/msm/mdp5: Fix wait-for-commit for cmd panels
32cf1b5c153d drm/msm/dsi: Correct io_start for MSM8994 (20nm PHY)
e2d44809c4f4 mei: hbm: call mei_set_devstate() on hbm stop response
c7cac840c2b3 PCI: Align checking of syscall user config accessors
8c23e9f4c7b0 VMCI: Use set_page_dirty_lock() when unregistering guest memory e8ba75011695 pwm: rockchip: rockchip_pwm_probe(): Remove superfluous clk_unprepare() 3a9044ea78ea soundwire: cadence: fix ACK/NAK handling
fcfec32c9a01 misc: eeprom_93xx46: Add module alias to avoid breaking support for non device tree users 52fe389c0a99 phy: rockchip-emmc: emmc_phy_init() always return 0
047e029392a5 misc: eeprom_93xx46: Fix module alias to enable module autoprobe f7fb313affee sparc64: only select COMPAT_BINFMT_ELF if BINFMT_ELF is set
0a072f01e585 Input: elo - fix an error code in elo_connect()
2062856c441c perf test: Fix unaligned access in sample parsing test
eb191a88be52 perf intel-pt: Fix premature IPC
119f96bb14bc perf intel-pt: Fix missing CYC processing in PSB
ce40b82cfa09 Input: sur40 - fix an error code in sur40_probe()
d5ca5d1190a4 RDMA/hns: Fixes missing error code of CMDQ
8677e99150b0 nfsd: register pernet ops last, unregister first
046615ffd431 clk: aspeed: Fix APLL calculate formula from ast2600-A2
923027302666 regulator: qcom-rpmh: fix pm8009 ldo7
2ebadcea0ef3 spi: pxa2xx: Fix the controller numbering for Wildcat Point
e0c516e72fd5 RDMA/hns: Fix type of sq_signal_bits
d21f6d9a3e49 RDMA/siw: Fix calculation of tx_valid_cpus size
d0005c4ab5e1 RDMA/hns: Fixed wrong judgments in the goto branch
c42d1e8caad5 clk: qcom: gcc-msm8998: Fix Alpha PLL type for all GPLLs
ecfae933df3a powerpc/8xx: Fix software emulation interrupt
ba5c8a0ee624 powerpc/pseries/dlpar: handle ibm, configure-connector delay status 0c79abee609d mfd: wm831x-auxadc: Prevent use after free in wm831x_auxadc_read_irq() 046a8158982b spi: stm32: properly handle 0 byte transfer
3cb8510625d5 RDMA/rxe: Correct skb on loopback path
c88fc726d9c0 RDMA/rxe: Fix coding error in rxe_rcv_mcast_pkt
2e556ba37f13 RDMA/rxe: Fix coding error in rxe_recv.c
d2ee0b2070cd perf vendor events arm64: Fix Ampere eMag event typo
a0ea1f58aeea perf tools: Fix DSO filtering when not finding a map for a sampled address e59e0ced0763 tracepoint: Do not fail unregistering a probe due to memory failure 4cb8bdaebbd8 IB/cm: Avoid a loop when device has 255 ports
180cd50dd9a8 IB/mlx5: Return appropriate error code instead of ENOMEM
379b5ee283dd amba: Fix resource leak for drivers without .remove
65159b4401fd i2c: qcom-geni: Store DMA mapping data in geni_i2c_dev struct 870ab7ef9799 ARM: 9046/1: decompressor: Do not clear SCTLR.nTLSMD for ARMv7+ cores f201f050a52a mmc: renesas_sdhi_internal_dmac: Fix DMA buffer alignment from 8 to 128-bytes 2096ca11967c mmc: usdhi6rol0: Fix a resource leak in the error handling path of the probe de1e8961db05 mmc: sdhci-sprd: Fix some resource leaks in the remove function c4c70ac4659e powerpc/47x: Disable 256k page size
8121f35cc657 KVM: PPC: Make the VMX instruction emulation routines static 144422afaa10 IB/umad: Return EPOLLERR in case of when device disassociated 40d9bcab50d0 IB/umad: Return EIO in case of when device disassociated
f337e5947a19 objtool: Fix ".cold" section suffix check for newer versions of GCC 9d20f53167e6 objtool: Fix error handling for STD/CLD warnings
68b6d02b3774 auxdisplay: ht16k33: Fix refresh rate handling
88b6e7267f9e isofs: release buffer head before return
8eaf7e3480ec regulator: core: Avoid debugfs: Directory ... already present! error 486a018932fe regulator: s5m8767: Drop regulators OF node reference
ab669048f97d spi: atmel: Put allocated master before return
bdad2e9c992e regulator: s5m8767: Fix reference count leak
0fec3272abf1 certs: Fix blacklist flag type confusion
8d0c3acd0370 regulator: axp20x: Fix reference cout leak
edf1d9025195 clk: sunxi-ng: h6: Fix clock divider range on some clocks
e68366695807 RDMA/mlx5: Use the correct obj_id upon DEVX TIR creation
6a52a17fd0a3 clocksource/drivers/mxs_timer: Add missing semicolon when DEBUG is defined 898c96f75616 clocksource/drivers/ixp4xx: Select TIMER_OF when needed
d8a9db6dfa23 rtc: s5m: select REGMAP_I2C
239670e85cbb power: reset: at91-sama5d2_shdwc: fix wkupdbc mask
3cbd3038c915 of/fdt: Make sure no-map does not remove already reserved regions fb326c6ce0dc fdt: Properly handle "no-map" field in the memory region
5fba43deff93 mfd: bd9571mwv: Use devm_mfd_add_devices()
3b0053360e84 dmaengine: hsu: disable spurious interrupt
fe0a870739ba dmaengine: owl-dma: Fix a resource leak in the remove function 6f4fdb448b4c dmaengine: fsldma: Fix a resource leak in an error handling path of the probe function 67be754e0771 dmaengine: fsldma: Fix a resource leak in the remove function da0f70eadabf RDMA/siw: Fix handling of zero-sized Read and Receive Queues. 1f5fea7616e8 HID: core: detect and skip invalid inputs to snto32()
34d0d61a864d clk: sunxi-ng: h6: Fix CEC clock
2dd73db1b508 spi: cadence-quadspi: Abort read if dummy cycles required are too many 0473358e075c i2c: iproc: handle master read request
128c8431e8b9 i2c: iproc: update slave isr mask (ISR_MASK_SLAVE)
d8a5e1780a2b i2c: iproc: handle only slave interrupts which are enabled
8b63c0cbc724 quota: Fix memory leak when handling corrupted quota file
623c86840e8a selftests/powerpc: Make the test check in eeh-basic.sh posix compliant b070f3b6ee5a clk: meson: clk-pll: propagate the error from meson_clk_pll_set_rate() f8c601cb3ab4 clk: meson: clk-pll: make "ret" a signed integer
fcba0f6ab1e2 clk: meson: clk-pll: fix initializing the old rate (fallback) for a PLL 6413d0318ca4 HSI: Fix PM usage counter unbalance in ssi_hw_init
33a2e62473e8 capabilities: Don't allow writing ambiguous v3 file capabilities b42b04e517cb ubifs: Fix error return code in alloc_wbufs()
5501892826bb ubifs: Fix memleak in ubifs_init_authentication
c4ede7571b4f jffs2: fix use after free in jffs2_sum_write_data()
746ef39b0bd6 fs/jfs: fix potential integer overflow on shift of a int
ff138fd20f17 ASoC: simple-card-utils: Fix device module clock
091b409383ad ima: Free IMA measurement buffer after kexec syscall
e436d3f7bdac ima: Free IMA measurement buffer on error
f04787555f4c crypto: ecdh_helper - Ensure 'len >= secret.len' in decode_key() cba03a29611c hwrng: timeriomem - Fix cooldown period calculation
6f651ec266ba btrfs: clarify error returns values in __load_free_space_cache 790c0dcbb519 ASoC: SOF: debug: Fix a potential issue on string buffer termination 624d18332e13 Drivers: hv: vmbus: Avoid use-after-free in vmbus_onoffer_rescind() 76faeef2f45e f2fs: fix a wrong condition in __submit_bio
721c986986d2 drm/amdgpu: Prevent shift wrapping in amdgpu_read_mask()
c1a421b198bc f2fs: fix to avoid inconsistent quota data
7cb52169ada4 mtd: parsers: afs: Fix freeing the part name memory in failure 35a5d96a4c22 ASoC: cpcap: fix microphone timeslot mask
4168bf93ccc4 ata: ahci_brcm: Add back regulators management
0faef25462f8 drm/nouveau: bail out of nouveau_channel_new if channel init fails adc2e1dba977 crypto: talitos - Work around SEC6 ERRATA (AES-CTR mode data size error) 7284c2692aff mtd: parser: imagetag: fix error codes in bcm963xx_parse_imagetag_partitions() aae14aed37d5 sched/eas: Don't update misfit status if the task is pinned
ba95955ee1e2 media: uvcvideo: Accept invalid bFormatIndex and bFrameIndex values 27019b873863 media: pxa_camera: declare variable when DEBUG is defined
0f16925a9e70 media: cx25821: Fix a bug when reallocating some dma memory
c3a2f73a7925 media: qm1d1c0042: fix error return code in qm1d1c0042_init() 96a3bc313aa3 media: lmedm04: Fix misuse of comma
69e859a9d0a4 media: software_node: Fix refcounts in software_node_get_next_child() 1e0f565138db drm/amd/display: Fix HDMI deep color output for DCE 6-11.
7d1fc1e88b36 drm/amd/display: Fix 10/12 bpc setup in DCE output bit depth reduction. ed0b50cd4407 bsg: free the request before return error code
de9b26b5133f MIPS: properly stop .eh_frame generation
1169602150d5 drm/sun4i: tcon: fix inverted DCLK polarity
48f2fcd7b928 crypto: bcm - Rename struct device_private to bcm_device_private 3d5afcae9af2 evm: Fix memleak in init_desc
76b7e3a636b4 ASoC: cs42l56: fix up error handling in probe
c7ebd8b358b0 media: aspeed: fix error return code in aspeed_video_setup_video() 438d2cc7b8cc media: tm6000: Fix memleak in tm6000_start_stream
31730cb2461b media: media/pci: Fix memleak in empress_init
57cc424326df media: em28xx: Fix use-after-free in em28xx_alloc_urbs
3e0c29a407da media: vsp1: Fix an error handling path in the probe function e01fcc71a994 media: camss: missing error code in msm_video_register()
1b26ba73b18f media: imx: Fix csc/scaler unregister
0634c66e6660 media: imx: Unregister csc/scaler only if registered
61f638b3afe9 media: i2c: ov5670: Fix PIXEL_RATE minimum value
7dfe4fed118d MIPS: lantiq: Explicitly compare LTQ_EBU_PCC_ISTAT against 0 ea27c3f0bc1a MIPS: c-r4k: Fix section mismatch for loongson2_sc_init
d9f6d2a54487 drm/amdgpu: Fix macro name _AMDGPU_TRACE_H_ in preprocessor if condition 0d528f6151c7 crypto: arm64/aes-ce - really hide slower algos when faster ones are enabled e056f69dea5a crypto: sun4i-ss - fix kmap usage
a3eeb7fd063f crypto: sun4i-ss - linearize buffers content must be kept
914d61930b89 drm/fb-helper: Add missed unlocks in setcmap_legacy()
200e603d5517 gma500: clean up error handling in init
2e5c94708d3e drm/gma500: Fix error return code in psb_driver_load()
0da21f552344 fbdev: aty: SPARC64 requires FB_ATY_CT
e7b6ac5c46fe net: mvneta: Remove per-cpu queue mapping for Armada 3700
825c82d55197 net: amd-xgbe: Fix network fluctuations when using 1G BELFUSE SFP 46121a6f3be5 net: amd-xgbe: Reset link when the link never comes back
70bf58171f19 net: amd-xgbe: Fix NETDEV WATCHDOG transmit queue timeout warning 0496eb6f48cc net: amd-xgbe: Reset the PHY rx data path when mailbox command timeout 95672dd57547 ibmvnic: skip send_request_unmap for timeout reset
64a87b0b650c ibmvnic: add memory barrier to protect long term buffer
8022d52a102b b43: N-PHY: Fix the update of coef for the PHY revision >= 3case 9db1f14e7043 cxgb4/chtls/cxgbit: Keeping the max ofld immediate data size same in cxgb4 and ulds 399fb9d51ba9 net: axienet: Handle deferred probe on clock properly
774bacf121c3 tcp: fix SO_RCVLOWAT related hangs under mem pressure
88f8f40c901c bpf: Fix bpf_fib_lookup helper MTU check for SKB ctx
5af224ab9486 mac80211: fix potential overflow when multiplying to u32 integers fef6f594ea43 xen/netback: fix spurious event detection for common event case 5c54aaed078d bnxt_en: reverse order of TX disable and carrier off
a1b692506569 ibmvnic: Set to CLOSED state even on error
9de820ae6cc1 ath9k: fix data bus crash when setting nf_override via debugfs 4dcfd936030b bpf_lru_list: Read double-checked variable once without lock bcda70ed686f soc: aspeed: snoop: Add clock control logic
5350b91a73d7 ARM: s3c: fix fiq for clang IAS
b9634e38ac61 arm64: dts: msm8916: Fix reserved and rfsa nodes unit address 65f9fdb425bc Bluetooth: btusb: Fix memory leak in btusb_mtk_wmt_recv
80ace3402885 arm64: dts: armada-3720-turris-mox: rename u-boot mtd partition to a53-firmware 18ab54cfda05 ARM: dts: armada388-helios4: assign pinctrl to each fan
3d3098c2ddad ARM: dts: armada388-helios4: assign pinctrl to LEDs
6b86cbc97589 staging: rtl8723bs: wifi_regd.c: Fix incorrect number of regulatory rules c75f541e12f8 usb: dwc2: Make "trimming xfer length" a debug message
6e89da2174f7 usb: dwc2: Abort transaction after errors with unknown reason c192b2cc4d39 usb: dwc2: Do not update data length if it is 0 on inbound transfers c7722f664788 ARM: dts: Configure missing thermal interrupt for 4430
75921ff8bdc4 memory: ti-aemif: Drop child node when jumping out loop
725cb22009f7 Bluetooth: Put HCI device if inquiry procedure interrupts
9f2816a99ace Bluetooth: drop HCI device reference before return
a5542b45c729 usb: gadget: u_audio: Free requests only after callback
a17fa9039218 ACPICA: Fix exception code class checks
fb6aa67ab1da cpufreq: brcmstb-avs-cpufreq: Fix resource leaks in ->remove() 279bc604e2e9 cpufreq: brcmstb-avs-cpufreq: Free resources in error path
24932862d9ee arm64: dts: allwinner: A64: Limit MMC2 bus frequency to 150 MHz f85f6c5572ff arm64: dts: allwinner: H6: Allow up to 150 MHz MMC bus frequency 06010cf028ce arm64: dts: allwinner: Drop non-removable from SoPine/LTS SD card 288764e9ac2f arm64: dts: allwinner: H6: properly connect USB PHY to port 0 c4be5762aab9 arm64: dts: allwinner: A64: properly connect USB PHY to port 0 c616257c9db4 bpf: Avoid warning when re-casting __bpf_call_base into __bpf_call_base_args fa3fc79c7834 bpf: Add bpf_patch_call_args prototype to include/linux/bpf.h ab9de93d12c9 memory: mtk-smi: Fix PM usage counter unbalance in mtk_smi ops 9ab4364ecd99 arm64: dts: exynos: correct PMIC interrupt trigger level on Espresso 0fb966b5d10b arm64: dts: exynos: correct PMIC interrupt trigger level on TM2 f0f9e9152375 ARM: dts: exynos: correct PMIC interrupt trigger level on Odroid XU3 family d32a94371fc1 ARM: dts: exynos: correct PMIC interrupt trigger level on Arndale Octa da40c06e41b5 ARM: dts: exynos: correct PMIC interrupt trigger level on Spring e23124590415 ARM: dts: exynos: correct PMIC interrupt trigger level on Rinato 4a0e0208bbb5 ARM: dts: exynos: correct PMIC interrupt trigger level on Monk 6d4c9e525833 ARM: dts: exynos: correct PMIC interrupt trigger level on Artik 5 36c39c445265 Bluetooth: Fix initializing response id after clearing struct 04792d477215 Bluetooth: hci_uart: Fix a race for write_work scheduling
b624bc27cf82 Bluetooth: btqcomsmd: Fix a resource leak in error handling paths in the probe function a48bb93f6fbe ath10k: Fix error handling in case of CE pipe init failure
3a954b0d909c random: fix the RNDRESEEDCRNG ioctl
1be2b1d23529 MIPS: vmlinux.lds.S: add missing PAGE_ALIGNED_DATA() section d3b8fa2e1d03 ALSA: usb-audio: Fix PCM buffer allocation in non-vmalloc mode 166f9bc8ca0d bfq: Avoid false bfq queue merging
608ba1f447bc virt: vbox: Do not use wait_event_interruptible when called from kernel context 468bf1861a9c PCI: Decline to resize resources if boot config must be preserved 213c6f635bab PCI: qcom: Use PHY_REFCLK_USE_PAD only for ipq8064
c37821e061f0 kdb: Make memory allocations more robust
6f15d498bfe8 debugfs: do not attempt to create a new file before the filesystem is initalized de5ae4087035 debugfs: be more robust at handling improper input in debugfs_lookup() d239c08f091a kvm: x86: replace kvm_spec_ctrl_test_value with runtime test on the host 0a6565762f27 vmlinux.lds.h: add DWARF v5 sections
--- .../linux/linux-yocto-rt_5.4.bb | 6 ++--- .../linux/linux-yocto-tiny_5.4.bb | 8 +++---- meta/recipes-kernel/linux/linux-yocto_5.4.bb | 22 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb +3 -3
@@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "207cc4c23780d4dd0b40960b1364c75a54437102" -SRCREV_meta ?= "b11f59557b924d5d1db8c088848d40ef1a0b7da6" +SRCREV_machine ?= "34ae8b39b6414e1f05fed93966c5ab1db20b6963" +SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.4.101" +LINUX_VERSION ?= "5.4.103" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb +4 -4
@@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.4.101" +LINUX_VERSION ?= "5.4.103" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine_qemuarm ?= "ca4fa7f9d562a9be1ca7d9d47fa7c2b70d9bb249" -SRCREV_machine ?= "3a8744ea60ad663c53c582d519a636658e405994" -SRCREV_meta ?= "b11f59557b924d5d1db8c088848d40ef1a0b7da6" +SRCREV_machine_qemuarm ?= "ffe71606242ccf95707aae7599805419f14277ff" +SRCREV_machine ?= "80ade4d43bbcb497d363d44508af69af74a84092" +SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9" PV = "${LINUX_VERSION}+git${SRCPV}"
meta/recipes-kernel/linux/linux-yocto_5.4.bb +11 -11
@@ -12,16 +12,16 @@ KBRANCH_qemux86 ?= "v5.4/standard/base" KBRANCH_qemux86-64 ?= "v5.4/standard/base" KBRANCH_qemumips64 ?= "v5.4/standard/mti-malta64" -SRCREV_machine_qemuarm ?= "fe56acd0cb4769b18e8dd778f74f8c64c8622f0c" -SRCREV_machine_qemuarm64 ?= "3a8744ea60ad663c53c582d519a636658e405994" -SRCREV_machine_qemumips ?= "4ddbef4e60bc7e13f2a33f57c3c6dc6ca71e0d81" -SRCREV_machine_qemuppc ?= "3a8744ea60ad663c53c582d519a636658e405994" -SRCREV_machine_qemuriscv64 ?= "3a8744ea60ad663c53c582d519a636658e405994" -SRCREV_machine_qemux86 ?= "3a8744ea60ad663c53c582d519a636658e405994" -SRCREV_machine_qemux86-64 ?= "3a8744ea60ad663c53c582d519a636658e405994" -SRCREV_machine_qemumips64 ?= "44f1e579ba921196f7c3b36e47473b907e09870e" -SRCREV_machine ?= "3a8744ea60ad663c53c582d519a636658e405994" -SRCREV_meta ?= "b11f59557b924d5d1db8c088848d40ef1a0b7da6" +SRCREV_machine_qemuarm ?= "31486fc68d8688908700a68b6655fd50c733d882" +SRCREV_machine_qemuarm64 ?= "80ade4d43bbcb497d363d44508af69af74a84092" +SRCREV_machine_qemumips ?= "aec63899e25194c00dbc5f25db8fe6c4461eef21" +SRCREV_machine_qemuppc ?= "80ade4d43bbcb497d363d44508af69af74a84092" +SRCREV_machine_qemuriscv64 ?= "80ade4d43bbcb497d363d44508af69af74a84092" +SRCREV_machine_qemux86 ?= "80ade4d43bbcb497d363d44508af69af74a84092" +SRCREV_machine_qemux86-64 ?= "80ade4d43bbcb497d363d44508af69af74a84092" +SRCREV_machine_qemumips64 ?= "c155e91597bd1a1aae557405b5061bb8c2695e5d" +SRCREV_machine ?= "80ade4d43bbcb497d363d44508af69af74a84092" +SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9" # remap qemuarm to qemuarma15 for the 5.4 kernel # KMACHINE_qemuarm ?= "qemuarma15"
@@ -30,7 +30,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" -LINUX_VERSION ?= "5.4.101" +LINUX_VERSION ?= "5.4.103" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native"
Signature · 1 line
2.30.2
PATCH 24/25 xcb-proto: update to 1.14.1
In reply to Anuj MittalFrom: Richard Leitner <[email protected]>
This fixes [1] the following build error for nativesdk on Fedora 33 which is caused by the removal of fractions.gcd() in favor of math.gcd() in python 3.9 [2]:
ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib64/python3.9/fractions.py)
Furthermore the SRC_URI is adapted as the old one doesn't provide the 1.14.1 archive.
[1] https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/commit/426ae35bee1fa0fdb8b5120b1dcd20cee6e34512
[2] https://bugs.python.org/issue39350
It's needed in gatesgarth and possibly dunfell as well to support distributions with python-3.9 as we build libxcb-native, which is failing with xcb-proto-1.14.
1.14.1 is a bug fix release:
https://lists.x.org/archives/xorg-announce/2020-October/003061.html
---
.../xorg-proto/{xcb-proto_1.14.bb => xcb-proto_1.14.1.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-graphics/xorg-proto/{xcb-proto_1.14.bb => xcb-proto_1.14.1.bb} (84%)meta/recipes-graphics/xorg-proto/xcb-proto_1.14.1.bb renamed from meta/recipes-graphics/xorg-proto/xcb-proto_1.14.bb +2 -2
@@ -11,8 +11,8 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7 \ file://src/dri2.xml;beginline=2;endline=28;md5=f8763b13ff432e8597e0d610cf598e65" -SRC_URI = "http://xcb.freedesktop.org/dist/${BP}.tar.xz" -SRC_URI[sha256sum] = "186a3ceb26f9b4a015f5a44dcc814c93033a5fc39684f36f1ecc79834416a605" +SRC_URI = "https://xorg.freedesktop.org/archive/individual/proto/${BP}.tar.xz" +SRC_URI[sha256sum] = "f04add9a972ac334ea11d9d7eb4fc7f8883835da3e4859c9afa971efdf57fcc3" inherit autotools pkgconfig python3native
Signature · 1 line
2.30.2
PATCH 25/25 build-appliance-image: Drop kernel module handling
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
kernel-devsrc is a dependency of the image so we no longer need the symlink creation code or the module-base inherit/dependency as it is included in that recipe. The KERNEL_VERSION usage was broken anyway as the module usage would have needed a:
do_image[depends] += "build-appliance-image:do_configure"
which wasn't present so it was indeterminate if KERNEL_VERSION was set correctly.
--- meta/recipes-core/images/build-appliance-image_15.0.0.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
meta/recipes-core/images/build-appliance-image_15.0.0.bb +1 -7
@@ -22,7 +22,7 @@ APPEND += "rootfstype=ext4 quiet" DEPENDS = "zip-native python3-pip-native" IMAGE_FSTYPES = "wic.vmdk" -inherit core-image module-base setuptools3 +inherit core-image setuptools3 SRCREV ?= "3bd4bf96cce57d3e9286f75c0f12c8b36d706a1c" SRC_URI = "git://git.yoctoproject.org/poky;branch=gatesgarth \
@@ -61,12 +61,6 @@ fakeroot do_populate_poky_src () { # Place the README_VirtualBox_Toaster file in builders home folder. cp ${WORKDIR}/README_VirtualBox_Toaster.txt ${IMAGE_ROOTFS}/home/builder/ - # Create a symlink, needed for out-of-tree kernel modules build - if [ ! -e ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build ]; then - rm -f ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build - lnr ${IMAGE_ROOTFS}${KERNEL_SRC_PATH} ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build - fi - echo "INHERIT += \"rm_work\"" >> ${IMAGE_ROOTFS}/home/builder/poky/build/conf/auto.conf echo "export LC_ALL=en_US.utf8" >> ${IMAGE_ROOTFS}/home/builder/.bashrc
Signature · 1 line
2.30.2