Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Thu, 4 Jan 2024 15:36:47 +0000 (10:36 -0500)]
linux-yocto/6.6: arm: jitter entropy backport
Integrating the following commit(s) to linux-yocto/6.6:
1/1 [
Author: Stephan Müller
Email: smueller@chronox.de
Subject: crypto: jitter - add RCT/APT support for different OSRs
Date: Thu, 21 Sep 2023 13:48:11 +0200
The oversampling rate (OSR) value specifies the heuristically implied
entropy in the recorded data - H_submitter = 1/osr. A different entropy
estimate implies a different APT/RCT cutoff value. This change adds
support for OSRs 1 through 15. This OSR can be selected by the caller
of the Jitter RNG.
For this patch, the caller still uses one hard-coded OSR. A subsequent
patch allows this value to be configured.
In addition, the power-up self test is adjusted as follows:
* It allows the caller to provide an oversampling rate that should be
tested with - commonly it should be the same as used for the actual
runtime operation. This makes the power-up testing therefore consistent
with the runtime operation.
* It calls now jent_measure_jitter (i.e. collects the full entropy
that can possibly be harvested by the Jitter RNG) instead of only
jent_condition_data (which only returns the entropy harvested from
the conditioning component). This should now alleviate reports where
the Jitter RNG initialization thinks there is too little entropy.
* The power-up test now solely relies on the (enhanced) APT and RCT
test that is used as a health test at runtime.
The code allowing the different OSRs as well as the power-up test
changes are present in the user space version of the Jitter RNG 3.4.1
and thus was already in production use for some time.
Reported-by "Ospan, Abylay" <aospan@amazon.com> Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Bruce Ashfield [Tue, 2 Jan 2024 04:33:32 +0000 (23:33 -0500)]
linux-yocto/6.5: drop 6.5 recipes
6.5 is EOL upstream and has been replaced by the 6.6 reference
kernel, we drop these recipes. The recipes from release branches
should be used if 6.5 is required.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>
Bruce Ashfield [Tue, 2 Jan 2024 04:31:08 +0000 (23:31 -0500)]
linux-yocto/6.6: update to v6.6.8
Updating to the latest korg -stable release that comprises
the following commits:
4c9646a796d6 Linux 6.6.8 885faf3c7e5f RDMA/mlx5: Change the key being sent for MPV device affiliation 06f61af80254 x86/speculation, objtool: Use absolute relocations for annotations 3432f9686a37 ring-buffer: Have rb_time_cmpxchg() set the msb counter too b3778a2fa4a2 ring-buffer: Do not try to put back write_stamp bc17bc964328 ring-buffer: Fix a race in rb_time_cmpxchg() for 32 bit archs ae76d9bdf100 ring-buffer: Fix writing to the buffer with max_data_size 307ed139d7af ring-buffer: Have saved event hold the entire event 5e584836779b ring-buffer: Do not update before stamp when switching sub-buffers 5062b8c5ae2f tracing: Update snapshot buffer on resize if it is allocated b02bf0d952ad ring-buffer: Fix memory leak of free page e72ed491bc6e smb: client: fix OOB in smb2_query_reparse_point() ef748d4a62a7 smb: client: fix NULL deref in asn1_ber_decoder() 17a0f64cc02d smb: client: fix potential OOBs in smb2_parse_contexts() 534733397da2 smb: client: fix OOB in receive_encrypted_standard() 4029b025beda drm/i915: Fix remapped stride with CCS on ADL+ a9d951b00790 drm/i915: Fix intel_atomic_setup_scalers() plane_state handling b6295a167fa5 drm/i915: Fix ADL+ tiled plane stride when the POT stride is smaller than the original a8f922ad2f76 drm/amd/display: Disable PSR-SU on Parade 0803 TCON again c7f6e836e675 drm/amd/display: Restore guard against default backlight value < 1 nit a511e851d49e drm/edid: also call add modes in EDID connector update fallback d50670681d8a drm/amdgpu: fix tear down order in amdgpu_vm_pt_free d3cf024353e2 btrfs: don't clear qgroup reserved bit in release_folio 1823491513e3 btrfs: fix qgroup_free_reserved_data int overflow 14570dfa170e btrfs: free qgroup reserve when ORDERED_IOERR is set 37b561d55936 kexec: drop dependency on ARCH_SUPPORTS_KEXEC from CRASH_DUMP 7a4ae7acd208 mm/shmem: fix race in shmem_undo_range w/THP a107d6a132cb mm/mglru: reclaim offlined memcgs harder 6b131c2a2875 mm/mglru: respect min_ttl_ms with memcgs c5f67b7e8474 mm/mglru: try to stop at high watermarks b2ce691b452f mm/mglru: fix underprotected page cache ed50e07d6a8e dmaengine: fsl-edma: fix DMA channel leak in eDMAv4 9127515bf9cd dmaengine: stm32-dma: avoid bitfield overflow assertion 03e63e497a40 drm/mediatek: Fix access violation in mtk_drm_crtc_dma_dev_get 3aae4ef4d799 drm/amdgpu/sdma5.2: add begin/end_use ring callbacks 28b36426b83e team: Fix use-after-free when an option instance allocation fails 2c8a21a124ca arm64: mm: Always make sw-dirty PTEs hw-dirty in pte_modify d228e98dfacb Revert "selftests: error out if kernel header files are not yet built" 4f18d187fb2a ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS 40abc387459a soundwire: stream: fix NULL pointer dereference for multi_link c1d2d084751d cxl/hdm: Fix dpa translation locking 654461744af8 btrfs: do not allow non subvolume root targets for snapshot 545d55a3e0c8 perf: Fix perf_event_validate_size() lockdep splat 5ce0fb87311d HID: hid-asus: add const to read-only outgoing usb buffer 610610da58af arm64: add dependency between vmlinuz.efi and Image df32e887d32b smb: client: set correct file type from NFS reparse points 4d07e5df1387 smb: client: introduce ->parse_reparse_point() d5c959a1dba6 smb: client: implement ->query_reparse_point() for SMB1 e25ee0c2459a net: usb: qmi_wwan: claim interface 4 for ZTE MF290 6abb8c223ce1 eventfs: Do not allow NULL parent to eventfs_start_creating() a739ceb74745 asm-generic: qspinlock: fix queued_spin_value_unlocked() implementation 97774998f8e1 scripts/checkstack.pl: match all stack sizes for s390 1f75542ce7c4 nfc: virtual_ncidev: Add variable to check if ndev is running c9d25e4639c1 HID: multitouch: Add quirk for HONOR GLO-GXXX touchpad 9fc2827c0242 HID: hid-asus: reset the backlight brightness level on resume b3ebe19c197b nbd: pass nbd_sock to nbd_read_reply() instead of index af48c4099bd8 HID: add ALWAYS_POLL quirk for Apple kb c38f7b0f554f HID: glorious: fix Glorious Model I HID report 6b3507b8ea55 HID: apple: add Jamesdonkey and A3R to non-apple keyboards list d4b50ac06ea6 HID: mcp2221: Allow IO to start during probe 2afe67cfe8f1 HID: mcp2221: Set driver data before I2C adapter add 086f91f3ce3b platform/x86: intel_telemetry: Fix kernel doc descriptions f61771aec676 LoongArch: Implement constant timer shutdown interface c28fec461df3 LoongArch: Mark {dmw,tlb}_virt_to_page() exports as non-GPL 71d8348cca92 LoongArch: Silence the boot warning about 'nokaslr' ab3f30052469 LoongArch: Record pc instead of offset in la_abs relocation 03372601f5f1 LoongArch: Add dependency between vmlinuz.efi and vmlinux.efi 0ade0b82faf7 selftests/bpf: fix bpf_loop_bench for new callback verification scheme 9514925a9abc nvme: catch errors from nvme_configure_metadata() 89fc9028e86e nvme-auth: set explanation code for failure2 msgs c34fa2d16e98 nbd: fix null-ptr-dereference while accessing 'nbd->config' 8c1517344116 nbd: factor out a helper to get nbd_config without holding 'config_lock' 4087936a97b8 nbd: fold nbd config initialization into nbd_alloc_config() 4a4bba9f0470 bcache: avoid NULL checking to c->root in run_cache_set() 286918928ed7 bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc() 665341724499 bcache: remove redundant assignment to variable cur_idx 09bdafb89a56 bcache: avoid oversize memory allocation by small stripe_size 0730b1e32a0b blk-cgroup: bypass blkcg_deactivate_policy after destroying 5aba47ce61b7 blk-throttle: fix lockdep warning of "cgroup_mutex or RCU read lock required!" 462f1111d945 rxrpc: Fix some minor issues with bundle tracing c40c0b89bf1d stmmac: dwmac-loongson: Add architecture dependency 2ebf775f0541 usb: aqc111: check packet for fixup for true limit 54d8c1d3261d x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM ca3ebcf2c448 selftests/mm: cow: print ksft header before printing anything else cd378c371ba0 drm/i915: Use internal class when counting engine resets 54d08313a34f drm/i915/selftests: Fix engine reset count storage for multi-tile 83a42d791ba2 accel/ivpu/37xx: Fix interrupt_clear_with_0 WA initialization 0afcc6291024 accel/ivpu: Print information about used workarounds 7d6e9cb7b951 drm/mediatek: Add spinlock for setting vblank event in atomic_begin 8964524158ac drm/mediatek: fix kernel oops if no crtc is found 98bd0b4ad5d4 PCI: vmd: Fix potential deadlock when enabling ASPM f94c44342f0a ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE 1e1f461ea574 PCI/ASPM: Add pci_enable_link_state_locked() 4fb5358c574e PCI: loongson: Limit MRRS to 256 5cc8d88a1b94 Revert "PCI: acpiphp: Reassign resources on bridge if necessary" 56e22123449c ALSA: hda/tas2781: reset the amp before component_add d94fad04a64b ALSA: hda/tas2781: call cleanup functions only once 795e91c599c2 ALSA: hda/tas2781: handle missing EFI calibration data 7fc8bfdb7007 ALSA: hda/tas2781: leave hda_component in usable state ffd1fe12d4c9 ALSA: hda/realtek: Apply mute LED quirk for HP15-db 7ec57c10b018 ALSA: hda/hdmi: add force-connect quirks for ASUSTeK Z170 variants c52ebaf74273 ALSA: hda/hdmi: add force-connect quirk for NUC5CPYB 9566ef570cc4 io_uring/cmd: fix breakage in SOCKET_URING_OP_SIOC* implementation ce5a6df21a00 fuse: dax: set fc->dax to NULL in fuse_dax_conn_free() fbcddc741062 fuse: disable FOPEN_PARALLEL_DIRECT_WRITES with FUSE_DIRECT_IO_ALLOW_MMAP 2939dd306b1f fuse: share lookup state between submount and its parent 9f36c1c5132f fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP 6e5782b1e18b HID: Add quirk for Labtec/ODDOR/aikeec handbrake fea8562f51b0 HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[] 207f135d8193 cred: get rid of CONFIG_DEBUG_CREDENTIALS f6a7ce5ae416 cred: switch to using atomic_long_t 3b5daf20c426 net: atlantic: fix double free in ring reinit logic e15ded324a39 appletalk: Fix Use-After-Free in atalk_ioctl 58c556661641 net: stmmac: Handle disabled MDIO busses from devicetree ad531dfcc648 net: stmmac: dwmac-qcom-ethqos: Fix drops in 10M SGMII RX da8732cb38ea dpaa2-switch: do not ask for MDB, VLAN and FDB replay 77e566c88130 dpaa2-switch: fix size of the dma_unmap fa634779ffcc vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space() f18ac4bae15e sign-file: Fix incorrect return values check e0069c26c552 stmmac: dwmac-loongson: Make sure MDIO is initialized before use 2cc8ffc3ad31 net: ena: Fix XDP redirection error 0116e02cee5a net: ena: Fix DMA syncing in XDP path when SWIOTLB is on 0cb2021b968e net: ena: Fix xdp drops handling due to multibuf packets c22877fafd6b net: ena: Destroy correct number of xdp queues upon failure d6bef0049870 net: Remove acked SYN flag from packet in the transmit queue correctly 7106a15b96d7 qed: Fix a potential use-after-free in qed_cxt_tables_alloc 54f59a242bcf iavf: Fix iavf_shutdown to call iavf_remove instead iavf_close e768a04908de iavf: Handle ntuple on/off based on new state machines for flow director 3beb9d66e442 iavf: Introduce new state machines for flow director 63caa51833e8 net/rose: Fix Use-After-Free in rose_ioctl 531fd46f9289 atm: Fix Use-After-Free in do_vcc_ioctl f115b31d7e96 octeontx2-af: Fix pause frame configuration 6b5de31e372c octeontx2-af: Update RSS algorithm index 5295d2ad9103 octeontx2-pf: Fix promisc mcam entry action 6047060105e4 octeon_ep: explicitly test for firmware ready value 15f300ed1d5e net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table dd75adfdc286 octeontx2-af: fix a use-after-free in rvu_nix_register_reporters 4317fba45ff3 net: fec: correct queue selection 82102501e08e atm: solos-pci: Fix potential deadlock on &tx_queue_lock 4faf39c4252a atm: solos-pci: Fix potential deadlock on &cli_queue_lock 9542105eb4ff bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic 909f5a48bf23 bnxt_en: Fix wrong return value check in bnxt_close_nic() d8ea6b0d549b bnxt_en: Fix skb recycling logic in bnxt_deliver_skb() bf9ceb163362 bnxt_en: Clear resource reservation during resume f7dac967e170 qca_spi: Fix reset behavior 02296b1d8449 qca_debug: Fix ethtool -G iface tx behavior 21b9dc814d3f qca_debug: Prevent crash on TX ring changes 92d813f73f64 net: ipv6: support reporting otherwise unknown prefix flags in RTM_NEWPREFIX 6cb39c79bca9 net/mlx5: Fix a NULL vs IS_ERR() check ef3b2d5f2152 net/mlx5e: Check netdev pointer before checking its net ns a4839771d7b9 net/mlx5: Nack sync reset request when HotPlug is enabled b766f8b8d4d1 net/mlx5e: TC, Don't offload post action rule if not supported 8ce3d969348a net/mlx5e: Fix possible deadlock on mlx5e_tx_timeout_work 7e46db5e2a31 net/mlx5e: Disable IPsec offload support if not FW steering fdd350fe5e1a RDMA/mlx5: Send events from IB driver about device affiliation state 4a95f412b7ee net/mlx5e: Check the number of elements before walk TC rhashtable 594a306461de net/mlx5e: Reduce eswitch mode_lock protection context 1a0d0e97a750 net/mlx5e: Tidy up IPsec NAT-T SA discovery 20af7afcd8b8 net/mlx5e: Unify esw and normal IPsec status table creation/destruction 80299a1c685f net/mlx5e: Ensure that IPsec sequence packet number starts from 1 17e600e438c6 net/mlx5e: Honor user choice of IPsec replay window size b89b7c763570 HID: lenovo: Restrict detection of patched firmware only to USB cptkbd 8715fe2fc1e8 afs: Fix refcount underflow from error handling race 800f84d8f0de efi/x86: Avoid physical KASLR on older Dell systems 809d50d36e71 ksmbd: fix memory leak in smb2_lock() 73dddf9858ff ext4: fix warning in ext4_dio_write_end_io() da94fb0217e5 r8152: add vendor/device ID pair for ASUS USB-C2500 ac25535242ac Linux 6.6.7 71a1ffe22d33 drm/amdgpu: Restrict extended wait to PSP v13.0.6 9f29fe9b6184 drm/amdgpu: update retry times for psp BL wait bebe0c07b806 drm/amdgpu: Fix refclk reporting for SMU v13.0.6 48411bc4c3fb riscv: Kconfig: Add select ARM_AMBA to SOC_STARFIVE b79210fa10db gcc-plugins: randstruct: Update code comment in relayout_struct() ba6e4b997181 ASoC: qcom: sc8280xp: Limit speaker digital volumes c66d39f18e0e netfilter: nft_set_pipapo: skip inactive elements during set walk 1eed445d5364 MIPS: Loongson64: Enable DMA noncoherent support 264927e35381 MIPS: Loongson64: Handle more memory types passed from firmware ae07e7d338c4 MIPS: Loongson64: Reserve vgabios memory on boot 114d0e5b9937 perf metrics: Avoid segv if default metricgroup isn't set 1f4d4d2cd6b5 perf list: Fix JSON segfault by setting the used skip_duplicate_pmus callback dea8cfe773b9 KVM: SVM: Update EFER software model on CR0 trap for SEV-ES bb356cc6615c KVM: s390/mm: Properly reset no-dat 6d9cbae4c032 MIPS: kernel: Clear FPU states when setting up kernel threads 43801359c897 cifs: Fix flushing, invalidation and file size with FICLONE 63c80f574a8e cifs: Fix flushing, invalidation and file size with copy_file_range() 9a3e02063016 USB: gadget: core: adjust uevent timing on gadget unbind fd728449807e powerpc/ftrace: Fix stack teardown in ftrace_no_trace 903a1a1949c6 x86/CPU/AMD: Check vendor in the AMD microcode callback 7d831c68bb92 devcoredump: Send uevent once devcd is ready 22fdcaaf7d9d serial: 8250_omap: Add earlycon support for the AM654 UART controller a2c0b05a8c00 serial: 8250: 8250_omap: Do not start RX DMA on THRI interrupt 70dc9a482fbb serial: 8250: 8250_omap: Clear UART_HAS_RHR_IT_DIS bit 98b0ca904c80 serial: sc16is7xx: address RX timeout interrupt errata c865b77eb3b5 ARM: PL011: Fix DMA support 2214c3f4e718 usb: typec: class: fix typec_altmode_put_partner to put plugs 5ac34ba42e9a smb: client: fix potential NULL deref in parse_dfs_referrals() 05668be6020c Revert "xhci: Loosen RPM as default policy to cover for AMD xHC 1.1" 1bcb08e39d84 cifs: Fix non-availability of dedup breaking generic/304 67f45db9f275 parport: Add support for Brainboxes IX/UC/PX parallel cards c88a91ca26b1 serial: ma35d1: Validate console index before assignment 977a60f0639f serial: 8250_dw: Add ACPI ID for Granite Rapids-D UART a05c646d3c7d nvmem: Do not expect fixed layouts to grab a layout driver d9828961e5d7 usb: gadget: f_hid: fix report descriptor allocation 95a4c959b99f kprobes: consistent rcu api usage for kretprobe holder 395e52b7a1ad ASoC: ops: add correct range check for limiting volume 6df51c525a2d gpiolib: sysfs: Fix error handling on failed export 73bbca129864 x86/sev: Fix kernel crash due to late update to read-only ghcb_version cfe9295db093 perf: Fix perf_event_validate_size() c66c479480f6 drm/amdgpu: disable MCBP by default 3798c665fe7d arm64: dts: mt8183: kukui: Fix underscores in node names b6c47d915578 arm64: dts: mediatek: add missing space before { 5bdd0ced1f9c parisc: Fix asm operand number out of range build error in bug table 164960641e6c parisc: Reduce size of the bug_table on 64-bit kernel by half 4b117370d1d1 LoongArch: BPF: Don't sign extend function return value 3275410b13b6 LoongArch: BPF: Don't sign extend memory load operand 0fdd1b884821 perf vendor events arm64: AmpereOne: Add missing DefaultMetricgroupName fields f78fff4648bb misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write e2365ead012a misc: mei: client.c: return negative error code in mei_cl_write c541d0edd827 coresight: ultrasoc-smb: Fix uninitialized before use buf_hw_base ab5091e1ccb0 coresight: ultrasoc-smb: Config SMB buffer before register sink ace850bd8600 coresight: ultrasoc-smb: Fix sleep while close preempt in enable_smb 359d3fbcbc09 hwtracing: hisi_ptt: Add dummy callback pmu::read() 2f6b1527db82 coresight: Fix crash when Perf and sysfs modes are used concurrently 1b5d156c2428 coresight: etm4x: Remove bogous __exit annotation for some functions b9cc170842d8 arm64: dts: mediatek: mt8186: Change gpu speedbin nvmem cell name b6eccbcb1bcc arm64: dts: mediatek: mt8186: fix clock names for power domains 2e465268df4c arm64: dts: mediatek: mt8183-evb: Fix unit_address_vs_reg warning on ntc bfff27fb5d2d arm64: dts: mediatek: mt8183: Move thermal-zones to the root node d97373c3b159 arm64: dts: mediatek: mt8183: Fix unit address for scp reserved memory 9c4ae4801f81 arm64: dts: mediatek: mt8195: Fix PM suspend/resume with venc clocks 12530266947a arm64: dts: mediatek: mt8173-evb: Fix regulator-fixed node names ac9a2f55bfcc arm64: dts: mediatek: cherry: Fix interrupt cells for MT6360 on I2C7 d7646d79ea19 arm64: dts: mediatek: mt8183-kukui-jacuzzi: fix dsi unnecessary cells properties 6a6df679ac22 arm64: dts: mediatek: mt7622: fix memory node warning check 90dc20c8c51d arm64: dts: mt7986: fix emmc hs400 mode without uboot initialization 287b1c41decb arm64: dts: mt7986: define 3W max power to both SFP on BPI-R3 5012eb028032 arm64: dts: mt7986: change cooling trips 8e1e489cdb5b drm/i915: Skip some timing checks on BXT/GLK DSI transcoders a0396af35ca2 drm/i915/mst: Reject modes that require the bigjoiner 654748c6fc6a drm/i915/mst: Fix .mode_valid_ctx() return values 02650b3b98cf drm/atomic-helpers: Invoke end_fb_access while owning plane state 4ce431c29755 md/raid6: use valid sector values to determine if an I/O should wait on the reshape aa581b37dae9 powercap: DTPM: Fix missing cpufreq_cpu_put() calls 9e5d3096742d mm/memory_hotplug: fix error handling in add_memory_resource() 799f90c385cd mm: fix oops when filemap_map_pmd() without prealloc_pte e0270ffad426 mm/memory_hotplug: add missing mem_hotplug_lock 83dd18e0b76f drivers/base/cpu: crash data showing should depends on KEXEC_CORE 512b420aaf78 hugetlb: fix null-ptr-deref in hugetlb_vma_lock_write b2c562a7a88b workqueue: Make sure that wq_unbound_cpumask is never empty 7409c28cab78 platform/surface: aggregator: fix recv_buf() return value 78c8fc333253 regmap: fix bogus error on regcache_sync success 2e04cfdd3edb r8169: fix rtl8125b PAUSE frames blasting when suspended 865b71579d01 packet: Move reference count in packet_sock to atomic_long_t 9a89aad0865f nfp: flower: fix for take a mutex lock in soft irq context and rcu lock 3c0adff939a6 leds: trigger: netdev: fix RTNL handling to prevent potential deadlock 7d97646474b9 tracing: Fix a possible race when disabling buffered events fc9fa702dbaa tracing: Fix incomplete locking when disabling buffered events 0486a1f9d9cc tracing: Disable snapshot buffer when stopping instance tracers 12c48e88e5c7 tracing: Stop current tracer when resizing buffer 1741e17c3939 tracing: Always update snapshot buffer size f8f32f912603 checkstack: fix printed address 9ec2d9267304 cgroup_freezer: cgroup_freezing: Check if not frozen 39f603a26286 lib/group_cpus.c: avoid acquiring cpu hotplug lock in group_cpus_evenly 0b14276bcb85 nilfs2: prevent WARNING in nilfs_sufile_set_segment_usage() ce58f14113a8 nilfs2: fix missing error check for sb_set_blocksize call 1cdc934c82bb highmem: fix a memory copy problem in memcpy_from_folio 56a334310fa9 ring-buffer: Force absolute timestamp on discard of event d251b9818302 ring-buffer: Test last update in 32bit version of __rb_time_read() 73249ef76c2d ALSA: hda/realtek: Add quirk for Lenovo Yoga Pro 7 5f1c1e8de568 ALSA: hda/realtek: Add Framework laptop 16 to quirks 70a6885542b1 ALSA: hda/realtek: add new Framework laptop to quirks 65a7a5b2d531 ALSA: hda/realtek: Enable headset on Lenovo M90 Gen5 b3f1d9230457 ALSA: hda/realtek: fix speakers on XPS 9530 (2023) 6e25980d046f ALSA: hda/realtek: Apply quirk for ASUS UM3504DA 8e6ac8c6bae1 ALSA: pcm: fix out-of-bounds in snd_pcm_state_names 5ae225bbf358 ALSA: usb-audio: Add Pioneer DJM-450 mixer controls 30df2901c4ac io_uring: fix mutex_unlock with unreferenced ctx dd864f6ee04e nvme-pci: Add sleep quirk for Kingston drives 5a33d385eb36 io_uring/af_unix: disable sending io_uring over sockets 127fcf79662d ASoC: amd: yc: Fix non-functional mic on ASUS E1504FA 29b9ebc89106 rethook: Use __rcu pointer for rethook::handler af448bb2eaba scripts/gdb: fix lx-device-list-bus and lx-device-list-class 2d16a9f778f7 kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP 49b79af00d24 md: don't leave 'MD_RECOVERY_FROZEN' in error path of md_set_readonly() 7442310ee4f0 riscv: errata: andes: Probe for IOCP only once in boot stage b12ccda0d469 riscv: fix misaligned access handling of C.SWSP and C.SDSP 92f095553ae5 arm64: dts: rockchip: Fix eMMC Data Strobe PD on rk3588 15eb6859de68 ARM: dts: imx28-xea: Pass the 'model' property 5af668cd9ee5 ARM: dts: imx7: Declare timers compatible with fsl,imx6dl-gpt ee007123af6d arm64: dts: imx8-apalis: set wifi regulator to always-on 12deaef0c867 ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 3836f1f246e2 arm64: dts: imx93: correct mediamix power 8b2c35e5e678 arm64: dts: freescale: imx8-ss-lsio: Fix #pwm-cells d338395bc5af arm64: dts: imx8-ss-lsio: Add PWM interrupts ddc5ad21da0a scsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle() 6eec904d95a5 tracing: Fix a warning when allocating buffered events fails 7e6621b99d20 io_uring/kbuf: check for buffer list readiness after NULL check b2173a8b6450 io_uring/kbuf: Fix an NULL vs IS_ERR() bug in io_alloc_pbuf_ring() fe145559a91f ARM: dts: imx6ul-pico: Describe the Ethernet PHY clock c6a952d44a41 arm64: dts: imx8mp: imx8mq: Add parkmode-disable-ss-quirk on DWC3 584bdbca913e drm/bridge: tc358768: select CONFIG_VIDEOMODE_HELPERS fc054130cdfb RDMA/irdma: Avoid free the non-cqp_request scratch 926c1c7a8f2e RDMA/irdma: Fix support for 64k pages 12a77574f090 RDMA/irdma: Ensure iWarp QP queue memory is OS paged aligned d103c131ef3b RDMA/core: Fix umem iterator when PAGE_SIZE is greater then HCA pgsz b8668fe7a5e8 ASoC: wm_adsp: fix memleak in wm_adsp_buffer_populate 0ca497a90ef3 firmware: arm_scmi: Fix possible frequency truncation when using level indexing mode 489358880655 firmware: arm_scmi: Simplify error path in scmi_dvfs_device_opps_add() 1ea9f8abe364 firmware: arm_scmi: Fix frequency truncation by promoting multiplier type c3af26f53616 firmware: arm_scmi: Extend perf protocol ops to get information of a domain 9c78a21a5a52 firmware: arm_scmi: Extend perf protocol ops to get number of domains 7cd68b364f83 hwmon: (nzxt-kraken2) Fix error handling path in kraken2_probe() 8d73500fcf86 ASoC: codecs: lpass-tx-macro: set active_decimator correct default value 8ebf05908f0e hwmon: (acpi_power_meter) Fix 4.29 MW bug 2e594ee138c9 ARM: dts: bcm2711-rpi-400: Fix delete-node of led_act a7fb9f15fedc ARM: dts: rockchip: Fix sdmmc_pwren's pinmux setting for RK3128 03766ae3467d ARM: dts: imx6q: skov: fix ethernet clock regression 231ab2ff6039 arm64: dt: imx93: tqma9352-mba93xxla: Fix LPUART2 pad config 55b6b95737e3 RDMA/irdma: Fix UAF in irdma_sc_ccq_get_cqe_info() cfaede20f5a5 RDMA/bnxt_re: Correct module description string ca19116cca9d RDMA/rtrs-clt: Remove the warnings for req in_use check 4b13d47c9018 RDMA/rtrs-clt: Fix the max_send_wr setting 5aafdb5e9324 RDMA/rtrs-srv: Destroy path files after making sure no IOs in-flight 7bb1941e7f71 RDMA/rtrs-srv: Free srv_mr iu only when always_invalidate is true dfb398fdcb7f RDMA/rtrs-srv: Check return values while processing info request 30614ed295bc RDMA/rtrs-clt: Start hb after path_up b659d48fc426 RDMA/rtrs-srv: Do not unconditionally enable irq e1e4a5cbb0a1 ASoC: fsl_sai: Fix no frame sync clock issue on i.MX8MP bdcedad6b951 arm64: dts: rockchip: Expand reg size of vdec node for RK3399 4192a26f673a arm64: dts: rockchip: Expand reg size of vdec node for RK3328 9b1b8ab2bd73 RDMA/irdma: Add wait for suspend on SQD 951c6d336ebe RDMA/irdma: Do not modify to SQD on error 38772f667233 RDMA/hns: Fix unnecessary err return when using invalid congest control algorithm 24436fe77efe RDMA/core: Fix uninit-value access in ib_get_eth_speed() d3c4786b01aa tee: optee: Fix supplicant based device enumeration 577209e844bf mm/damon/sysfs: eliminate potential uninitialized variable warning 45d72eadf21a drm/amdkfd: get doorbell's absolute offset based on the db_size ffc642551262 drm/amd/amdgpu/amdgpu_doorbell_mgr: Correct misdocumented param 'doorbell_index' f9eef2563234 net/smc: fix missing byte order conversion in CLC handshake b03b2ddf0e90 net: dsa: microchip: provide a list of valid protocols for xmit handler e036a325a977 drop_monitor: Require 'CAP_SYS_ADMIN' when joining "events" group 580c80b6f881 psample: Require 'CAP_NET_ADMIN' when joining "packets" group 94e81d1a4bd9 bpf: sockmap, updating the sg structure should also update curr eb30a025982f net: tls, update curr on splice as well 29561ef098a0 net: dsa: mv88e6xxx: Restore USXGMII support for 6393X 2087d53a66e9 tcp: do not accept ACK of bytes we never sent 1417b7198546 netfilter: xt_owner: Fix for unsafe access of sk->sk_socket fa72b6e62fa5 netfilter: nf_tables: validate family when identifying table via handle 5eeba00a89c5 netfilter: nf_tables: bail out on mismatching dynset and set expressions 0392d322b45b netfilter: nf_tables: fix 'exist' matching on bigendian arches 83e9863785f4 netfilter: bpf: fix bad registration on nf_defrag a365250a4a65 dt-bindings: interrupt-controller: Allow #power-domain-cells b710b35ef66e octeontx2-af: Update Tx link register range cd1045acc228 octeontx2-af: Add missing mcs flr handler call 82b2c5e0b4f4 octeontx2-af: Fix mcs stats register address b783ee126c01 octeontx2-af: Fix mcs sa cam entries size 00efd99e36b4 octeontx2-af: Adjust Tx credits when MCS external bypass is disabled 2daea952199e net: hns: fix fake link up on xge port 613b5db4c55f net: hns: fix wrong head when modify the tx feature when sending packets e30ad4729c57 net: atlantic: Fix NULL dereference of skb pointer in 08e3e3da6c39 ipv4: ip_gre: Avoid skb_pull() failure in ipgre_xmit() 77c02d10c407 ionic: Fix dim work handling in split interrupt mode 4dacbf99cebf ionic: fix snprintf format length warning e4a2a4328c85 tcp: fix mid stream window clamp. dc903ddc826f net: bnxt: fix a potential use-after-free in bnxt_init_tc d88c7cf589de iavf: validate tx_coalesce_usecs even if rx_coalesce_usecs is zero ab3a730feab9 i40e: Fix unexpected MFS warning message 2442e9cbb79c ice: Restore fix disabling RX VLAN filtering 33755da7ae2b octeontx2-af: fix a use-after-free in rvu_npa_register_reporters d7666bfd7884 xsk: Skip polling event check for unbound socket e1fbdef91b1c net: stmmac: fix FPE events losing 9cc9fbe5c028 octeontx2-pf: consider both Rx and Tx packet stats for adaptive interrupt coalescing 5106d7adb74b arcnet: restoring support for multiple Sohard Arcnet cards 15e1490022e7 platform/mellanox: Check devm_hwmon_device_register_with_groups() return value 8b2688f9c589 platform/mellanox: Add null pointer checks for devm_kasprintf() 76914ea593bb mlxbf-bootctl: correctly identify secure boot with development keys 9b4a88385435 r8152: Add RTL8152_INACCESSIBLE to r8153_aldps_en() 4bc63784d642 r8152: Add RTL8152_INACCESSIBLE to r8153_pre_firmware_1() 9bda33e87114 r8152: Add RTL8152_INACCESSIBLE to r8156b_wait_loading_flash() b7416e0a4d48 r8152: Add RTL8152_INACCESSIBLE checks to more loops 8defe1643dd3 r8152: Hold the rtnl_lock for all of reset b47e71da4776 hv_netvsc: rndis_filter needs to select NLS 28b8ed4a02fa bpf: Fix a verifier bug due to incorrect branch offset comparison with cpu=v4 c3287140282b octeontx2-af: Check return value of nix_get_nixlf before using nixlf 6ddf005fd6cc octeontx2-pf: Add missing mutex lock in otx2_get_pauseparam a08768110a65 ipv6: fix potential NULL deref in fib6_add() 6e33e81b785f platform/x86: wmi: Skip blocks with zero instances 30460e7e27da of: dynamic: Fix of_reconfig_get_state_change() return value documentation cb6b8919ebf8 platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 7cb7001ecd0f dt: dt-extract-compatibles: Don't follow symlinks when walking tree c35bcede4ffa dt: dt-extract-compatibles: Handle cfile arguments in generator function 239bff0171a8 x86/tdx: Allow 32-bit emulation by default 22ca647c8f88 x86/entry: Do not allow external 0x80 interrupts 4591766ff655 x86/entry: Convert INT 0x80 emulation to IDTENTRY 34c686e5be2f x86/coco: Disable 32-bit emulation by default on TDX and SEV f259af26ee04 x86: Introduce ia32_enabled() dfa1898cef4c dm-crypt: start allocating with MAX_ORDER 915864d18641 drm/amdgpu: correct chunk_ptr to a pointer to chunk. a8f5cd042305 drm/amdgpu: finalizing mem_partitions at the end of GMC v9 sw_fini 3a56e61b5779 drm/amdgpu: Do not program VF copy regs in mmhub v1.8 under SRIOV (v2) b97debd07a8d kconfig: fix memory leak from range properties b1205cc72b47 modpost: fix section mismatch message for RELA 9a07b662e54e tg3: Increment tx_dropped in tg3_tso_bug() 763a1b3177d9 tg3: Move the [rt]x_dropped counters to tg3_napi 90ed718d6a8e zstd: Fix array-index-out-of-bounds UBSAN warning f5fb5ac7cee2 nouveau: use an rwlock for the event lock. 23c31036f862 netfilter: ipset: fix race condition between swap/destroy and kernel side add/del/test 22a59e51ded2 i2c: ocores: Move system PM hooks to the NOIRQ phase f5d10651396c i2c: designware: Fix corrupted memory seen in the ISR 53f408cad05b hrtimers: Push pending hrtimers away from outgoing CPU earlier c94c44685d80 scsi: sd: Fix sshdr use in sd_suspend_common() dd3438abfb85 vdpa/mlx5: preserve CVQ vringh index
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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: Richard Purdie <richard.purdie@linuxfoundation.org>
Tom Rini [Wed, 3 Jan 2024 15:11:47 +0000 (10:11 -0500)]
inetutils: Update to the 2.5 release
The update from 2.4 to 2.5 was almost something AUH could take care of.
However, we had backported two patches to address CVE-2023-40303 and
that threw off AUH. These changes are confirmed to be in 2.5, so drop
them and update to 2.5.
Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Tue, 2 Jan 2024 18:46:28 +0000 (13:46 -0500)]
oeqa/runtime/parselogs: add qemux86 ACPI ignore for kernel v6.6+
upstream commit 003e0694fcd3d5 [ACPI: processor: Refine messages
in acpi_early_processor_control_setup()] changes logging during
boot such that some of the informational messages are caught as
QA issues.
Adding the string to the ingore files so that 6.6+ will pass QA.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Enrico Scholz [Wed, 3 Jan 2024 11:59:44 +0000 (12:59 +0100)]
tcp-wrappers: drop libnsl2 build dependency
The only libnsl2 function which is used by tcp-wrappers is
'yp_get_default_domain()'. When USE_GETDOMAIN is set, this is
implemented as a simple wrapper around getdomainname() so that libnsl2
is not used at all.
We added a patch which does '#include <rpcsvc/ypclnt.h>' to avoid
implicit forward declaration. By conditionalizing this, the libnsl2
dependency can be dropped completely.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Philip Balister [Wed, 3 Jan 2024 11:20:07 +0000 (06:20 -0500)]
sanity.bbclass: Check for additional native perl modules.
Since we use the build systems native perl, we need to check that all
perl modules required for a build are installed. For a default Fedora 39
install, autoconf-native and libxcrypt both fail to build due to missing
perl modules. After taking careful notes, this commits adds checks for
File::Compare, File::Copy, open, and FindBin.
[YOCTO #14691]
Signed-off-by: Philip Balister <philip@balister.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>
Chen Qi [Tue, 2 Jan 2024 08:40:02 +0000 (16:40 +0800)]
devtool: use straight print in check-upgrade-status output
'devtool check-upgrade-status' is for reporting upgradable
status for recipes. The output should always be printed out. So
we should just use 'print' instead of 'logger.info' as the latter
will be suppressed if '-q' parameter is supplied to devtool.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Simone Weiß [Mon, 11 Dec 2023 16:45:53 +0000 (16:45 +0000)]
patchtest: Add test for deprecated CVE_CHECK_IGNORE
If a recipes was modified recommand the use of `CVE_STATUS` instead if
`CVE_CHECK_IGNORE` is used. This is a depreacted variable and will
result in a warning from the cve-check.class and should hence not be
used anymore. [YOCTO #15311]
Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>
Alex Kiernan [Fri, 29 Dec 2023 11:44:31 +0000 (11:44 +0000)]
rust: Upgrade 1.71.1 -> 1.72.0
Drop getrandom-open64.patch (merged upstream).
Revert https://github.com/rust-lang/cc-rs/commit/c4f414f449bb7cffba3bc923f277704d1d08a8ec
("Map source absolute paths to OUT_DIR as relative. (#684)") which
causes hashed versions of the build path to be used as part of the
filename of generated objects and hence reproducibility issues.
Wang Mingyu [Wed, 27 Dec 2023 13:11:43 +0000 (21:11 +0800)]
python3-lxml: upgrade 4.9.3 -> 4.9.4
Changelog:
===========
* LP#2046398: Inserting/replacing an ancestor into a node's children could loop indefinitely.
* LP#1980767, GH#379: "TreeBuilder.close()" could fail with a "TypeError" after
parsing incorrect input.
* LP#1522052: A file-system specific test is now optional and should no longer fail
on systems that don't support it.
* Wheels include zlib 1.3, libxml2 2.10.3 and libxslt 1.1.39
(zlib 1.2.12, libxml2 2.10.3 and libxslt 1.1.37 on Windows).
* Built with Cython 0.29.37.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
==========
-Corrected the interface for SimplePath to encompass the expectations of
locate_file and PackagePath.
-Fixed type annotations to allow strings.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Wang Mingyu [Wed, 27 Dec 2023 13:07:30 +0000 (21:07 +0800)]
dhcpcd: upgrade 10.0.5 -> 10.0.6
0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch
0001-remove-INCLUDEDIR-to-prevent-build-issues.patch
refreshed for 10.0.6
Changelog:
==========
-privsep: Stop proxying stderr to console and fix some detachment issues
-non-privsep: Fix launcher hangup
-DHCP6: Allow the invalid interface name - to mean don't assign an address from a delegated prefix
-DHCP6: Load the configuration for the interface being activated from prefix delegation
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
- fix: Properly fix -Wpedantic warnings
- fix: Set ppoll timeout minimum to 1ms
#459)
- fix: Revert "ping: use random value for the identifier field" to use PID
again
- fix: Fix support for DSCP (Traffic Class, option -Q)
- fix: Fix the errno handling for strtod
- fix: Drop redundant setsockopt(IPV6_TCLASS) call
- fix: Fix overflow on negative -i
- fix: Fix sporadically missing DNS record on targets with multiple IP
addresses
- fix: Handle interval correctly in the first second after booting
- fix: Fix presentation of IPv6 addresses with no reverse DNS
- fix: Add missing whitespace in IPv6 output
- fix: Allow to localize help
- fix: Use print target when empty ai_canonname
- fix: Restore the MTU probing behavior")
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.
Joshua Watt [Wed, 20 Dec 2023 18:02:35 +0000 (11:02 -0700)]
classes-global/insane: Look up all runtime providers for file-rdeps
Uses the new foreach_runtime_provider_pkgdata() API to look up all
possible runtime providers of a given dependency when resolving
file-rdeps. This allows the check to correctly handle RPROVIDES for
non-virtual dependencies
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Robert Yang [Fri, 22 Dec 2023 07:31:49 +0000 (23:31 -0800)]
archiver.bbclass: Drop tarfile module to improve performance
* The tarfile module doesn't support xz options or environment varible
XZ_DEFAULTS, this makes do_ar_patched incrediblely slow when the file is
large, for example, chromium-x11 is about 3GB:
- "bitbake chromium-x11 -car_patched" hasn't been done after 3 hours on my
host, I checked the partial tar.xz file is only 1.5GB, so maybe more than 6
hours is required to complete the task.
- Now only less than 4 minutes is needed on the same host.
* Need add xz to HOSTTOOLS when archiver.bbclass is enabled and compression is xz.
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>
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>
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>
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>
Ludovic Jozeau [Thu, 21 Dec 2023 14:24:21 +0000 (15:24 +0100)]
image-live.bbclass: LIVE_ROOTFS_TYPE support compression
The task for fstypes with compression is the same as the task for the
uncompressed fstypes, e.g. when adding tar.xz to `IMAGE_FSTYPES`, it will
be included into the do_image_tar task and not creating a separate
do_image_tar.xz task.
This commit fixes `LIVE_ROOTFS_TYPE` with compressed fstypes by
depending on the actual task instead of the non-existent
do_image_<fstype>.<compression> task.
Ross Burton [Thu, 21 Dec 2023 17:01:58 +0000 (17:01 +0000)]
nativesdk: don't unset MACHINE_FEATURES, let machine-sdk/ set it
There is actually a use for nativesdk MACHINE_FEATURES; for example
qemu-usermode being supported, as this is needed to build profile-guided
optimised code.
We shouldn't use the target MACHINE_FEATURES for this because the target
and the SDK can be entirely different, so instead set the
MACHINE_FEATURES in nativesdk.bbclass to SDK_MACHINE_FEATURES (which
defaults to "") and let the conf/machine-sdk/*.conf files set that as
appropriate.
Ross Burton [Thu, 21 Dec 2023 17:01:57 +0000 (17:01 +0000)]
nativesdk: ensure features don't get backfilled
nativesdk aims to run in a slightly different environment than the
target build, so it resets MACHINE_FEATURES and filters DISTRO_FEATURES
with DISTRO_FEATURES_NATIVESDK.
However, feature backfill happens _after_ these operations:
$ bitbake-getvar -r nativesdk-glib-2.0 MACHINE_FEATURES
#
# $MACHINE_FEATURES [5 operations]
# set /home/ross/Yocto/poky/meta/conf/machine/include/qemu.inc:14
# "alsa bluetooth usbgadget screen vfat"
# set /home/ross/Yocto/poky/meta/conf/documentation.conf:284
# [doc] "Specifies the list of hardware features the MACHINE supports."
# set? /home/ross/Yocto/poky/meta/conf/bitbake.conf:893
# ""
# set /home/ross/Yocto/poky/meta/classes-recipe/nativesdk.bbclass:18
# ""
# append utils.py:132 [features_backfill]
# " rtc qemu-usermode"
# pre-expansion value:
# " rtc qemu-usermode"
MACHINE_FEATURES=" rtc qemu-usermode"
This is not intentional nor desired as the target machine features are
unrelated to the nativesdk environment.
Changqing Li [Thu, 21 Dec 2023 05:44:15 +0000 (13:44 +0800)]
man-pages: remove conflict pages
Remove the pages which libxcrypt and shadow already have to avoid
following conflicts during install man-pages and libxcrypt/shadow at the
same time.
Error: Transaction test error:
file /usr/share/man/man3/crypt.3 from install of
libcrypt-doc-4.4.33-r0.x86_64 conflicts with file from package
man-pages-6.04-r0.x86_64
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Notes:
* This version breaks API and bumps the SONAME of libappstream!
Applications using AppStream will have to be ported to the new API.
The 1.0 release is coinstallable with the stable 0.16.x series.
Features:
* Autoformat C and C++ sources
* Remove all deprecated symbols
* Drop support for many deprecated AppStream XML features
* Use GPtrArray to expose keywords list
* Add length argument to raw metadata parsing functions
* Add component array container class
* Remove named values for display_length relations
* Make AsPool only accept/return component boxes
* Port all API away from per-entity locale overrides
* Reduce appstream.conf to its essentials, make it work on stateless systems
* Hide search engine details from public API
* Wrap release entries in AsReleaseList container class
* Make AsMetadata handle AsReleaseList objects
* Refactor is_satisfied result into new RelationCheckResult class
* Add a method to check all relations of a component and get the result
* Add algorithm to score compatibility with a system, add chassis templates
* ascli: Add new check-syscompat command to check chassis compatibility
* Implement environment property for component screenshots
* Autogenerate translatable DE and gui-environment-style C arrays
* Expose more advanced markup conversion function, update function names
* Allow BLAKE3 and SHA512 checksums for release artifacts
* Stop supporting mailto: URLs in <url/> tags
* validator: Improve API and simplify it
* validator: Parse XML in pedantic mode when validating
* validator: Check screenshot environment property
* validator: Only apply summary-has-dot-suffix check to untranslated strings
* compose: Allow creating metadata with complete URLs and no base URL
* spdx: Add API to retrieve a translated license name from an SPDX ID
* qt: Switch to building with Qt6
* qt: Make it possible to iterate ComponentBox
* qt: Implement AppStream::ComponentBox::erase
* qt: Allow concatenating two ComponentBoxes
* qt: Allow loading Pool asynchronously
* qt: Use ComponentBox/Releases in Qt bindings as well
* qt: Add support for the new API to check relation satisfaction
* qt: Maintenance and namespace fixes, use cPtr() to get C pointers everywhere
* bundle: Add linglong as a new type of bundle
* Add GUI environment IDs for macOS and Microsoft Windows
* validator: Check if Release Description is inside description tag
* validator: Add validation for content_rating
* Add support for building on Win32
* win32: change some file/path-related code for portability
* Implement the developer element for unique developer IDs
* Implement scaling factor for screenshots
* component-box: Allow removal of components by-index
* Implement support for external references and citations
* Implement usertags for release data as well
* Move ValueFlags to the context, instead of tieing them to components
* pool: search: Add additional weight for exact substring matches on names
* sysinfo: Add memory size detection support for macOS
* Add support for Zstd for on-disk data compression
* utils: Make tar unpacker independent of zstd binary presence
* Drop Python2 provided tag support
* data: Add ‘Endless’ to the list of desktops
* Add NetBSD support
Specification:
* Drop (most) deprecated information
* docs: Clarify environment-based screenshot ordering
* Add new 'snapshot' release kind
* docs: Build all API documentation with gi-docgen
* spec: Document the new "developer" element
* spec: Document the "reference" tag for registry references
* docs: Add example of YAML for references elements
* Allow hyphens in the last segment of a component-ID
* docs: Drop outdated information from l10n quickstart guide
Bugfixes:
* meson: check for docbook xsl stylesheets
* Fix tweaking of appstream.pc when building as subproject
* Fix crash in asc_l10n_search_translations_qt()
* qt: Make Qt6 dependency a system dependency.
* meson: do not rely on an exe wrapper
* meson: do not -I/usr/include when !stemmer
* meson: Prevent building attempts with MSVC
* meson: Use an SPDX license indentifier in project(license:)
* Add meson overrides
* compose: Set lower-cased CID for synthesized components again
* compose: Set lower-cased CID in desktop-entry parse function
* compose: Honor prefix in font search
* compose: Select the correct default icon glyphs for fonts
* Don't crash when non-YAML documents are read as YAML
* Do not override default-priority when parsing multiple metadata files
* Ensure stemmer always has the right locale and token-search works
* Require a more recent libxmlb to avoid crashes
* Rename component get_releases to indicate that releases may not be loaded from the web
* Prevent string-id validation functions from matching source comments
* Don't define _POSIX_C_SOURCE when building for NetBSD
Miscellaneous:
* Explain metainfo-ancient error in more detail
* Make sed invocation more portable
* Add FreeBSD CI
* Allow variable shadowing in C++ code
* Drop the catchall as-enums unit
* vapi: Drop unneeded metadata
* Make AsMetadata return a component box for multiple components
* apt: Make item descriptions more human-friendly
* Streamline README
Contributors:
Aleix Pol, Alessandro Astone, Alexander Wilms, Dan Yeaw, Daniel Drake,
Gary Wang, Gleb Popov, Ingo Klöcker, JakobDev, Jeremy Whiting, Kai Uwe Broulik,
Marc-André Lureau, Matthias Klumpp, Philip Withnall, Tao Zuhong,
Thomas Klausner, Tristan Partin, and thanks to all translators mentioned
in the respective l10n files!
Version 0.16.4
~~~~~~~~~~~~~~
Released: 2023-11-10
Features:
* Allow hyphens in the last segment of a component-ID
* Implement the developer element for unique developer IDs
* Add meson overrides
Bugfixes:
* meson: Prevent building attempts with MSVC
* meson: Avoid potentially bad sed backup filename when fixing .pc file
Miscellaneous:
* Make sed invocation more portable
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>
Joshua Watt [Wed, 20 Dec 2023 18:01:02 +0000 (11:01 -0700)]
lib/packagedata.py: Fix broken symlinks for providers with a '/'
If a package had a provider with a '/' in it (e.g. "/bin/sh",
"/bin/bash", etc.), the generated symlinks were broken due to being at a
hard coded depth. Use oe.path.relsymlink() instead to make a correct
relative symbolic link
Wang Mingyu [Tue, 19 Dec 2023 07:39:14 +0000 (15:39 +0800)]
diffoscope: upgrade 252 -> 253
Changelog:
============
* Improve DOS/MBR extraction by adding support for 7z.
* Process objdump symbol comment filter inputs as the Python "bytes" type
(and not str).
* Add a missing RequiredToolNotFound import.
* Update copyright years.
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>
Joshua Watt [Wed, 20 Dec 2023 21:31:19 +0000 (14:31 -0700)]
ipk: Switch to using zstd compression
Converts IPK package generation to use zstd instead of xz. zstd has a
much larger compression/speed tradeoff range allowing users to choose
what suits them best, and fast decompression speeds. It also continues
to support parallel compression as xz did.
A new variable called ZSTD_DEFAULTS is provided to set the defaults for
places that want to use zstd for compression; the zst image conversion
command is also modified to use this.
Finally, in order for this to function properly, opkg must include zstd
support, so it is enabled all the time with no PACKAGECONFIG to turn it
off.
Tim Orling [Sun, 17 Dec 2023 22:58:49 +0000 (14:58 -0800)]
oeqa: add runtime 'maturin develop' test case
Similar to the sdk test case, build the "guessing-game" example from
https://maturin.rs/tutorial
This test case:
* creates a python3 venv
* echoes "nameserver 8.8.8.8" to /etc/resolv.conf as we need to have
functional DNS to fetch the crates on target
* fetches crates, builds guessing-game crate and wheel
Wang Mingyu [Tue, 19 Dec 2023 10:16:43 +0000 (18:16 +0800)]
ttyrun: upgrade 2.29.0 -> 2.30.0
Changelog:
===========
- lspai: Tool to display PAI counter sets
- s390-tools: Provide a ShellCheck configuration
- cpumf/pai: Add command line option for realtime scheduling
- dbginfo.sh: enhance ethtool collection for ROCE
- libutil/util_lockfile: add routine to return owning pid of file lock
- lszcrypt: Improve lszcrypt output on SE guests
- rust: Use a single workspace for all rust tools
- zdev: limit the derivation of ZDEV_SITE_ID
- zdump/df_s390: Update 'zgetdump -i' output with zlib info
- zdump/dfi_s390: Support reading compressed s390_ext dumps
- zipl/boot: Integrate zlib compression to single volume DASD dumper
- zipl/boot: compile the bootloaders only if HOST_ARCH is s390x
- zipl: Add --no-compress option to zipl command
- zkey: Also check for deconfigured and check-stopped cards
- ap_tools/ap-check: handle get-attributes between pre and post event
- libutil: fix util_file_read_*() using wrong format specifiers
- rust/pv: fix Invalid write of size 1
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>
Wang Mingyu [Tue, 19 Dec 2023 09:58:58 +0000 (17:58 +0800)]
python3-psutil: upgrade 5.9.6 -> 5.9.7
Changelog:
===========
-enforce Ruff rule raw-string-in-exception, which helps providing clearer
tracebacks when exceptions are raised by psutil.
-[PyPy]: psutil did not compile on PyPy due to missing
PyErr_SetExcFromWindowsErrWithFilenameObject cPython API.
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>