linux-firmware: Fix the linux-firmware-bcm4373 FILES variable
This commit includes the 'cyfmac4373-sdio.clm_blob' file in
the list of files for the linux-firmware-bcm4373 package.
Without this file, the linux-firmware package adds all
firmware packages to the image.
Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 7886d3b77200e4488393fa11c8198658fcf386cd) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Ming Liu [Sun, 7 Jan 2024 10:34:48 +0000 (11:34 +0100)]
qemu.bbclass: fix a python TypeError
QEMU_OPTIONS can be empty which will trigger a exception TypeError:
| can only concatenate str (not "NoneType") to str. Fix it by setting a
empty string.
ALso removed two useless blanks.
Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b619197bd52a4a99a9989e7ea6fb7032415b1e42) Signed-off-by: Steve Sakoman <steve@sakoman.com>
William Lyu [Thu, 4 Jan 2024 18:30:45 +0000 (10:30 -0800)]
elfutils: Update license information
Update license information for overall package, package libraries, and
package utilities in the recipe to match the license information as
described on the upstream website [1]:
"License. The libraries and backends are dual GPLv2+/LGPLv3+. The
utilities are GPLv3+."
[1] https://sourceware.org/elfutils
Signed-off-by: William Lyu <William.Lyu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c0728805f24cbd6a788871ae54af4ec8307e40d4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Ming Liu [Wed, 3 Jan 2024 12:30:52 +0000 (13:30 +0100)]
grub: fs/fat: Don't error when mtime is 0
A issue was found when I run "runqemu genericx86-64 ovmf", grub failed
to boot, it's a known issue has been fixed in grub upstream, backport
the fix.
Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 51eab4bb0cae46c9c32d28986eb97badf47594b7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
glibc-y2038-tests: do not run tests using 32 bit time APIs
I'm not sure why this was included and enabled to begin with: the tests
predictably mass-fail if system time is set to after y2038.
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c9c7ebd6e447bce19803253afd881854f686b5f6) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Trevor Gamblin [Tue, 2 Jan 2024 16:52:58 +0000 (11:52 -0500)]
scripts/runqemu: fix regex escape sequences
When invoking runqemu with Python 3.12, the following warning is
encountered:
|SyntaxWarning: invalid escape sequence '\.'
This is because the interpreter scans the string before it is processed
by the regex module, and it interprets the backslash as part of an
escape sequence, but not a standard one. This will be registered as an
error rather than a warning in future Python versions. To avoid the it,
simply add an extra backslash so that Python doesn't misinterpret the
string, while the regex parser still sees an escaped '.' character.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0e8a4142bb90a92d175df6b2537d24a372356f98) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Thu, 28 Dec 2023 22:58:36 +0000 (22:58 +0000)]
curl: Disable test 1091 due to intermittent failures
Disable another test that intermittently fails on the autobuilder.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8d169e13f7e2eb6511f0ac98da63b060c6c0d53a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Wang Mingyu [Fri, 29 Dec 2023 03:25:44 +0000 (11:25 +0800)]
aspell: upgrade 0.60.8 -> 0.60.8.1
CVE-2019-25051.patch
removed since it's included in 0.60.8.1
Changelog:
============
-Fix memory leak in suggestion code introduced in 0.60.8.
-Various documentation fixes.
-Fix various warnings when compiling with -Wall.
-Fix two buffer overflows found by Google's OSS-Fuzz.
-Other minor updates.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ec3c8642f71b470936b6dd29331afa467ab865c7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Wang Mingyu [Wed, 27 Dec 2023 13:06:47 +0000 (21:06 +0800)]
gstreamer1.0: upgrade 1.22.7 -> 1.22.8
From release notes:
1.22 bug-fix release (1.22.8) was released on 18 December 2023.
This release only contains bugfixes and security fixes and it should be safe to update from 1.22.x.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 132d8b7e0188aae8849ae43cfffabce4389a55df) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Simone Weiß [Thu, 11 Jan 2024 15:20:56 +0000 (15:20 +0000)]
glibc: Set status for CVE-2023-5156 & CVE-2023-0687
Set `CVE_STATUS`for those CVEs, they have already been fixed with the latest
pull for stable branch fixes done in rev e444d2bed0ea140a574414fcd5a689867e8ba312. Hence the issues are fixed
already.
Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6e6fe23c95f1d0a8a0503cb71557cf3272bf9945) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Saul Wold [Sun, 24 Dec 2023 01:12:07 +0000 (17:12 -0800)]
package.py: OEHasPackage: Add MLPREFIX to packagename
FIXES [YOCTO #12342]
When testing a Multilib image, the package manifest list contains
the fully qualified package name which includes the Multilib Prefix.
This patch adds the MLPREFIX to the package names that are passed
into the @OEHasPackage() decorator to ensure the set isdisjoint()
matches correctly.
Signed-off-by: Saul Wold <sgw@bigsur.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit ab87e4f92305b2a664cc473869e1615cf56e0936) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Fri, 22 Dec 2023 13:47:39 +0000 (13:47 +0000)]
oeqa/selftest/prservice: Improve test robustness
The tests were not cleaning up after themselves and making assumptions about
memory resident bitbake being stopped by the scripts.
Add cleanup logic to ensure the tests don't break other things and
clean up created files.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 692dd762a0c817797c28381c6169205fbaeb2705) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Thu, 21 Dec 2023 15:14:37 +0000 (15:14 +0000)]
lib/prservice: Improve lock handling robustness
It is possible we could crash holding a lock whilst parsing in this code.
Switch to use utils.fileslocked() in the with expression to avoid this.
This may be causing some of our strange intermittent failures in PRServ
tests.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4e59db15e5df2cc3d0ae042454812a2d54cef77b) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Robert Berger <Robert.Berger@ReliableEmbeddedSystems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2ef7c63871ab4fb62a9cea45a23a78bf9d541e4a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Thu, 21 Dec 2023 12:37:51 +0000 (12:37 +0000)]
curl: Disable two intermittently failing tests
These two tests seem to fail semi-regularly so just stop running them.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1bfa564f1aa8b865f6c3ae3501e6d5f6cc0542eb) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Peter Marko [Sat, 16 Dec 2023 18:55:04 +0000 (19:55 +0100)]
dtc: preserve version also from shallow git clones
Since switch from Makefile to meson based build,
the version is no longer hardcoded but queried from git tag.
This works only if git history is available.
When shallow tarballs are used, tag is not available.
Example error for trusted-firmware-a from meta-arm:
dtc version too old (039a994), you need at least version 1.4.4
Backport also patch to fix version in meson file.
Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 319f5d8a32d1f4a71ac997ce4522249b08f84945) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Mingli Yu [Tue, 19 Dec 2023 02:47:14 +0000 (10:47 +0800)]
python3-license-expression: Fix the ptest failure
Fix the below ptest failure:
self = <test_skeleton_codestyle.BaseTests testMethod=test_skeleton_codestyle>
def test_skeleton_codestyle(self):
"""
This test shouldn't run in proliferated repositories.
"""
setup_cfg = configparser.ConfigParser()
setup_cfg.read("setup.cfg")
> if setup_cfg["metadata"]["name"] != "skeleton":
tests/test_skeleton_codestyle.py:22:
self = <configparser.ConfigParser object at 0x7fd87cf55110>, key = 'metadata'
def _getitem_(self, key):
if key != self.default_section and not self.has_section(key):
> raise KeyError(key)
E KeyError: 'metadata'
Robert Yang [Fri, 15 Dec 2023 13:47:27 +0000 (05:47 -0800)]
nfs-utils: Update Upstream-Status
Update Upstream-Status for 0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7189d1ea5c066b9ffc52103160bb34945fd779d7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Fri, 19 Jan 2024 21:14:19 +0000 (16:14 -0500)]
linux-yocto/6.1: update CVE exclusions
Data pulled from: https://github.com/nluedtke/linux_kernel_cves
1/1 [
Author: Nicholas Luedtke
Email: nicholas.luedtke@uwalumni.com
Subject: Update 15Jan24
Date: Mon, 15 Jan 2024 12:48:45 -0500
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 74bf102eb4ae7377527a146e3db1d9ee1da1f2da) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Fri, 19 Jan 2024 21:14:18 +0000 (16:14 -0500)]
linux-yocto/6.1: update to v6.1.73
Updating linux-yocto/6.1 to the latest korg -stable release that comprises
the following commits:
fec3b1451d5f Linux 6.1.73 f9ee31dc7fcd cifs: fix flushing folio regression for 6.1 backport 0f22c8a6efe6 ipv6: remove max_size check inline with ipv4 b2c545c39877 Revert "nfsd: separate nfsd_last_thread() from nfsd_put()" db5f2f4db8b7 Revert "nfsd: call nfsd_last_thread() before final nfsd_put()"
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 27004956fb5ce3d4c2a48e64681b743763641f04) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Add some configs to harden protection:
CONFIG_HW_RANDOM_TPM=y Exposing the TPM's Random Number Generator as a hwrng device.
CONFIG_DEBUG_WX=y Warn on W+X mappings at boot.
CONFIG_SECURITY_DMESG_RESTRICT=y Restrict unprivileged access to the kernel syslog.
CONFIG_LDISC_AUTOLOAD=n Disable automatically load TTY Line Disciplines.
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 33d3dd8f5469cb0b2999d7f935378899d447b3ce) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Fri, 19 Jan 2024 21:14:12 +0000 (16:14 -0500)]
linux-yocto/6.1: update CVE exclusions
Data pulled from: https://github.com/nluedtke/linux_kernel_cves
1/1 [
Author: Nicholas Luedtke
Email: nicholas.luedtke@uwalumni.com
Subject: Update 27Dec23
Date: Wed, 27 Dec 2023 19:47:13 -0500
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c16ed90dae1f1954b582c4fb6783fca7e3171af3) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Fri, 19 Jan 2024 21:14:11 +0000 (16:14 -0500)]
linux-yocto/6.1: update to v6.1.72
Updating linux-yocto/6.1 to the latest korg -stable release that comprises
the following commits:
7c58bfa711cb Linux 6.1.72 2dbe25ae06e6 Revert "interconnect: qcom: sm8250: Enable sync_state" f73a374c1969 smb3: Replace smb2pdu 1-element arrays with flex-arrays ec162546a733 media: qcom: camss: Comment CSID dt_id field a5c3f2b4cee7 bpf: syzkaller found null ptr deref in unix_bpf proto add 15db682980fc bpf: Fix a verifier bug due to incorrect branch offset comparison with cpu=v4 7cbdf36eabf3 net/sched: act_ct: Always fill offloading tuple iifidx 2be4e8ac2d16 net/sched: act_ct: additional checks for outdated flows 87318b7e374c f2fs: compress: fix to assign compress_level for lz4 correctly 397f719037c2 genirq/affinity: Only build SMP-only helper functions on SMP kernels 28c9222e29e5 mmc: sdhci-sprd: Fix eMMC init failure after hw reset 2813a434d461 mmc: core: Cancel delayed work before releasing host 575e127041f2 mmc: rpmb: fixes pause retune on all RPMB partitions. 9c5efaa09b31 mmc: meson-mx-sdhc: Fix initialization frozen issue 48e1d426f452 drm/amd/display: add nv12 bounding box 11c3510d1d4d drm/amdgpu: skip gpu_info fw loading on navi12 dafdeb7b91f1 mm: fix unmap_mapping_range high bits shift bug 08038069c237 i2c: core: Fix atomic xfer check for non-preempt config 53b42cb33fb1 x86/kprobes: fix incorrect return address calculation in kprobe_emulate_call_indirect d1db1ef5e633 firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards 09a44d994bfe ring-buffer: Fix 32-bit rb_time_read() race with rb_time_cmpxchg() 820a7802f25a btrfs: mark the len field in struct btrfs_ordered_sum as unsigned ab220f4f5c70 btrfs: fix qgroup_free_reserved_data int overflow 0f74dde5be2c octeontx2-af: Support variable number of lmacs 7d3912613d5b octeontx2-af: Fix pause frame configuration a29b15cc68a6 net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table 2bb4ecb3349c netfilter: flowtable: GC pushes back packets to classic path df01de08b411 net/sched: act_ct: Fix promotion of offloaded unreplied tuple 87466a374571 net/sched: act_ct: offload UDP NEW connections 8b160f2fba77 netfilter: flowtable: cache info of last offload c29a7656f8a2 netfilter: flowtable: allow unidirectional rules e681f711e9e8 net: sched: call tcf_ct_params_free to free params in tcf_ct_init d49bf9c1ceb3 mm/memory_hotplug: fix error handling in add_memory_resource() 4666f003afff mm/memory_hotplug: add missing mem_hotplug_lock a576780a2a66 lib/group_cpus.c: avoid acquiring cpu hotplug lock in group_cpus_evenly f33b27f5c3de genirq/affinity: Move group_cpus_evenly() into lib/ 617ba3735d3b genirq/affinity: Rename irq_build_affinity_masks as group_cpus_evenly aeeb4e4e49f8 genirq/affinity: Don't pass irq_affinity_desc array to irq_build_affinity_masks 9e84d7bb1505 genirq/affinity: Pass affinity managed mask array to irq_build_affinity_masks a1dcd1794730 genirq/affinity: Remove the 'firstvec' parameter from irq_build_affinity_masks f4fe76467e7b ALSA: hda/realtek: Add quirk for Lenovo Yoga Pro 7 aee609302d65 firmware: arm_scmi: Fix frequency truncation by promoting multiplier type 90d1f74c3cf6 bpf, sockmap: af_unix stream sockets need to hold ref for pair sock 5ff1682fec18 ethtool: don't propagate EOPNOTSUPP from dumps e570b1508753 dpaa2-eth: recycle the RX buffer only after all processing done 5b8938fc7d00 net: dpaa2-eth: rearrange variable in dpaa2_eth_get_ethtool_stats e88275ce7e7b smb: client: fix missing mode bits for SMB symlinks bf223fd4d914 block: update the stable_writes flag in bdev_add a8e4300ae58d filemap: add a per-mapping stable writes flag d0eafc763135 mm, netfs, fscache: stop read optimisation when folio removed from pagecache bceff380f361 mm: merge folio_has_private()/filemap_release_folio() call pairs 8b6b3ecf0c13 memory-failure: convert truncate_error_page() to use folio a6f440f3b956 khugepage: replace try_to_release_page() with filemap_release_folio() 4c78612e5fbc ext4: convert move_extent_per_page() to use folios b92a8f591ca8 media: qcom: camss: Fix set CSI2_RX_CFG1_VC_MODE when VC is greater than 3 710f70555d5b media: camss: sm8250: Virtual channels for CSID c96a4f936008 selftests: mptcp: set FAILING_LINKS in run_tests 4b85e920afc8 selftests: mptcp: fix fastclose with csum failure 336d1ee07efb f2fs: set the default compress_level on ioctl 1ff3f5ef284b f2fs: assign default compression level 55d3f41e5583 f2fs: convert to use bitmap API 84a8d913fb53 f2fs: clean up i_compress_flag and i_compress_level usage 2c14f4991610 s390/cpumf: support user space events for counting a1a1e5ce88a7 s390/mm: add missing arch_set_page_dat() call to vmem_crst_alloc() 31051f722db2 net/mlx5: Increase size of irq name buffer b5c8e0ff76d1 blk-mq: make sure active queue usage is held for bio_integrity_prep() 803fb6109fcf bpf: fix precision backtracking instruction iteration b08acd5c4602 bpf: handle ldimm64 properly in check_cfg() 2c795ce09042 bpf: Support new 32bit offset jmp instruction b1c780ed3c22 bpf: clean up visit_insn()'s instruction processing 97bb6dab0172 bpf: Remove unused insn_cnt argument from visit_[func_call_]insn() 8266c47d04b2 bpf: remove unnecessary prune and jump points 743f3548d301 bpf: decouple prune and jump points eb4f2e17886a fbdev: imsttfb: fix double free in probe() f2a79f3651a5 fbdev: imsttfb: Release framebuffer and dealloc cmap on error path 51a1b943022f arm64: dts: qcom: sdm845: Fix PSCI power domain names 5db8b93cbe2d arm64: dts: qcom: sdm845: align RPMh regulator nodes with bindings 343bb27e3152 wifi: iwlwifi: yoyo: swap cdb and jacket bits values 158b71f3a9fa udp: annotate data-races around udp->encap_type 8d929b6c1114 udp: lockless UDP_ENCAP_L2TPINUDP / UDP_GRO b680a907d17c udp: move udp->accept_udp_{l4|fraglist} to udp->udp_flags 753886c0b994 udp: move udp->gro_enabled to udp->udp_flags a01cff15ccdc udp: move udp->no_check6_rx to udp->udp_flags 50e41aa9ea0d udp: move udp->no_check6_tx to udp->udp_flags e2a4392b61f6 udp: introduce udp->udp_flags 2489502fb1f5 ipv4, ipv6: Use splice_eof() to flush 4713b7c7568b splice, net: Add a splice_eof op to file-ops and socket-ops ac8c69e448f7 udp: Convert udp_sendpage() to use MSG_SPLICE_PAGES 6bcc79a4e760 net: Declare MSG_SPLICE_PAGES internal sendmsg() flag 89b51e70e5e3 bpf, x86: save/restore regs with BPF_DW size 4ee461c5dc99 bpf, x86: Simplify the parsing logic of structure parameters 605c8d8f9966 bpf, x64: Fix tailcall infinite loop 5573fdbc3423 srcu: Fix callbacks acceleration mishandling abc3e3fb71a5 cpu/SMT: Make SMT control more robust against enumeration failures 482fa21635c8 cpu/SMT: Create topology_smt_thread_allowed() a364c18553d0 selftests: secretmem: floor the memory size to the multiple of page_size c38c5cfd3ed7 net: Implement missing SO_TIMESTAMPING_NEW cmsg support 14937f47a48f bnxt_en: Remove mis-applied code from bnxt_cfg_ntp_filters() 55fbcd83aaca net: ravb: Wait for operating mode to be applied 8a09b0f01c40 asix: Add check for usbnet_get_endpoints db9c4a1f37ee octeontx2-af: Re-enable MAC TX in otx2_stop processing b67e7d78e48a octeontx2-af: Always configure NIX TX link credits based on max frame size 84c3833a93bb net/smc: fix invalid link access in dumping SMC-R connections 0af75845ff5e net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues 9b0504292237 igc: Fix hicredit calculation 7663226274af i40e: Restore VF MSI-X state during PCI reset 5735f529e318 ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux 8719838c126a ASoC: meson: g12a-toacodec: Fix event generation 5de3c8496e77 ASoC: meson: g12a-tohdmitx: Validate written enum values 95b4d4093ac0 ASoC: meson: g12a-toacodec: Validate written enum values 2f3b6e8600c9 i40e: fix use-after-free in i40e_aqc_add_filters() 72fa66177859 net: Save and restore msg_namelen in sock_sendmsg 81f8a995ebc8 netfilter: nft_immediate: drop chain reference counter on error bb1bf97fa187 net: bcmgenet: Fix FCS generation for fragmented skbuffs e75715e1c2e5 sfc: fix a double-free bug in efx_probe_filters 725d44e49fb5 ARM: sun9i: smp: Fix array-index-out-of-bounds read in sunxi_mc_smp_init 85f6fae44bba selftests: bonding: do not set port down when adding to bond 3edd66bd4e42 net: Implement missing getsockopt(SO_TIMESTAMPING_NEW) ac5fde92b510 net: annotate data-races around sk->sk_bind_phc c48fcb4f4906 net: annotate data-races around sk->sk_tsflags 5d586f7ca0fc net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps b2130366a952 can: raw: add support for SO_MARK 633a49e34b32 r8169: Fix PCI error on system resume 565460e180d9 net: sched: em_text: fix possible memory leak in em_text_destroy() ac5cbe931c43 mlxbf_gige: fix receive packet race condition 6d7f45492706 ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset 811604fb02c4 ASoC: fsl_rpmsg: Fix error handler with pm_runtime_enable c3a37dc15685 igc: Check VLAN EtherType mask 6edff0b8381c igc: Check VLAN TCI mask d27b98f4aeae igc: Report VLAN EtherType matching back to user e76d1913f6a8 i40e: Fix filter input checks to prevent config with invalid values 188c9970d05e ice: Shut down VSI with "link-down-on-close" enabled 83b80170b7fa ice: Fix link_down_on_close message f3f6a23e054c drm/i915/dp: Fix passing the correct DPCD_REV for drm_dp_set_phy_test_pattern 6cf7235bc1fb octeontx2-af: Fix marking couple of structure as __packed a4b0a9b80a96 nfc: llcp_core: Hold a ref to llcp_local->dev when holding a ref to llcp_local 282e3fb61285 netfilter: nf_tables: set transport offset from mac header for netdev/egress 9487cc4c90fb netfilter: use skb_ip_totlen and iph_totlen 5f523f1beb46 drm/bridge: ti-sn65dsi86: Never store more than msg->size bytes in AUX xfer 3da4868907da wifi: iwlwifi: pcie: don't synchronize IRQs from IRQ 493d556278a3 KVM: x86/pmu: fix masking logic for MSR_CORE_PERF_GLOBAL_CTRL 3152a7d361c6 cifs: do not depend on release_iface for maintaining iface_list 5982a625fc0d cifs: cifs_chan_is_iface_active should be called with chan_lock held 4afcb82518b9 drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE b9c370b61d73 Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()" af9a5307656d mptcp: prevent tcp diag from closing listener subflows 105063f7f441 ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP ProBook 440 G6 0fa3cf2d151e ALSA: hda/realtek: fix mute/micmute LEDs for a HP ZBook beda900d3aaf ALSA: hda/realtek: enable SND_PCI_QUIRK for hp pavilion 14-ec1xxx series 9539e3b56e0d block: Don't invalidate pagecache for invalid falloc modes 079eefaecfd7 keys, dns: Fix missing size check of V1 server-list header 38fb82ecd144 Linux 6.1.71 74c4c7d57cf2 Revert "platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe" 7709b16bdbd5 tracing/kprobes: Fix symbol counting logic by looking at modules as well 9dd295341dc1 kallsyms: Make module_kallsyms_on_each_symbol generally available 29cb16577189 device property: Allow const parameter to dev_fwnode() e7b04372179e spi: Constify spi parameters of chip select APIs f9a01938e079 NFSD: fix possible oops when nfsd/pool_stats is closed. 899ac41804d8 ring-buffer: Fix slowpath of interrupted event 0105571f80ed netfilter: nf_tables: skip set commit for deleted/destroyed sets 4768430d5a69 ring-buffer: Remove useless update to write_stamp in rb_try_to_discard() f33c4e4cabce tracing: Fix blocked reader of snapshot buffer 09640899e6b7 ring-buffer: Fix wake ups when buffer_percent is set to 100 4ee9d9291b95 mm/memory-failure: check the mapcount of the precise page fb21c9780a31 mm/memory-failure: cast index to loff_t before shifting it be72d197b228 mm: migrate high-order folios in swap cache correctly a8df791470fb mm/filemap: avoid buffered read/write race to read inconsistent data b954b92ef08f platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe 7a3bbbadac4b ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16() b9c5f0fd5cd5 block: renumber QUEUE_FLAG_HW_WC e21b5fc5b887 spi: atmel: Fix clock issue when using devices with different polarities 025cf65f68d4 spi: Add APIs in spi core to set/get spi->chip_select and spi->cs_gpiod 64a4eb2982db spi: Reintroduce spi_set_cs_timing() 95e21657ffe9 linux/export: Ensure natural alignment of kcrctab array bb4f791cb2de nfsd: call nfsd_last_thread() before final nfsd_put() 03d68ffc48b9 nfsd: separate nfsd_last_thread() from nfsd_put() 481561a431ff iio: imu: adis16475: add spi_device_id table 027eaeaf3294 spi: Introduce spi_get_device_match_data() helper 457a219c8453 usb: fotg210-hcd: delete an incorrect bounds test 119127273b5d ARM: dts: Fix occasional boot hang for am3 usb 98235bc13aa8 ksmbd: fix wrong allocation size update in smb2_open() 04b8e04f8f89 ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack() 34f7d5b5c972 ksmbd: lazy v2 lease break on smb2_write() 500c7a5e9af8 ksmbd: send v2 lease break notification for directory 1993959460c0 ksmbd: downgrade RWH lease caching state to RH for directory 2fcb46df3460 ksmbd: set v2 lease capability 3eddc811a7c8 ksmbd: set epoch in create context v2 lease 52a32eafd0a5 ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error 0bc46c2370ee ksmbd: move setting SMB2_FLAGS_ASYNC_COMMAND and AsyncId d9aa5c19084e ksmbd: release interim response after sending status pending response 013bf453af0d ksmbd: move oplock handling after unlock parent dir 20dd92c23756 ksmbd: separately allocate ci per dentry d5651972e5c5 ksmbd: fix possible deadlock in smb2_open aabc944ebf08 ksmbd: prevent memory leak on error return b4a269bb89dd ksmbd: fix kernel-doc comment of ksmbd_vfs_kern_path_locked() 699ad8d03cc5 ksmbd: no need to wait for binded connection termination at logoff 3cf44550814c ksmbd: add support for surrogate pair conversion d26e024a5ead ksmbd: fix missing RDMA-capable flag for IPoIB device in ksmbd_rdma_capable_netdev() 5113f7222554 ksmbd: fix recursive locking in vfs helpers 42e56982bed1 ksmbd: fix kernel-doc comment of ksmbd_vfs_setxattr() 533e6dc4469f ksmbd: reorganize ksmbd_iov_pin_rsp() 1d95c5a54184 ksmbd: Remove unused field in ksmbd_user struct 5929e98f3bb7 ksmbd: fix potential double free on smb2_read_pipe() error path a7aae713eaf2 ksmbd: fix Null pointer dereferences in ksmbd_update_fstate() 943cebf9ea34 ksmbd: fix wrong error response status by using set_smb2_rsp_status() 7b58ee8d0b91 ksmbd: fix race condition between tree conn lookup and disconnect 0090f0bfc225 ksmbd: fix race condition from parallel smb2 lock requests 6584ca894f30 ksmbd: fix race condition from parallel smb2 logoff requests b3a843caed29 ksmbd: fix race condition with fp 7345f5dbf66d ksmbd: check iov vector index in ksmbd_conn_write() 8beae8a0a065 ksmbd: return invalid parameter error response if smb2 request is invalid e523a26c0567 ksmbd: fix passing freed memory 'aux_payload_buf' b4b3fd1a95b4 ksmbd: remove unneeded mark_inode_dirty in set_info_sec() 1ee419e08fa1 ksmbd: remove experimental warning 83b01f7330d7 ksmbd: add missing calling smb2_set_err_rsp() on error 422c0cd01693 ksmbd: Fix one kernel-doc comment c20105a8975c ksmbd: fix `force create mode' and `force directory mode' f8cf1ebb7de6 ksmbd: fix wrong interim response on compound 9f297df20d93 ksmbd: add support for read compound 673e60c69124 ksmbd: switch to use kmemdup_nul() helper 0a9b91f45e88 ksmbd: check if a mount point is crossed during path lookup d782f42eed93 ksmbd: Fix unsigned expression compared with zero 48cc49384048 ksmbd: Replace one-element array with flexible-array member 63fbfd212c82 ksmbd: Use struct_size() helper in ksmbd_negotiate_smb_dialect() e7ab53bd81b0 ksmbd: Replace the ternary conditional operator with min() 143da652cee8 ksmbd: use kvzalloc instead of kvmalloc de43cdaa88c2 ksmbd: Change the return value of ksmbd_vfs_query_maximal_access to void deb79f20be21 ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked() fe7977b872a6 ksmbd: use kzalloc() instead of __GFP_ZERO 294a275f374b ksmbd: remove unused ksmbd_tree_conn_share function b069977b2b47 ksmbd: add mnt_want_write to ksmbd vfs functions 13a5045011ec ksmbd: fix posix_acls and acls dereferencing possible ERR_PTR() 1524884c3efb ksmbd: call putname after using the last component 30a1344198aa ksmbd: fix uninitialized pointer read in smb2_create_link() 6d4e21e369f3 ksmbd: fix uninitialized pointer read in ksmbd_vfs_rename() 6927ffe7479c ksmbd: fix racy issue from using ->d_parent and ->d_name 6e99fbb4296a fs: introduce lock_rename_child() helper 965eb8650737 ksmbd: remove unused compression negotiate ctx packing 49d9f6ad1ee0 ksmbd: avoid duplicate negotiate ctx offset increments 2182d96ec0b7 ksmbd: set NegotiateContextCount once instead of every inc 8d271ef5e5ca ksmbd: delete asynchronous work from list 4ef3fd2f85bb ksmbd: remove unused is_char_allowed function 226aaaa59365 ksmbd: Fix parameter name and comment mismatch e8c49f9364c5 ksmbd: Fix spelling mistake "excceed" -> "exceeded" ada8bcc48acd ksmbd: update Kconfig to note Kerberos support and fix indentation 5c0306b0abcd ksmbd: Remove duplicated codes b6502c34cf30 ksmbd: fix typo, syncronous->synchronous 052b41ef2abe ksmbd: Implements sess->rpc_handle_list as xarray 264547e13f80 ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs 87ffbb9e24ba ksmbd: Fix resource leak in smb2_lock() d847b7588341 ksmbd: use F_SETLK when unlocking a file 343d667deee1 ksmbd: set SMB2_SESSION_FLAG_ENCRYPT_DATA when enforcing data encryption for this share ab69d3e8f7a0 ksmbd: replace one-element arrays with flexible-array members
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b5a2a428407e7f94ef9207dbac9f24dad14c7202) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Wed, 3 Jan 2024 21:24:21 +0000 (16:24 -0500)]
linux-yocto/6.1: update CVE exclusions
Data pulled from: https://github.com/nluedtke/linux_kernel_cves
1/1 [
Author: Nicholas Luedtke
Email: nicholas.luedtke@uwalumni.com
Subject: Update 27Dec23
Date: Wed, 27 Dec 2023 19:47:13 -0500
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit b303a7dd260ad3f6a9e6f1b8099b86efcc8373a9) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Wed, 3 Jan 2024 21:24:20 +0000 (16:24 -0500)]
linux-yocto/6.1: update to v6.1.70
Updating linux-yocto/6.1 to the latest korg -stable release that comprises
the following commits:
a507f147e6f0 Linux 6.1.70 a413b88cdb69 loop: deprecate autoloading callback loop_probe() 75c27bdb2144 wifi: nl80211: fix deadlock in nl80211_set_cqm_rssi (6.6.x) 15577a98ef29 wifi: cfg80211: fix CQM for non-range use 706448f716c1 fuse: share lookup state between submount and its parent ec7b81b0abcd mm/damon/core: make damon_start() waits until kdamond_fn() starts 41f4ff9fe22c x86/alternatives: Sync core before enabling interrupts 425379154b7f KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy 5dfacfd0fcd6 KVM: arm64: vgic: Add a non-locking primitive for kvm_vgic_vcpu_destroy() 3a0fd93cd9f7 KVM: arm64: vgic: Simplify kvm_vgic_destroy() 3339028dd082 thunderbolt: Fix memory leak in margining_port_remove() 69b6596c6e4a lib/vsprintf: Fix %pfwf when current node refcount == 0 2dd6f2286047 gpio: dwapb: mask/unmask IRQ when disable/enale it ab1c3f91d174 bus: ti-sysc: Flush posted write only after srst_udelay cd9f9ef59d85 pinctrl: starfive: jh7100: ignore disabled device tree nodes 7f7efa30fa87 dm-integrity: don't modify bio's immutable bio_vec in integrity_metadata() 33b976a0f2ae tracing / synthetic: Disable events after testing in synth_event_gen_test_init() d2b549d3107b scsi: core: Always send batch on reset or error handling command 72e472a91c0d Revert "scsi: aacraid: Reply queue mapping to CPUs based on IRQ affinity" 4258274bacfb selftests: mptcp: join: fix subflow_send_ack lookup a8555c86f508 ublk: move ublk_cancel_dev() out of ub->mutex 1c250f2c5fa5 ubifs: fix possible dereference after free 3c42cc437d7e btrfs: zoned: no longer count fresh BG region as zone unusable b09a67617621 Revert "drm/amd/display: Do not set DRR on pipe commit" 93da3d8af9ee dm thin metadata: Fix ABBA deadlock by resetting dm_bufio_client e9779fac685e loop: do not enforce max_loop hard limit by (new) default 600043e1856c RISC-V: Fix do_notify_resume / do_work_pending prototype 764c6790dd71 9p: prevent read overrun in protocol dump tracepoint 7d09c84df5ab drm/i915: Reject async flips with bigjoiner c60e10d1549f smb: client: fix OOB in smbCalcSize() bef4315f19ba smb: client: fix OOB in SMB2_query_info_init() 71fe685b6a47 smb: client: fix potential OOB in cifs_dump_detail() 277832a306f9 smb: client: fix OOB in cifsd when receiving compounded resps 3f6da210470c dt-bindings: nvmem: mxs-ocotp: Document fsl,ocotp 1092525155ea net: ks8851: Fix TX stall caused by TX buffer overrun e9df9f089128 net: rfkill: gpio: set GPIO direction 805611157d68 net: 9p: avoid freeing uninit memory in p9pdu_vreadf 4c775b4cd8dd Input: soc_button_array - add mapping for airplane mode button 5df2b49e7e78 net: usb: ax88179_178a: avoid failed operations when device is disconnected 0f7bffd40a51 Bluetooth: Add more enc key size check 39347d645081 Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE e14a7ebafe4e Bluetooth: L2CAP: Send reject on command corrupted request 37f71e2c9f51 Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg 470896ecbc92 Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent d36d945f94c3 ALSA: hda/realtek: Add quirk for ASUS ROG GV302XA 9599a5e34ca9 USB: serial: option: add Quectel RM500Q R13 firmware support a91fb450df5d USB: serial: option: add Foxconn T99W265 with new baseline 73b6b6ab03ae USB: serial: option: add Quectel EG912Y module support 9b968a708678 USB: serial: ftdi_sio: update Actisense PIDs constant names db57ef0dd4c2 wifi: cfg80211: fix certs build to not depend on file order ec350809cd98 wifi: cfg80211: Add my certificate 228d9960ae81 usb-storage: Add quirk for incorrect WP on Kingston DT Ultimate 3.0 G3 82f913724bc9 ALSA: usb-audio: Increase delay in MOTU M quirk 01bc94b58192 iio: triggered-buffer: prevent possible freeing of wrong buffer c508a99fbc21 iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma() 1b670b0eeefa iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table 1fe4c93fc77b scsi: bnx2fc: Fix skb double free in bnx2fc_rcv() 66ccf5f7437a Input: ipaq-micro-keys - add error handling for devm_kmemdup 3637f6bdfe2c interconnect: qcom: sm8250: Enable sync_state 90aa62722d3e iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw 50d60bfc9681 interconnect: Treat xlate() returning NULL node as an error 900c1b3c62f9 drm/i915: Fix ADL+ tiled plane stride when the POT stride is smaller than the original de4349bdf9f3 drm/i915/mtl: Add MTL for remapping CCS FBs 52c1a67dd303 drm/i915/dpt: Only do the POT stride remap when using DPT 7afe8109456d drm/i915: Fix intel_atomic_setup_scalers() plane_state handling b097184f8026 drm/i915: Relocate intel_atomic_setup_scalers() 99767368b7fa drm/i915/mtl: limit second scaler vertical scaling in ver >= 14 387e8077593e nvme-pci: fix sleeping function called from interrupt context b506833ee887 gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl() 6eb51df9e739 pinctrl: at91-pio4: use dedicated lock class for IRQ 903bb0c7b81f x86/xen: add CPU dependencies for 32-bit build 2550d96aa248 i2c: aspeed: Handle the coalesced stop conditions with the start conditions. 5c11f637999c ASoC: fsl_sai: Fix channel swap issue on i.MX8MP 264d8c9b7f7f ASoC: hdmi-codec: fix missing report for jack initial status 9b4c95a63e2d afs: Fix use-after-free due to get/remove race in volume tree 17605162e26b afs: Fix overwriting of result of DNS query 791d5409cdb9 keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry 3e617c7e39eb net: check dev->gso_max_size in gso_features_check() 087b96adc694 afs: Fix dynamic root lookup DNS check 9c6ea7abe3ed afs: Fix the dynamic root's d_delete to always delete unused dentries a70c2dd74198 net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev() ea03196ebc47 net: mana: select PAGE_POOL a1986c429c68 Bluetooth: hci_event: shut up a false-positive warning fc6471510582 Bluetooth: Fix deadlock in vhci_send_frame 3e0d1585799d net/rose: fix races in rose_kill_by_device() 51e28c37d960 ethernet: atheros: fix a memleak in atl1e_setup_ring_resources 6707baabe432 net: sched: ife: fix potential use-after-free 31edab12229c net: Return error from sk_stream_wait_connect() if sk_wait_event() fails 9d00421e1430 octeontx2-pf: Fix graceful exit during PFC configuration failure b0cee294022f net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and above 72b8de75b394 net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors 18b4a5e0c3f5 net/mlx5e: Correct snprintf truncation handling for fw_version buffer 94c8485b449e net/mlx5: Fix fw tracer first block check 1750f55d855a net/mlx5e: fix a potential double-free in fs_udp_create_groups 01877daaeff0 net/mlx5e: Fix a race in command alloc flow f3739647a737 net/mlx5: Re-organize mlx5_cmd struct 148ec770c63e net/mlx5: Prevent high-rate FW commands from populating all slots bd6e09162910 net/mlx5: Introduce and use opcode getter in command interface 0f5de95fa266 net/mlx5e: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list() 31037cfceff8 Revert "net/mlx5e: fix double free of encap_header" 8a84413505a6 Revert "net/mlx5e: fix double free of encap_header in update funcs" 2f635af7d6b4 wifi: mac80211: mesh_plink: fix matches_local logic 7a07af00aa88 wifi: mac80211: mesh: check element parsing succeeded 40ba7f9ab82a wifi: mac80211: check if the existing link config remains unchanged e90da1c7c6e7 wifi: iwlwifi: pcie: add another missing bh-disable for rxq->lock 912652366f9e s390/vx: fix save/restore of fpu kernel context 0a6e700c3d7b reset: Fix crash when freeing non-existent optional resets 930a61fd795d ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init 228a00a77d50 ARM: dts: dra7: Fix DRA7 L3 NoC node register size 913463f8e6cd drm/amd/display: fix hw rotated modes when PSR-SU is enabled a4f48f77bbe7 HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[] 413bef367ba6 HID: i2c-hid: acpi: Unify ACPI ID tables format 57a6b0a464eb bpf: Fix prog_array_map_poke_run map poke update 4768f82272a7 kasan: disable kasan_non_canonical_hook() for HW tags
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit a0bfc167a283372297881baa696bc91bcea7787a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Tue, 2 Jan 2024 04:31:09 +0000 (23:31 -0500)]
linux-yocto/6.1: update to v6.1.69
Updating to the latest korg -stable release that comprises
the following commits:
4aa6747d9352 Linux 6.1.69 325556d46bfd r8152: fix the autosuspend doesn't work 4c2ad8e39c62 r8152: remove rtl_vendor_mode function 1d82735f4bae r8152: avoid to change cfg for all devices 9b3d3a7f3c4d net: tls, update curr on splice as well 869aee35cf61 ring-buffer: Have rb_time_cmpxchg() set the msb counter too c425a772fc58 ring-buffer: Do not try to put back write_stamp b15cf1486999 ring-buffer: Fix a race in rb_time_cmpxchg() for 32 bit archs edbc03d671f7 ring-buffer: Fix writing to the buffer with max_data_size 6d98d594a5b6 ring-buffer: Have saved event hold the entire event 7888b607a981 ring-buffer: Do not update before stamp when switching sub-buffers 7043c4610ca7 tracing: Update snapshot buffer on resize if it is allocated 31785cf8171e ring-buffer: Fix memory leak of free page 8c3b77ad4e91 smb: client: fix OOB in smb2_query_reparse_point() d8541c50c671 smb: client: fix NULL deref in asn1_ber_decoder() 9f528a8e6832 smb: client: fix OOB in receive_encrypted_standard() 7b0faa541f15 drm/i915: Fix remapped stride with CCS on ADL+ 20907717918f drm/amd/display: Disable PSR-SU on Parade 0803 TCON again a9e2de19433f drm/amdgpu: fix tear down order in amdgpu_vm_pt_free 730b3322b8c3 btrfs: don't clear qgroup reserved bit in release_folio 9b670e1b644c btrfs: free qgroup reserve when ORDERED_IOERR is set da9b7c651c65 mm/shmem: fix race in shmem_undo_range w/THP 8ec07b0620ac mm/mglru: fix underprotected page cache 40f3ad769ec8 dmaengine: stm32-dma: avoid bitfield overflow assertion 78b2ba39beef drm/amdgpu/sdma5.2: add begin/end_use ring callbacks 6a1472d9be02 team: Fix use-after-free when an option instance allocation fails b01af9281851 arm64: mm: Always make sw-dirty PTEs hw-dirty in pte_modify 0b071a3266a8 ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS f2955dd3e933 soundwire: stream: fix NULL pointer dereference for multi_link 56f762659a5e btrfs: do not allow non subvolume root targets for snapshot 557f7ad06460 perf: Fix perf_event_validate_size() lockdep splat a684235d3035 HID: hid-asus: add const to read-only outgoing usb buffer 2b9e16bc1ce5 arm64: add dependency between vmlinuz.efi and Image 6cb0c71c6e7c net: usb: qmi_wwan: claim interface 4 for ZTE MF290 f7ce765744a3 asm-generic: qspinlock: fix queued_spin_value_unlocked() implementation fba6e958caa1 HID: multitouch: Add quirk for HONOR GLO-GXXX touchpad 8f0c8585856c HID: hid-asus: reset the backlight brightness level on resume de78e4bdcb5e nbd: pass nbd_sock to nbd_read_reply() instead of index d482bb566344 HID: add ALWAYS_POLL quirk for Apple kb 541b183be92f HID: glorious: fix Glorious Model I HID report 42b4ab97bee5 platform/x86: intel_telemetry: Fix kernel doc descriptions 355170a7ecac LoongArch: Implement constant timer shutdown interface adb6a907540c LoongArch: Add dependency between vmlinuz.efi and vmlinux.efi 943cde1f3daa selftests/bpf: fix bpf_loop_bench for new callback verification scheme 1b40f23e702e nvme: catch errors from nvme_configure_metadata() 6cb3741c4582 nvme-auth: set explanation code for failure2 msgs 83bb13bf6c23 nbd: fold nbd config initialization into nbd_alloc_config() 02a4b14d17ab bcache: avoid NULL checking to c->root in run_cache_set() 3d3f72efc77d bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc() bc17ec4215e2 bcache: remove redundant assignment to variable cur_idx be0e2a28e06a bcache: avoid oversize memory allocation by small stripe_size 94070fd6689e blk-cgroup: bypass blkcg_deactivate_policy after destroying e52d0eb48efd blk-throttle: fix lockdep warning of "cgroup_mutex or RCU read lock required!" 5fb6772cb573 stmmac: dwmac-loongson: Add architecture dependency 82c386d73689 usb: aqc111: check packet for fixup for true limit d6c02295c824 x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM ae818b2a2e78 drm/mediatek: Add spinlock for setting vblank event in atomic_begin 73c240e1ec73 ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE 0c196180b588 PCI: loongson: Limit MRRS to 256 56d1891594d6 Revert "PCI: acpiphp: Reassign resources on bridge if necessary" 1ec80b9d4310 ALSA: hda/realtek: Apply mute LED quirk for HP15-db eeeb91216a1b ALSA: hda/hdmi: add force-connect quirks for ASUSTeK Z170 variants 82413e9e4255 ALSA: hda/hdmi: add force-connect quirk for NUC5CPYB 0dc6a06c4843 fuse: dax: set fc->dax to NULL in fuse_dax_conn_free() 36e2497ac7ad cred: switch to using atomic_long_t a51f71cd4f56 net: atlantic: fix double free in ring reinit logic 1646b2929d5e appletalk: Fix Use-After-Free in atalk_ioctl d835299dde3e net: stmmac: Handle disabled MDIO busses from devicetree 9aac81639e52 dpaa2-switch: do not ask for MDB, VLAN and FDB replay a81c7069af05 dpaa2-switch: fix size of the dma_unmap 9a23be1e5806 vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space() 2027dd67c3cf sign-file: Fix incorrect return values check 918991db7de0 stmmac: dwmac-loongson: Make sure MDIO is initialized before use 63387fe87fc5 net: ena: Fix XDP redirection error 2664b56420b3 net: ena: Fix xdp drops handling due to multibuf packets e312eed27aba net: ena: Destroy correct number of xdp queues upon failure 55a43bae0886 net: Remove acked SYN flag from packet in the transmit queue correctly 9bb392ee53af qed: Fix a potential use-after-free in qed_cxt_tables_alloc 112792ad36c4 iavf: Handle ntuple on/off based on new state machines for flow director 11c314a5a44a iavf: Introduce new state machines for flow director 01540ee2366a net/rose: Fix Use-After-Free in rose_ioctl 2de2a6cbe14f atm: Fix Use-After-Free in do_vcc_ioctl 3a76dcab2e3a octeontx2-af: Update RSS algorithm index d0f0786f8c5a octeontx2-pf: Fix promisc mcam entry action 34b630626a97 octeontx2-af: fix a use-after-free in rvu_nix_register_reporters e4ce3dc7a0ed net: fec: correct queue selection a00dbc6dec4b net: vlan: introduce skb_vlan_eth_hdr() 7cfbb8bea36a atm: solos-pci: Fix potential deadlock on &tx_queue_lock 35c63d366fff atm: solos-pci: Fix potential deadlock on &cli_queue_lock 525904a15791 bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic ac6125174190 bnxt_en: Fix wrong return value check in bnxt_close_nic() 8217f9362c79 bnxt_en: Save ring error counters across reset 53cacb8cdc7e bnxt_en: Clear resource reservation during resume ab410db6e9aa qca_spi: Fix reset behavior 7e177e5a40d0 qca_debug: Fix ethtool -G iface tx behavior 2127142c179c qca_debug: Prevent crash on TX ring changes 0da41ddfb291 net: ipv6: support reporting otherwise unknown prefix flags in RTM_NEWPREFIX 514232495aa5 net/mlx5e: Fix possible deadlock on mlx5e_tx_timeout_work 1e8396aab21d HID: lenovo: Restrict detection of patched firmware only to USB cptkbd e0cda159c865 afs: Fix refcount underflow from error handling race a7e6477cc3af ksmbd: fix memory leak in smb2_lock() 8925ab33b391 ext4: fix warning in ext4_dio_write_end_io() 1c077acf246c powerpc/ftrace: Fix stack teardown in ftrace_no_trace 34ae53cccf53 r8152: add vendor/device ID pair for ASUS USB-C2500 cac1218b32d7 r8152: add vendor/device ID pair for D-Link DUB-E250 893597cbabfb r8152: add USB device driver for config selection b80d0c6e5bae perf/x86/uncore: Don't WARN_ON_ONCE() for a broken discovery table
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7a4364e4733c8b8757927596dcbf7d6230f1da96) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Wang Mingyu [Tue, 19 Dec 2023 09:33:46 +0000 (17:33 +0800)]
kea: upgrade 2.4.0 -> 2.4.1
Changelog:
=========
-The library version numbers have been bumped up for the Kea 2.4.1 stable release.
-Fixed interface redetection which had stopped working since Kea 2.3.6.
-Fixed a race condition in free lease queue allocator
fix-multilib-conflict.patch
fix_pid_keactrl.patch
refreshed for 2.4.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7afab39fd1c3239df3bb2fa49b79a5efaaaf9db6) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Markus Volk [Fri, 15 Dec 2023 17:30:55 +0000 (18:30 +0100)]
libadwaita: update 1.4.0 -> 1.4.2
=============
Version 1.4.2
=============
- Really fix build with libappstream 1.0
=============
Version 1.4.1
=============
- Fix build with MSVC
- Fix build with libappstream 1.0
- AdwCarousel
- Fix carousel scroll behavior with page reordering
- AdwComboRow
- Fix focus when opening the popover
- Set the correct state on the selected checkmark
- AdwNavigationView
- Fix a warning message
- AdwTabOverview
- Allow child focus on out animations
- AdwTabView
- Keep view alive during ::page-detached
- Fix crashes when using :pages
- Docs
- Fix erroneous <child> use in breakpoints migration guide
- Translation updates
- Russian
- Serbian
Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7c02a1169197fd5452d5b323dd523f6712245cb6) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Wang Mingyu [Tue, 19 Dec 2023 09:28:20 +0000 (17:28 +0800)]
libatomic-ops: upgrade 7.8.0 -> 7.8.2
Changelog:
=========
* Eliminate 'atomic_thread_fence is unsupported with tsan' gcc-11 warning
* Eliminate 'comparing signed/unsigned values' lcc warning in add_chunk_as
* Fix 'undefined reference to AO_pt_lock' if configure is using clang-16
* Fix 'undefined reference to __atomic_load/store/cas_16' Mingw64-gcc error
* Fix 'undefined reference' linker errors if shared build on OpenBSD (CMake)
* Fix get_chunk for case of mmap area is located before AO_initial_heap
* Fix typo in AO_HAVE_compare_and_swap_double name in atomic_ops_stack.h
* Fix typo in comment of run_one_test of test_stack
* Fix typos in comments of atomic_ops_malloc.c and atomic_ops_stack.c/h
* Update cmake minimum required version to 3.5
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1dea52da8cd00e6619890b8c4dcece8b5ff83f74) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Joshua Watt [Fri, 15 Dec 2023 20:34:04 +0000 (13:34 -0700)]
rpcbind: Specify state directory under /run
The state directory must be correctly specified as under /run because
RequiresMountsFor doesn't follow symbolic links which means the unit may
run before /run is mounted if the default of /var/run/rpcbind is kept
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 561e853e97e2cfa325ed310233577a5e124d9049) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bb9f2a9c0ff5dcdeaf1a0beb6a614d0d022a2481) Signed-off-by: Steve Sakoman <steve@sakoman.com>
devtool: modify: Handle recipes with a menuconfig task correctly
This avoids the following error when running `devtool modify` on a
recipe that has a menuconfig task, but does not have
KCONFIG_CONFIG_ENABLE_MENUCONFIG set.
.../temp/run.do_configure.4163366: line 152:
${@ oe.types.boolean('${KCONFIG_CONFIG_ENABLE_MENUCONFIG}') }: bad substitution
WARNING: .../temp/run.do_configure.4163366:152 exit 1 from
'[ ${@ oe.types.boolean('${KCONFIG_CONFIG_ENABLE_MENUCONFIG}') } = True ]'
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e87e6fa84a0c4b5ac8e736dc62f6e08390ba2436) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Sun, 10 Dec 2023 09:33:17 +0000 (09:33 +0000)]
sstate: Fix dir ownership issues in SSTATE_DIR
We currently use mkdir -p to create missing parent directories within SSTATE_DIR.
Reading the man page for mkdir mentions that parent directories are created with
the current umask, *not* the mode passed upon the commandline.
We could fix this by setting and resetting the umask but since we already have
decent python code able to do this, move to using that injecting a python function
into the chain of functions already present.
This should help fix the occasional sstate directory creation with the wrong
permissions.
[YOCTO #14385]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ae642a4b038c6946e6c8aa9778bf09099d938a31) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Xiangyu Chen [Mon, 22 Jan 2024 09:29:10 +0000 (17:29 +0800)]
sudo: upgrade 1.9.14p3 -> 1.9.15p2
Changelog:
===========
1.9.15p2:
- Fixed a bug on BSD systems where sudo would not restore the
terminal settings on exit if the terminal had parity enabled.
1.9.15p1:
- Fixed a bug introduced in sudo 1.9.15 that prevented LDAP-based
sudoers from being able to read the ldap.conf file.
1.9.15:
- Fixed an undefined symbol problem on older versions of macOS
when "intercept" or "log_subcmds" are enabled in sudoers.
- Fixed "make check" failure related to getpwent(3) wrapping
on NetBSD.
- Fixed the warning message for "sudo -l command" when the command
is not permitted. There was a missing space between "list" and
the actual command due to changes in sudo 1.9.14.
- Fixed a bug where output could go to the wrong terminal if
"use_pty" is enabled (the default) and the standard input, output
or error is redirected to a different terminal. Bug #1056.
- The visudo utility will no longer create an empty file when the
specified sudoers file does not exist and the user exits the
editor without making any changes. GitHub issue #294.
- The AIX and Solaris sudo packages on www.sudo.ws now support
"log_subcmds" and "intercept" with both 32-bit and 64-bit
binaries. Previously, they only worked when running binaries
with the same word size as the sudo binary. GitHub issue #289.
- The sudoers source is now logged in the JSON event log. This
makes it possible to tell which rule resulted in a match.
Running "sudo -ll command" now produces verbose output that
includes matching rule as well as the path to the sudoers file
the matching rule came from. For LDAP sudoers, the name of the
matching sudoRole is printed instead.
- The embedded copy of zlib has been updated to version 1.3.
- The sudoers plugin has been modified to make it more resilient
to ROWHAMMER attacks on authentication and policy matching.
This addresses CVE-2023-42465.
- The sudoers plugin now constructs the user time stamp file path
name using the user-ID instead of the user name. This avoids a
potential problem with user names that contain a path separator
('/') being interpreted as part of the path name. A similar
issue in sudo-rs has been assigned CVE-2023-42456.
- A path separator ('/') in a user, group or host name is now
replaced with an underbar character ('_') when expanding escapes
in @include and @includedir directives as well as the "iolog_file"
and "iolog_dir" sudoers Default settings.
- The "intercept_verify" sudoers option is now only applied when
the "intercept" option is set in sudoers. Previously, it was
also applied when "log_subcmds" was enabled. Sudo 1.9.14
contained an incorrect fix for this. Bug #1058.
- Changes to terminal settings are now performed atomically, where
possible. If the command is being run in a pseudo-terminal and
the user's terminal is already in raw mode, sudo will not change
the user's terminal settings. This prevents concurrent sudo
processes from restoring the terminal settings to the wrong values.
GitHub issue #312.
- Reverted a change from sudo 1.9.4 that resulted in PAM session
modules being called with the environment of the command to be
run instead of the environment of the invoking user.
GitHub issue #318.
- New Indonesian translation from translationproject.org.
- The sudo_logsrvd server will now raise its open file descriptor
limit to the maximum allowed value when it starts up. Each
connection can require up to nine open file descriptors so the
default soft limit may be too low.
- Better log message when rejecting a command if the "intercept"
option is enabled and the "intercept_allow_setid" option is
disabled. Previously, "command not allowed" would be logged and
the user had no way of knowing what the actual problem was.
- Sudo will now log the invoking user's environment as "submitenv"
in the JSON logs. The command's environment ("runenv") is no
longer logged for commands rejected by the sudoers file or an
approval plugin.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Robert Yang [Mon, 11 Dec 2023 14:49:50 +0000 (06:49 -0800)]
nfs-utils: Upgrade 2.6.3 -> 2.6.4
* Remove backported patch 0001-configure.ac-libevent-and-libsqlite3-checked-when-nf.patch.
* Add 0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch to fix build with musl
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit ff416e9fd6a1a65cf59ecd662613581b6190e05e) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Fri, 8 Dec 2023 17:30:53 +0000 (17:30 +0000)]
pseudo: Update to pull in syncfs probe fix
Pulls in the changes:
Eilís 'pidge' Ní Fhlannagáin (1):
subports: Add _GNU_SOURCE for syncfs probe
Richard Purdie (1):
SECURITY.md: Add file
Wu Zhenyu (1):
pseudo.1: Fix a typo
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9aab5be508c0dd88a4d9767f65ba5b6fcd5fb9dd) Signed-off-by: Steve Sakoman <steve@sakoman.com>
zstd is dual-licensed under BSD _OR_ GPLv2. License wording in the
README for v1.5.5 is misleading, but license headers in the code clearly
state that there is a choice between the two licenses.
Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 40f85de590c188c9c3985e64a83efaf06b0b4fbc) Signed-off-by: Steve Sakoman <steve@sakoman.com>
As discussion in [YOCTO #14717] cmake contains a OEToolchainConfig.cmake
file to configure the toolchain correctly in cross-compile build for recipes
using cmake.
The variable CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES value updates incorrectly
during do_compile the code. Due to this getting sporadic error like below,
fatal error: stdlib.h: No such file or directory
| 75 | #include_next <stdlib.h>
| | ^~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
As cmake already correctly initializes the variable from environment,
So we have to unset it in the toolchain file to avoid overwriting the
variable definition again.
Signed-off-by: aszh07 <mail2szahir@gmail.com> Signed-off-by: Zahir Hussain <zahir.basha@kpit.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5aeada5793af53e8c93940952d4f314474dca4c2) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Jason Andryuk [Tue, 5 Dec 2023 18:42:05 +0000 (13:42 -0500)]
linux-firmware: Change bnx2 packaging
The bnx2 module uses both the mips and rv2p files, so package them all
together. Remove -mips from the package name, but add an RPROVIDES for
compatibility.
Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 46f2b7b3bebc7efdb4199cdfe386dc16c049d8d7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Jose Quaresma [Wed, 6 Dec 2023 15:59:30 +0000 (15:59 +0000)]
go: update 1.20.11 -> 1.20.12
Upgrade to latest 1.20.x release [1]:
$ git log --oneline go1.20.11..go1.20.12 97c8ff8d53 (tag: go1.20.12, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.12 6446af942e [release-branch.go1.20] net/http: limit chunked data overhead 77397ffcb2 [release-branch.go1.20] crypto/rand,runtime: revert "switch RtlGenRandom for ProcessPrng" d77307f855 [release-branch.go1.20] cmd/compile: fix findIndVar so it does not match disjointed loop headers 1bd76576fe [release-branch.go1.20] crypto/rand,runtime: switch RtlGenRandom for ProcessPrng 1b59b017db [release-branch.go1.20] path/filepath: consider \\?\c: as a volume on Windows 46bc33819a [release-branch.go1.20] cmd/go/internal/vcs: error out if the requested repo does not support a secure protocol e1dc209be8 [release-branch.go1.20] cmd/go/internal/modfetch/codehost: set core.longpaths in Git repos on Windows
Ross Burton [Mon, 18 Dec 2023 17:08:01 +0000 (17:08 +0000)]
tcl: skip async and event tests in run-ptest
These test suites are full of timing-sensitive test cases, so skip
them too.
[ YOCTO #15321 ]
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dd06c3668dbe9ec1cf9a0a84d7a6bc9851f9c662) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Tue, 19 Dec 2023 16:04:24 +0000 (16:04 +0000)]
testimage: Drop target_dumper and most of monitor_dumper
The target_dumper code is basically broken. It has been reading binary files
over the text base serial communication and runs at every command failure which
makes no sense. Each run might overwrite files from the previous run and the
output appears corrupted due to confusion from the binary data.
For now, remove the commands and the target dumper code as the command
and execution point are problematic. Also remove the same pieces of the monitor
code but leave the command list since in theory this can be moved to a more
useful place in the code.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a24d787987dccc95fdd95b7e85bf525a1c55b285) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Trevor Gamblin [Wed, 29 Nov 2023 14:32:41 +0000 (09:32 -0500)]
patchtest: shorten patch signed-off-by test output
The patch Signed-off-by test's output line is excessively long, and can
trigger a failsafe in the patchtest automated service's email content
generation. Shorten the output by reducing redundant phrasing and using
os.path.basename to get only the failing patch's name, not the entire
path, as the submitter should have a good idea of where it is located
regardless.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cc7546ded87dd44a988d7a23f1d7645094b5cdd4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Marco Felsch [Tue, 28 Nov 2023 22:47:44 +0000 (23:47 +0100)]
json-c: fix icecc compilation
Skip -Werror to make it possible to compile this recipe with ICECC else
all fallthrough comments will be removed since we pre-process the files
on the host before sending them to the compile nodes which then cause
errors because of default -Werror switch.
Fixes: caf64f85b5c5 ("json-c: update 0.13.1 - > 0.14") Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 915f8307b063e17ddadd5dface83578b8ad254e2) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Markus Volk [Sat, 25 Nov 2023 11:15:52 +0000 (12:15 +0100)]
cups: Add root,sys,wheel to system groups
The Cups documentation states:
The default contains "admin", "lpadmin", "root", "sys" and/or "system".
https://www.cups.org/doc/man-cups-files.conf.html#:~:text=SystemGroup
Add root and sys accordingly
Also add wheel group. This is required for systems with polkit support in order to
control the printer settings with cups-pk-helper.
Not only for gnome-control-center, but also when using plain system-config-printer on
a system with running polkit, cups-pk-helper would be a required rdepend.
Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 572fed0ac6dbcf5749e19c7b624826fc30cf301e) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This fixes an issue running "opkg upgrade" on a system with systemd
(and when there is an update to "systemd-compat-units",
for example between yocto 4.2.2 and 4.2.3):
//var/lib/opkg/info/systemd-compat-units.postinst: cd: line 3: can't cd to /etc/init.d: No such file or directory
The existence of /etc/init.d is now tested
without causing an error if doesn't exist.
Fixes [YOCTO #15292]
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0330331a1386fd2a34b410a7f62b29bfc8dc23c4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Wed, 22 Nov 2023 09:35:01 +0000 (09:35 +0000)]
package_ipk: Fix Source: field variable dependency
The Source: variable is generated from FILE but this is excluded from checksums
normally which results in a reproduciubility issue when the filename changes.
Add in a dependency by reworking the code a little to avoid this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3ea7da76c6930031a0071069027b1d71f737fbc9) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Javier Tia <javier.tia@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 47fa8d81083f1ef594f8fe6fcab3e227e9607b3f) Signed-off-by: Steve Sakoman <steve@sakoman.com>
If we chdir(), do the chdir back to the original directory in a finally
block so they always run.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cdc40292818683b6df1c814498c7589450a163fa) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Adam Johnston [Tue, 21 Nov 2023 19:05:28 +0000 (19:05 +0000)]
useradd_base: Fix sed command line for passwd-expire
A previous commit tried to add the --follow-symlinks option to
the perform_passwd_expire function in useradd_base.bbclass, however it used
a single -.
This is interpreted as --file=ollow-symlinks which results in...
sed: couldn't open file ollow-symlinks: No such file or directory
and...
ERROR: <image name>: passwd --expire operation did not succeed.
Fix by adding the missing -
Signed-off-by: Adam Johnston <adam.johnston@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3c0deafcfcea3f610c7dd9a2d2884a16fbfe0497) Signed-off-by: Steve Sakoman <steve@sakoman.com>
As stated in the LICENSES/README.md "Unless otherwise noted, the systemd
project sources are licensed under the terms and conditions of the GNU
Lesser General Public License v2.1 or later", so replace LGPL-2.1-only
with LGPL-2.1-or-later.
With the exception of some udev sources that are licensed under
GPL-2.0-or-later (but are packaged separately), the project is licensed
under LGPL, and all the components are LGPL or under LGPL compatible
licenses. The package libsystemd is currently under the main package
license, which can cause problems when scanning for GPL software linked
to CLOSED one. Add more granularity by setting a license for libsystemd
to LGPL-2.1-or-later.
Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 54975f4b2184fe12c4995c289eba8358958e6c21) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Brad King (6):
Android: Require Clang 18 for -std=c++23
Tests: Clarify RunCMake.CTestTimeout case name
ctest: Restore support for --timeout values higher than default test timeout
Help: Document CMP0124 behavior on already-set variables
FindPostgreSQL: Add support for version 16
CMake 3.27.7
Wang Mingyu [Wed, 22 Nov 2023 09:01:09 +0000 (17:01 +0800)]
libxslt: upgrade 1.1.38 -> 1.1.39
Changelog:
===========
- extensions: Don't search imports for extension prefixes
- transform: Check maximum depth when processing default templates
- build: Add more missing includes
- python: Don't set deprecated global
- build: Add missing includes
- imports: Limit nesting depth
- extensions: Report top-level elements in xsltDebugDumpExtensions
- Add extern "C" { } block to xsltlocale.h
- python: Make it compatible with python3.12
- date: Fix check for localtime_s
- date: Fix check for gmtime_s
- pkg-config files include cflags for static builds
- Handle NOCONFIG case when setting locations from CMake target properties
- autotools: Make xslt-config executable
- tests: Structured error handler now passes a const xmlError
- python: Fix tests on MinGW
- fuzz: Fix xmlFuzzEntityLoader after recent libxml2 changes
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 48b353f3fb8e5ab1853cba7faa3065d2fe6f36b4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Wang Mingyu [Wed, 22 Nov 2023 08:59:44 +0000 (16:59 +0800)]
libgcrypt: upgrade 1.10.2 -> 1.10.3
Changelog:
==========
- Fix public key computation for other EdDSA curves.
- Remove out of core handler diagnostic in FIPS mode.
- Check that the digest size is not zero in gcry_pk_sign_md and
gcry_pk_verify_md.
- Make store an s-exp with \0 is considered to be binary.
- Various constant-time improvements.
- Use getrandom call only when supported by the platform.
- Change the default for --with-libtool-modification to never.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit e21583896116cf37bf6b95aea466854e4fd5e54b) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Wang Mingyu [Wed, 22 Nov 2023 08:55:21 +0000 (16:55 +0800)]
ell: upgrade 0.59 -> 0.60
Changelog:
==========
-Fix issue with missing NETLINK_EXT_ACK definition.
-Fix issue with incorrect derivation of ECC compressed points.
-Add support for ECC usage from SPAKE2+ key exchange protocol.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 9b13c1ffadda0893561e804d2ab789bf1c401d3a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Wang Mingyu [Wed, 22 Nov 2023 08:53:52 +0000 (16:53 +0800)]
bind: upgrade 9.18.19 -> 9.18.20
Changelog:
============
-Fix missing newlines in the output of "rndc nta -dump".
-Take into account local authoritative zones when falling back to serve-stale.
-Fix assertion failure when using lock-file configuration option together -X
argument to named.
-The 'lock-file' file was being removed when it shouldn't have been making it
ineffective if named was started 3 or more times.
-Fix a shutdown race in dns__catz_update_cb().
-B.ROOT-SERVERS.NET addresses are now 170.247.170.2 and 2801:1b8:10::b.
-The timeouts for resending zone refresh queries over UDP were lowered to enable
named to more quickly determine that a primary is down.
-Don't schedule resign operations on the raw version of an inline-signing zone.
-Fix a possible assertion failure on an error path in resolver.c:fctx_query(),
when using an uninitialized link.
-Add semantic patch to do an explicit cast from char to unsigned char in ctype.h
class of functions.
-Python system tests have to be executed by invoking pytest directly. Executing
them with the legacy test runner is no longer supported.
-The wrong covered value was being set by dns_ncache_current for RRSIG records
in the returned rdataset structure. This resulted in TYPE0 being reported as
the covered value of the RRSIG when dumping the cache contents.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 9b34124561d926d9273c52163853161515e5666a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
That's not really correct because the synchronization should happen before
interrupts are reenabled to ensure that a pending interrupt observes the
complete update of the opcodes.
It's not entirely clear whether the interrupt entry provides enough
serialization already, but moving the sync_core() invocation into interrupt
disabled region does no harm and is obviously correct.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
2/2 [
Author: Thomas Gleixner
Email: tglx@linutronix.de
Subject: x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
Date: Thu, 7 Dec 2023 20:49:26 +0100
apply_alternatives() treats alternatives with the ALT_FLAG_NOT flag set
special as it optimizes the existing NOPs in place.
Unfortunately this happens with interrupts enabled and does not provide any
form of core synchronization.
So an interrupt hitting in the middle of the update and using the affected
code path will observe a half updated NOP and crash and burn. The following
3 NOP sequence was observed to expose this crash halfways reliably under
QEMU 32bit:
Where only #1 and #4 are true NOPs. The same problem exists for 64bit obviously.
Disable interrupts around this NOP optimization and invoke sync_core()
before reenabling them.
Fixes: 270a69c4485d ("x86/alternative: Support relocations in alternatives") Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1c8d29ab6b02c5b783429db3b67583deb1637142) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Richard Purdie [Sat, 23 Dec 2023 08:45:07 +0000 (08:45 +0000)]
linux/cve-exclusion6.1: Update to latest kernel point release
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c4ffd18d3e71b935acc050b106267db544d86df7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Bruce Ashfield [Thu, 21 Dec 2023 14:25:06 +0000 (09:25 -0500)]
linux-yocto/6.1: update to v6.1.66
Updating to the latest korg -stable release that comprises
the following commits:
6c6a6c7e211c Linux 6.1.66 ea574927fc0b iomap: update ki_pos a little later in iomap_dio_complete adf0ecebf00a x86/apic/msi: Fix misconfigured non-maskable MSI quirk b3b839fb636b x86/xen: fix percpu vcpu_info allocation 00bc8b2cf44c xen: simplify evtchn_do_upcall() call maze 9311a0ff388a xen: Allow platform PCI interrupt to be shared 402b8323461c r8169: fix deadlock on RTL8125 in jumbo mtu mode 22ee0ddb2af7 r8169: disable ASPM in case of tx timeout 10ce6301009f drm/amd/display: Fix MPCC 1DLUT programming 8332cb6c6339 drm/amd/display: Fix the delta clamping for shaper LUT 442a4d4d0157 drm/amd/display: clean code-style issues in dcn30_set_mpc_shaper_3dlut 6cd736272165 drm/amd/display: Expand kernel doc for DC 8b01195be4a9 mmc: sdhci-sprd: Fix vqmmc not shutting down after the card was pulled 38d3216032c9 mmc: core: add helpers mmc_regulator_enable/disable_vqmmc 0e0a95166882 drm/amd/pm: fix a memleak in aldebaran_tables_init 59862b869275 iommu/vt-d: Make context clearing consistent with context mapping ee2c2247690c iommu/vt-d: Disable PCI ATS in legacy passthrough mode 8f39d297a26a iommu/vt-d: Add device_block_translation() helper 3787b3168b6c iommu/vt-d: Allocate pasid table in device probe path 681aeeda413d iommu/vt-d: Omit devTLB invalidation requests when TES=0 8aaed5b81d26 cpufreq: imx6q: Don't disable 792 Mhz OPP unnecessarily d3788f6e9d5a cpufreq: imx6q: don't warn for disabling a non-existing frequency 195514bda626 drm/amd/display: Guard against invalid RPTR/WPTR being set 395a63ca1ad2 drm/amd/display: Restore rptr/wptr for DMCUB as workaround 4ec4508db975 spi: Fix null dereference on suspend b57eebfb80e8 fbdev: stifb: Make the STI next font pointer a 32-bit signed offset 5bc8d96fedce PCI: qcom-ep: Add dedicated callback for writing to DBI2 registers 10c3d86fea04 octeontx2-af: Initialize 'cntr_val' to fix uninitialized symbol error 1c8f75ee9233 PCI: Lengthen reset delay for VideoPropulsion Torrent QN16e card 7545ddda9c98 KVM: x86: Fix lapic timer interrupt lost after loading a snapshot. 21feaf558f93 net: ravb: Keep reverse order of operations in ravb_remove() 8d04278ff48b net: ravb: Stop DMA in case of failures on ravb_open() 52b751686cbf net: ravb: Start TX queues after HW initialization succeeded e2db25d16cdd net: ravb: Make write access to CXR35 first before accessing other EMAC registers f5c649ce7975 net: ravb: Use pm_runtime_resume_and_get() 149b2fe12aca net: ravb: Check return value of reset_control_deassert() 7ed2e4c2d016 ravb: Fix races between ravb_tx_timeout_work() and net related ops 8b1d088be5f1 r8169: prevent potential deadlock in rtl8169_close 9c4ac2d98a48 octeontx2-pf: Restore TC ingress police rules when interface is up aef2d5b3e56e octeontx2-af: Install TC filter rules in hardware based on priority 662b88708408 octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64 5d5bcfb1ca8d net: stmmac: xgmac: Disable FPE MMC interrupts 334e6378c28c octeontx2-af: Fix possible buffer overflow c3e974e9c4bb selftests/net: mptcp: fix uninitialized variable warnings 12dd4c1bf3bd selftests/net: unix: fix unused variable compiler warning 4e999af7cf8a selftests/net: fix a char signedness issue 249ceee95caf selftests/net: ipsec: fix constant out of range e01249a83939 uapi: propagate __struct_group() attributes to the container union fd91b48f108d dpaa2-eth: increase the needed headroom to account for alignment 94445d958307 ipv4: igmp: fix refcnt uaf issue when receiving igmp query packet f89fef7710b2 usb: config: fix iteration issue in 'usb_get_bos_descriptor()' 9aff7c51b440 USB: core: Change configuration warnings to notices c89b34eef336 USB: xhci-plat: fix legacy PHY double init 307a6525c82a wifi: cfg80211: fix CQM for non-range use e8c1105c0ccc serial: sc16is7xx: add missing support for rs485 devicetree properties 55061c323075 serial: sc16is7xx: Put IOControl register into regmap_volatile a491c7be35ed auxdisplay: hd44780: move cursor home after clear display command 7f2116777541 Input: xpad - add HyperX Clutch Gladiate Support 7a105de27538 btrfs: fix 64bit compat send ioctl arguments not initializing version member 32912ee86931 btrfs: make error messages more clear when getting a chunk map 4fc9c61c02c0 btrfs: send: ensure send_fd is writable 86742a963fe6 btrfs: fix off-by-one when checking chunk map includes logical address 9fe447c485ed btrfs: ref-verify: fix memory leaks in btrfs_ref_tree_mod() 3f26d9b257ad btrfs: add dmesg output for first mount and last unmount of a filesystem 0ad7d59e7901 parisc: Mark altinstructions read-only and 32-bit aligned cf2ae6494d1f parisc: Ensure 32-bit alignment on parisc unwind section 2acfff573042 parisc: Mark jump_table naturally aligned 3793cd2ded7c parisc: Drop the HP-UX ENOSYM and EREMOTERELEASE error codes 79a1fdf4c212 parisc: Mark lock_aligned variables 16-byte aligned on SMP 41d7852a0a39 parisc: Use natural CPU alignment for bug_table c7c78a4aa60a parisc: Mark ex_table entries 32-bit aligned in uaccess.h 645e4b693b5e parisc: Mark ex_table entries 32-bit aligned in assembly.h c23b9eaca80c powerpc: Don't clobber f0/vs0 during fp|altivec register save e6bc42fae6b8 KVM: PPC: Book3S HV: Fix KVM_RUN clobbering FP/VEC user registers 59419ebcc0a6 iommu/vt-d: Add MTL to quirk list to skip TE disabling 0b48970ce102 bcache: revert replacing IS_ERR_OR_NULL with IS_ERR fc98ea2699c0 dma-buf: fix check in dma_resv_add_fence 4da1556996fa cpufreq/amd-pstate: Fix the return value of amd_pstate_fast_switch() 9d4c721c1866 powercap: DTPM: Fix unneeded conversions to micro-Watts a62ca58bb3cc nvme: check for valid nvme_identify_ns() before using it 82b5e603edd4 dm verity: don't perform FEC for failed readahead IO 6f5a9fc94bfc dm verity: initialize fec io before freeing it 7cfc3884a8bb drm/amd/display: fix ABM disablement 859a3a9f1e6b drm/amd/display: Update min Z8 residency time to 2100 for DCN314 6ef7f13c72df drm/amd/display: Use DRAM speed from validation for dummy p-state a67c18704706 drm/amd/display: Remove min_dst_y_next_start check for Z8 33ed892f0cde drm/amd/display: Include udelay when waiting for INBOX0 ACK c5cf436c8969 drm/amdgpu: Force order between a read and write to the same address c60884296300 drm/amd: Enable PCIe PME from D3 cebccbe80165 scsi: sd: Fix system start for ATA devices 181fd67dc5b9 scsi: Change SCSI device boolean fields to single bit flags 7d2faae81b57 dm-verity: align struct dm_verity_fec_io properly da9f55393f69 ALSA: hda/realtek: Add supported ALC257 for ChromeOS f4b130213497 ALSA: hda/realtek: Headset Mic VREF to 100% 65654af4c8a6 ALSA: hda: Disable power-save on KONTRON SinglePC ba911edc6c0c mmc: block: Be sure to wait while busy in CQE error recovery eab9ec644637 mmc: block: Do not lose cache flush during CQE error recovery e121f6d73d2e mmc: block: Retry commands in CQE error recovery 3a9a9c256f02 mmc: cqhci: Fix task clearing in CQE error recovery def67fd8efde mmc: cqhci: Warn of halt or task clear failure 2ebc8b758c7d mmc: cqhci: Increase recovery halt timeout d2fc10e262b5 mmc: sdhci-pci-gli: Disable LPM during initialization 87ceaa8521fc firewire: core: fix possible memory leak in create_units() db0b69e46da6 pinctrl: avoid reload of p state in list iteration 74820f7406a1 smb: client: report correct st_size for SMB and NFS symlinks 60fed17ca5b8 cifs: Fix FALLOC_FL_INSERT_RANGE by setting i_size after EOF moved 6406cce4b22d cifs: Fix FALLOC_FL_ZERO_RANGE by setting i_size if EOF moved
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 83c13368918a69ad63ee957f3d03362e366afe42) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Commit ade8a0f59844 ("drm/i915: Make all GPU resets atomic") added a
preempt disable section over the hardware reset callback to prepare the
driver for being able to reset from atomic contexts.
In retrospect I can see that the work item at a time was about removing
the struct mutex from the reset path. Code base also briefly entertained
the idea of doing the reset under stop_machine in order to serialize
userspace mmap and temporary glitch in the fence registers (see eb8d0f5af4ec ("drm/i915: Remove GPU reset dependence on struct_mutex"),
but that never materialized and was soon removed in 2caffbf11762
("drm/i915: Revoke mmaps and prevent access to fence registers across
reset") and replaced with a SRCU based solution.
As such, as far as I can see, today we still have a requirement that
resets must not sleep (invoked from submission tasklets), but no need to
support invoking them from a truly atomic context.
Given that the preemption section is problematic on RT kernels, since the
uncore lock becomes a sleeping lock and so is invalid in such section,
lets try and remove it. Potential downside is that our short waits on GPU
to complete the reset may get extended if CPU scheduling interferes, but
in practice that probably isn't a deal breaker.
In terms of mechanics, since the preemption disabled block is being
removed we just need to replace a few of the wait_for_atomic macros into
busy looping versions which will work (and not complain) when called from
non-atomic sections.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Chris Wilson <chris.p.wilson@intel.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Link: https://lore.kernel.org/r/20230705093025.3689748-1-tvrtko.ursulin@linux.intel.com Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
[PG: backport from v6.4-rt ; minor context fixup caused by b7d70b8b06ed] Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Clark Williams <williams@redhat.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
2/17 [
Author: Clark Williams
Email: clrkwllms@kernel.org
Subject: 'Linux 6.1.33-rt11'
Date: Mon, 12 Jun 2023 10:40:02 -0500
Signed-off-by: Clark Williams <clrkwllms@kernel.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
5/17 [
Author: Sebastian Andrzej Siewior
Email: bigeasy@linutronix.de
Subject: io-mapping: don't disable preempt on RT in io_mapping_map_atomic_wc().
Date: Fri, 10 Mar 2023 17:29:05 +0100
io_mapping_map_atomic_wc() disables preemption and pagefaults for
historical reasons. The conversion to io_mapping_map_local_wc(), which
only disables migration, cannot be done wholesale because quite some call
sites need to be updated to accommodate with the changed semantics.
On PREEMPT_RT enabled kernels the io_mapping_map_atomic_wc() semantics are
problematic due to the implicit disabling of preemption which makes it
impossible to acquire 'sleeping' spinlocks within the mapped atomic
sections.
PREEMPT_RT replaces the preempt_disable() with a migrate_disable() for
more than a decade. It could be argued that this is a justification to do
this unconditionally, but PREEMPT_RT covers only a limited number of
architectures and it disables some functionality which limits the coverage
further.
Limit the replacement to PREEMPT_RT for now. This is also done
kmap_atomic().
6/17 [
Author: Sebastian Andrzej Siewior
Email: bigeasy@linutronix.de
Subject: locking/rwbase: Mitigate indefinite writer starvation
Date: Tue, 21 Mar 2023 17:11:40 +0100
On PREEMPT_RT, rw_semaphore and rwlock_t locks are unfair to writers.
Readers can indefinitely acquire the lock unless the writer fully acquired
the lock, which might never happen if there is always a reader in the
critical section owning the lock.
Mel Gorman reported that since LTP-20220121 the dio_truncate test case
went from having 1 reader to having 16 readers and that number of readers
is sufficient to prevent the down_write ever succeeding while readers
exist. Eventually the test is killed after 30 minutes as a failure.
Mel proposed a timeout to limit how long a writer can be blocked until
the reader is forced into the slowpath.
Thomas argued that there is no added value by providing this timeout. From
a PREEMPT_RT point of view, there are no critical rw_semaphore or rwlock_t
locks left where the reader must be preferred.
Mitigate indefinite writer starvation by forcing the READER into the
slowpath once the WRITER attempts to acquire the lock.
Reported-by: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Mel Gorman <mgorman@techsingularity.net> Link: https://lore.kernel.org/877cwbq4cq.ffs@tglx Link: https://lore.kernel.org/r/20230321161140.HMcQEhHb@linutronix.de Cc: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 286deb7ec03d941664ac3ffaff58814b454adf65) Signed-off-by: Clark Williams <clark.williams@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
7/17 [
Author: Paolo Abeni
Email: pabeni@redhat.com
Subject: revert: "softirq: Let ksoftirqd do its job"
Date: Mon, 8 May 2023 08:17:44 +0200
Due to the mentioned commit, when the ksoftirqd processes take charge
of softirq processing, the system can experience high latencies.
In the past a few workarounds have been implemented for specific
side-effects of the above:
commit 1ff688209e2e ("watchdog: core: make sure the watchdog_worker is not deferred")
commit 8d5755b3f77b ("watchdog: softdog: fire watchdog even if softirqs do not get to run")
commit 217f69743681 ("net: busy-poll: allow preemption in sk_busy_loop()")
commit 3c53776e29f8 ("Mark HI and TASKLET softirq synchronous")
but the latency problem still exists in real-life workloads, see the
link below.
The reverted commit intended to solve a live-lock scenario that can now
be addressed with the NAPI threaded mode, introduced with commit 29863d41bb6e ("net: implement threaded-able napi poll loop support"),
and nowadays in a pretty stable status.
While a complete solution to put softirq processing under nice resource
control would be preferable, that has proven to be a very hard task. In
the short term, remove the main pain point, and also simplify a bit the
current softirq implementation.
Note that this change also reverts commit 3c53776e29f8 ("Mark HI and
TASKLET softirq synchronous") and commit 1342d8080f61 ("softirq: Don't
skip softirq execution when softirq thread is parking"), which are
direct follow-ups of the feature commit. A single change is preferred to
avoid known bad intermediate states introduced by a patch series
reverting them individually.
There is an explicit wait-type violation in debug_object_fill_pool()
for PREEMPT_RT=n kernels which allows them to more easily fill the
object pool and reduce the chance of allocation failures.
Lockdep's wait-type checks are designed to check the PREEMPT_RT
locking rules even for PREEMPT_RT=n kernels and object to this, so
create a lockdep annotation to allow this to stand.
Specifically, create a 'lock' type that overrides the inner wait-type
while it is held -- allowing one to temporarily raise it, such that
the violation is hidden.
9/17 [
Author: Wander Lairson Costa
Email: wander@redhat.com
Subject: sched: avoid false lockdep splat in put_task_struct()
Date: Wed, 14 Jun 2023 09:23:22 -0300
In put_task_struct(), a spin_lock is indirectly acquired under the kernel
stock. When running the kernel in real-time (RT) configuration, the
operation is dispatched to a preemptible context call to ensure
guaranteed preemption. However, if PROVE_RAW_LOCK_NESTING is enabled
and __put_task_struct() is called while holding a raw_spinlock, lockdep
incorrectly reports an "Invalid lock context" in the stock kernel.
This false splat occurs because lockdep is unaware of the different
route taken under RT. To address this issue, override the inner wait
type to prevent the false lockdep splat.
Signed-off-by: Wander Lairson Costa <wander@redhat.com> Suggested-by: Oleg Nesterov <oleg@redhat.com> Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Suggested-by: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Luis Goncalves <lgoncalv@redhat.com> Link: https://lore.kernel.org/r/20230614122323.37957-3-wander@redhat.com Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
(cherry picked from commit a5e446e728e89d5f5c5e427cc919bc7813c64c28) Signed-off-by: Clark Williams <clark.williams@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
10/17 [
Author: Sebastian Andrzej Siewior
Email: bigeasy@linutronix.de
Subject: mm/page_alloc: Use write_seqlock_irqsave() instead write_seqlock() + local_irq_save().
Date: Fri, 23 Jun 2023 22:15:17 +0200
__build_all_zonelists() acquires zonelist_update_seq by first disabling
interrupts via local_irq_save() and then acquiring the seqlock with
write_seqlock(). This is troublesome and leads to problems on
PREEMPT_RT. The problem is that the inner spinlock_t becomes a sleeping
lock on PREEMPT_RT and must not be acquired with disabled interrupts.
The API provides write_seqlock_irqsave() which does the right thing in
one step.
printk_deferred_enter() has to be invoked in non-migrate-able context to
ensure that deferred printing is enabled and disabled on the same CPU.
This is the case after zonelist_update_seq has been acquired.
There was discussion on the first submission that the order should be:
local_irq_disable();
printk_deferred_enter();
write_seqlock();
to avoid pitfalls like having an unaccounted printk() coming from
write_seqlock_irqsave() before printk_deferred_enter() is invoked. The
only origin of such a printk() can be a lockdep splat because the
lockdep annotation happens after the sequence count is incremented.
This is exceptional and subject to change.
It was also pointed that PREEMPT_RT can be affected by the printk
problem since its write_seqlock_irqsave() does not really disable
interrupts. This isn't the case because PREEMPT_RT's printk
implementation differs from the mainline implementation in two important
aspects:
- Printing happens in a dedicated threads and not at during the
invocation of printk().
- In emergency cases where synchronous printing is used, a different
driver is used which does not use tty_port::lock.
Acquire zonelist_update_seq with write_seqlock_irqsave() and then defer
printk output.
Fixes: 1007843a91909 ("mm/page_alloc: fix potential deadlock on zonelist_update_seq seqlock") Acked-by: Michal Hocko <mhocko@suse.com> Reviewed-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20230623201517.yw286Knb@linutronix.de Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
(cherry picked from commit 4d1139baae8bc4fff3728d1d204bdb04c13dbe10) Signed-off-by: Clark Williams <clark.williams@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
11/17 [
Author: Sebastian Andrzej Siewior
Email: bigeasy@linutronix.de
Subject: bpf: Remove in_atomic() from bpf_link_put().
Date: Wed, 14 Jun 2023 10:34:30 +0200
bpf_free_inode() is invoked as a RCU callback. Usually RCU callbacks are
invoked within softirq context. By setting rcutree.use_softirq=0 boot
option the RCU callbacks will be invoked in a per-CPU kthread with
bottom halves disabled which implies a RCU read section.
On PREEMPT_RT the context remains fully preemptible. The RCU read
section however does not allow schedule() invocation. The latter happens
in mutex_lock() performed by bpf_trampoline_unlink_prog() originated
from bpf_link_put().
It was pointed out that the bpf_link_put() invocation should not be
delayed if originated from close(). It was also pointed out that other
invocations from within a syscall should also avoid the workqueue.
Everyone else should use workqueue by default to remain safe in the
future (while auditing the code, every caller was preemptible except for
the RCU case).
Let bpf_link_put() use the worker unconditionally. Add
bpf_link_put_direct() which will directly free the resources and is used
by close() and from within __sys_bpf().
12/17 [
Author: Thomas Gleixner
Email: tglx@linutronix.de
Subject: posix-timers: Ensure timer ID search-loop limit is valid
Date: Thu, 1 Jun 2023 20:58:47 +0200
posix_timer_add() tries to allocate a posix timer ID by starting from the
cached ID which was stored by the last successful allocation.
This is done in a loop searching the ID space for a free slot one by
one. The loop has to terminate when the search wrapped around to the
starting point.
But that's racy vs. establishing the starting point. That is read out
lockless, which leads to the following problem:
So CPU1 can observe a negative start value, i.e. -1, and the loop break
never happens because the condition can never be true:
if (sig->posix_timer_id == start)
break;
While this is unlikely to ever turn into an endless loop as the ID space is
huge (INT_MAX), the racy read of the start value caught the attention of
KCSAN and Dmitry unearthed that incorrectness.
Rewrite it so that all id operations are under the hash lock.
Reported-by: syzbot+5c54bd3eb218bb595aa9@syzkaller.appspotmail.com Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/r/87bkhzdn6g.ffs@tglx
(cherry picked from commit 8ce8849dd1e78dadcee0ec9acbd259d239b7069f) Signed-off-by: Clark Williams <clark.williams@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 53e612c42ce438b100505c93d8bb65e59f49895d) Signed-off-by: Steve Sakoman <steve@sakoman.com>