summaryrefslogtreecommitdiff
path: root/Documentation
AgeCommit message (Collapse)Author
8 hoursMerge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds
Pull kvm fixes from Paolo Bonzini: "A large set of fixes, mostly for Arm but almost all architectures are represented. arm64 MMU fixes: - Correctly sanitise the TCR_EL2 register - Stop advertising LPA2 to NV guest when it isn't supported - Correctly convert EH2==0's view of TCR_EL2 into the E2H==1 format - Make sure an EL2 mapping is immediately visible to the hypervisor code, as we don't necessarily require ETS - Address a horrible situation where a guest can livelock when trying to solve a permission fault whilst the underlying S2 PTs have AF=0 - Correctly wipe MTE tags for large mappings instead of just the head page, providing a convenient helper for this - Fix dirty logging detection in ring-only mode - Use ATS1A whenever FEAT_S1PIE is present - Fix arbitrary truncation to 32bit when dealing with pool size - Correctly order page pin refconting - Prevent a HYP block mapping from being replaced with a table - Fix NV Range invalidation by extending the boundaries to the next block mapping - Make sure the correct hw_mmu gets picked on the first run, should userspace restore a nested context between init and the first vcpu_load() - Reject TLBI IPAS2E1 that fall outside of the S2 range arm64 system register fixes: - Correctly forward POE/PIE/TVAL EL2 register traps - Add a sanity check for missing trap forwarding - Correctly hide generic PAuth for pKVM protected guests when the feature PAuth has been exluced from the feature set - Make sure that HCR_EL2.NV1 is always RES0 arm64 VGIC fixes: - Fix a bunch of low-impact issues with GICv4, avoiding leaks on unlikely failure paths - Use a separate lockdep class for vPE doorbells, and guarantee that they are never threaded - Avoid spurious allocation of VPEs when userspace decided not to expose nASSGIcap - Fix spurious preservation of the pending state after DISCARD and CLEAR ITS commands - Make sure GITS_CTLR.Enabled is updated under the its_lock - Serialise vgic CTRL_INIT against vCPU creation - Make the forwarding of LPIs tobust against LPIs being disabled on the target redistributor arm64 pKVM fixes: - Fix the reset of GICv3 LRs for pKVM, de-uglifying the PM paths whilst at it - Fix PMU handling for both protected and non-protected guests, fixing the synchronisation of kvm_host_data in the process - Correctly invalidate TLBs and I-cache when multiplexing multiple vcpus of the same VM on a single physical CPU arm64 feature visibility fixes: - Correctly handle ACCDATA_EL1 being exposed to guests, plugging a potential communication channel between guests Other arm64 fixes: - Flag Apple M3, M4 and M6 CPUs as having a broken vgic and a wonky PMUv3 emulation - Correctly handle 64bit offsets into an MMIO region from userspace - Ensure that a vcpu is loaded when injecting an event - Correctly clear the vcpu feature set on init failure - Clear PSTATE.TCO on exit from the guest when MTE is enabled for the kernel - Let the L0 hypervisor always deal with FEAT_MOPS A/B nonsense when taking such exception, instead of potentially forwarding it - Add a "maintainer profile" for KVM/arm64 - Add testing for the MOVI and MOVALL commands PPC: - Implement kvm_arch_flush_shadow_{all,memslot}() for PPC. They're not meant to be optional! RISC-V: - Validate AIA MMIO address ranges before AIA is initialized - Disallow GPA-width changes after AIA is initialized - Fix double free of the split page cache - Do not touch the envcfg CSRs on the SiFive P550, as it is based on the 1.11 privileged architecture spec - Set Accessed bit in dirty-log write fault fast-path - Validate PMU counter info using available counters - Fix G-stage page table memory leak on VM destroy s390: - Additional memory management related fixes - Improve robustness of the Arm code extraction script - Fixes for the Arm layer - Fix ESSA instruction handling in migration mode - Fix crypto instruction no-hook handling - Fix selftest for uvdevice x86: - Do not confuse the GPA of a guest paging structure with the GPA of the access, if a nested page fault occurs while the CPU is walking the guests's page tables - Do not attempt emulation if a nested page fault occurs on encrypted guest paging structures - Mitigate a class of (x86) bugs where KVM can read/write guest (userspace) memory using the wrong mm, i.e. using the wrong user page tables - Don't force a full nested VMX VM-Exit when destroying a vCPU, as processing the MSR load/store lists and writing back the shadow vmcs12 is wildly wrong when VM is dying - Clear only the VMCB save area on an intercepted SHUTDOWN on SVM, partly to avoid unnecessary churn, but mostly to prevent KVM from clobbering the PML index - Update the tracked pCPU on task migration for both vmcb01 and vmcb02 to fix an edge case where KVM can use a stale ASID across pCPUs - Clear nVMX's smm.guest_mode when freeing nested state, and if a RSM to L2 ultimately fails (and queues a TRIPLE_FAULT to L1) Generic: - Rework the single-vCPU kick logic to fix a bug where KVM would fail to wait for a target vCPU to respond if another, non-waiting kick is in flight Selftests: - Provide empty installation rules for architectures that aren't supported by KVM selftests to fix build issues in CI environments - Fix KVM selftests' rules for generating arm64's sysreg headers so that the headers are properly (re)generated on incremental builds" * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (104 commits) KVM: x86: Don't save the GPA of a fault on the guest's page tables KVM: SEV: never emulate after #NPF on paging structures KVM: PPC: implement .flush_memslot for BookE and Book3S-PR KVM: PPC: remove unnecessary #ifdef KVM: arm64: nv: Ignore TLBI IPAS2E1 above the IPA limit KVM: arm64: nv: Fix NULL dereference in kvm_pmu_nested_transition() KVM: arm64: Load the vcpu in KVM_SET_VCPU_EVENTS KVM: arm64: selftests: Verify HCR_EL2.NV1 is RES0 when E2H0 is NI_NV1 KVM: arm64: Force HCR_EL2.NV1 to RES0 unconditionally KVM: arm64: Hide generic ptrauth from protected VMs without ptrauth KVM: arm64: nv: Report EL2 registers with no trap forwarding KVM: arm64: nv: Forward CNTP_TVAL_EL02 and CNTV_TVAL_EL02 traps KVM: arm64: nv: Forward PIR_EL2, PIRE0_EL2 and POR_EL2 traps RISC-V: KVM: Fix G-stage page table memory leak on VM destroy RISC-V: KVM: Validate PMU counter info using available counters KVM: riscv: Set Accessed bit in dirty-log write fault fast path RISC-V: KVM: Do not touch the envcfg CSRs on the SiFive P550 RISC-V: KVM: Fix double free of the split page cache RISC-V: KVM: Disallow GPA-width changes after AIA init RISC-V: KVM: Validate AIA MMIO address ranges ...
2 daysMerge tag 'landlock-7.4-rc4' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux Pull Landlock fixes from Mickaël Salaün: - prevent composed rulesets from denying link and rename operations that each ruleset allows separately; - close capability-mediation gaps for low-address mappings, inheritable capabilities, the admin memory reserve, and PR_SET_SECUREBITS, so LSM capability denials apply consistently; - distinguish namespace creation from entry in denial records and expose the checked capability context to BPF tracepoint consumers, so they can interpret denials correctly. * tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux: landlock: Add missing EINVAL case in the doc for landlock_add_rule clang-format: Fix formatting of guard() landlock: Document namespace denial operations selftests/landlock: Test namespace denial operations landlock: Add capability objects to denial tracing landlock: Distinguish namespace creation and entry denials selftests/landlock: Test PR_SET_SECUREBITS mediation capabilities: Check PR_SET_SECUREBITS with ns_capable() landlock: Fix capability restriction documentation selftests/landlock: Test capability checks outside the capable hook landlock: Mediate CAP_SYS_ADMIN for the admin memory reserve landlock: Mediate CAP_SETPCAP for inheritable capabilities landlock: Mediate CAP_SYS_RAWIO for mappings below mmap_min_addr landlock: Factor out capability denial checks landlock: Clarify implicit handling of LANDLOCK_ACCESS_FS_REFER landlock: Simplify landlock_get_fs_access_mask() selftests/landlock: Test that layering does not break refer landlock: Add KUnit test for landlock_get_fs_access_mask() landlock: Fix layer composition of LANDLOCK_ACCESS_FS_REFER
3 daysMerge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfLinus Torvalds
Pull bpf fixes from Alexei Starovoitov: "Mostly sockmap fixes as promised, plus uprobe ctx rewrite via bpf and cgroup-bpf fixes. - Reject writable map iterators on read-only maps (Adethya Srinivasan) - Various sockmap fixes (Alexei Starovoitov): - Clear the redirect target before the sk_msg prog runs - Check that the redirected message is the cork - Leave sk_stream_wait_memory() once the socket is dead - Keep the rest of the cork after a redirect - Don't let an SK_PASS verdict cover the next message - Subtract all dropped bytes from the return value of sendmsg() - Clear the end mark of elements added by bpf_msg_push_data() and bpf_msg_pop_data() - Fix ring capacity invariant break in bpf_msg_push_data() (Bo Cao) - Report RCU-tasks quiescent states in do_check() to fix rcu_tasks stalls during a long verification (Breno Leitao) - Various sockmap fixes (Chris Mason): - Give no progs to a TCP listener - Check the target of an egress redirect before each send - Check the TCP state in recvmsg() - Reset the copy position when corking - Don't copy 0 bytes into a full cork - Use a dedicated workqueue for freeing BPF programs to fix a deadlock between pack_mutex waiters and the vmalloc purge work (Emil Tsalapatis) - Fix verifier model mismatch on a narrow read of __sk_buff.remote_port (Henry Martin) - Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutate selftest (Jiayuan Chen) - Restrict uprobe ctx writes to the registers that ptrace can set (Jiri Olsa) - Various sockmap fixes (Josef Bacik): - Write sg.start when recvmsg() faults - Don't let an SK_DROP verdict stick - Clear the resume state of a stopped psock - Various fixes (Michal Luczaj): - Fix "unresolved symbol tcp_request_sock" build error with CONFIG_INET=n - Restrict iter-context sockmap updates to iter/sockmap - Restrict bpf_sock_destroy() to iter/{tcp,udp} - Mark bpf_iter__sockmap::sk as PTR_TRUSTED - Mark backing_file_alloc/free LSM hooks as untrusted (Sergei Nizovtsev) - Various cgroup-bpf fixes (Shakeel Butt): - Don't read freed effective arrays in BPF_PROG_QUERY - Don't attach to a removed cgroup - Protect cgroup_bpf state with its own mutex, so that queries and the release work don't wait for cgroup_mutex - Don't lose errors in effective BPF_LSM_CGROUP queries - Check variable-offset accesses against special fields (Shihuang Liu)" * tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: (38 commits) selftests/bpf: Test which ctx registers a uprobe prog can write bpf: Restrict uprobe ctx writes to the registers ptrace can set selftests/bpf: Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutate bpf, cgroup: Don't lose errors in effective BPF_LSM_CGROUP queries bpf, cgroup: Protect cgroup_bpf state with its own mutex bpf, cgroup: Don't attach to a removed cgroup bpf, cgroup: Don't read freed effective arrays in BPF_PROG_QUERY bpf: Fix verifier model mismatch on __sk_buff.remote_port narrow read bpf: Fix "unresolved symbol tcp_request_sock" build error selftests/bpf: Add iter/sockmap bpf_sock_destroy() negative test bpf: Mark bpf_iter__sockmap::sk as PTR_TRUSTED bpf: Restrict bpf_sock_destroy() to iter/{tcp,udp} bpf, docs: Document BPF_ITER_NOSLEEP selftests/bpf: Add negative test for sockmap update from non-sockmap iter bpf, sockmap: Restrict iter-context sockmap updates to iter/sockmap selftests/bpf: Remove sockmap update from bpf_iter_unix bpf, lsm: Mark backing_file_alloc/free LSM hooks as untrusted bpf: Report RCU-tasks quiescent states in do_check() bpf: Check variable-offset accesses against special fields bpf: Use dedicated workqueue for freeing BPF programs ...
4 daysMerge tag 'block-7.4-20261119' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux Pull block fixes from Jens Axboe: - NVMe fixes via Keith: - nvme-tcp fixes for TLS record handling and waiting for an in-flight TLS handshake callback - Fix a deadlock on nvme_subsystems_lock in nvme_init_subsystem() - Fix a gendisk leak in nvme_alloc_ns() - Stop AEN work before ANA teardown - Remove namespaces in parallel - Various nvmet fixes for auth, the file backend, fc, tcp, loop, and connection failure rollback - sysfs input validation and kfree_sensitive() for DH-HMAC-CHAP secrets - Dead code removal - Fix a 32-bit overflow in the blk-iocost donation weight calculation - ublk fixes: validate all parameters for zoned devices, and dispatch the next fetch after a batch failure - Fix a pm_only underflow when a runtime resume is retried after a failed one - nbd: reclassify sockets in the reconnect path too, to avoid lockdep false positives - Take quiesce_lock when removing a queue from the tag set, fixing a use-after-free in blk_mq_unquiesce_tagset() - Allow error injection rules to delay bios, and reject unknown status tags * tag 'block-7.4-20261119' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux: (49 commits) Documentation: block: document error injection delay feature block: allow error injection rules to delay bios block: Reject unknown status tags in error injection rules blk-mq: take quiesce_lock when removing a queue from the tag set nbd: Reclassify sockets in the reconnect path block: Keep RPM_ACTIVE in blk_pre_runtime_resume() when already active nvme-fabrics: use kfree_sensitive() for the old DH-HMAC-CHAP secret nvme-sysfs: use kfree_sensitive() for DH-HMAC-CHAP secrets nvmet: roll back queue bindings on connection failure nvmet-fc: reject duplicate queue IDs on Create Connection nvmet-fcloop: free the LS request when delivery fails nvme-tcp: require the R2T offset to match the data sent nvmet-tcp: only wait for in-capsule data for inline SGLs nvme-loop: release the target request when SG setup fails nvmet-auth: store the DH-CHAP key offset instead of hardcoding it nvme-tcp: consume TLS records without application data nvme-tcp: move the TLS record read loop into a helper nvme-tcp: use an aligned buffer for the TLS record type nvmet: use overflow-safe range checks in the file backend nvmet: handle short reads and writes in the file backend ...
4 daysMerge tag 'sound-7.4-rc4' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound Pull sound fixes from Takashi Iwai: "A collection of various small fixes. Nothing really stands out. While we still get more fixes than before, things look still well manageable (fingers crossed). Here are the highlights: ALSA core: - Fix page leaks at buffer allocation retries - Fix in compress-offload API for setting metadata_set flag - Parameter flag handling fixes on setup and error in PCM OSS layer HD-audio: - Fix AE-5 LED strip color corruption during animation in ca0132 - Correct boost values for CS35L41 on several HP laptops - Realtek quirk regression fixes for Lenovo Legion and V14 G2 ITL - Fix quiet speakers on HP 250 G6 - Various Realtek quirks and mute LED fixups (HP, Lenovo, THUNDEROBOT) USB-audio: - Fix UBSAN array bounds warning and period wake-up issue in usx2y - Quirk for Yamaha MODX M ASoC: - Intel / SoundWire: Support for Senary SN6245 codec - AMD: Fix ACP7.x DMIC/PDM ring buffer address on resume, ACP quirks - Fixes for Qualcomm to reject oversized compress ring buffers, AudioReach routing disconnect, LPASS clocks probe ordering and WCD934x MCLK initialization - Fixes for Meson about locking and sleeping in atomic context - Rockchip fix to avoid stuck clear condition in I2S/TDM consumer mode - Mediatek fix for ETDM3_OUT DAI startup error on MT8195 - Codec fixes for CS35L56, TAS2781, ES9039Q2M, and WM8962" * tag 'sound-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (41 commits) ASoC: tas2781: Avoid possible zero-division ASoC: meson: gx-formatter: add lockdep_assert_held check ASoC: meson: gx-formatter: change stream lock from mutex to spinlock ALSA: memalloc: Fix DMA allocation retry cleanup ALSA: hda/realtek: Add LED fixup for HP ZBook Ultra G1a Laptops ASoC: es9039q2m: Enable the DAC clock at component probe ASoC: rockchip: i2s-tdm: Don't reset a pending clear in consumer mode ASoC: qcom: q6asm-dai: reject compress rings larger than the DMA buffer ASoC: qcom: q6apm-dai: reject compress rings larger than the DMA buffer ASoC: codecs: wcd934x: keep MCLK enabled so init writes reach the codec ASoC: wm8962: Fix broken headset button caused by wrong guard constant ASoC: qcom: q6dsp-lpass-clocks: Set driver data before registering clocks ALSA: hda/realtek: Fix regression on Lenovo Legion 16IRX9H ALSA: hda: cs35l41: Correct Boost values for several laptops with overridden ACPI ALSA: hda/realtek: Fix quiet speakers on HP 250 G6 ALSA: hda/realtek: Add mute LED quirk for HP OMEN 15t-ek000 ALSA: hda/realtek: Enable mute LEDs on HP Laptop 15-fd1xxx ALSA: hda/realtek: Add quirk for Lenovo Yoga Pro 7 14ASP9 ALSA: hda/realtek: Add quirk for HP Pavilion 15-cw1xxx ALSA: hda/realtek: Add quirk for THUNDEROBOT Gravity16G2Pro ...
4 daysMerge tag 'arm64-fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux Pull arm64 fixes from Catalin Marinas: "BBML3 allow-list corrections for Cortex-X4 and Neoverse-V3/V3AE following updated errata, a kCFI oops during kexec relocation and NEON intrinsics type mismatches causing CRC64 and XOR build failures with tip-of-tree Clang: - Remove Cortex-X4 and Neoverse-V3/V3AE from the BBML3 allow list Updated errata documents show that revisions previously reported as fixed remain affected by load/store livelocks when changing mapping sizes without break-before-make - Fix a kCFI oops during kexec image relocation. Give the relocation routine a type hash and enter the copied code at the correct offset - Fix the build with recent Clang versions by removing the stdint.h type overrides for NEON intrinsics. The CRC64 and XOR intrinsics code no longer includes the kernel's type header" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: Drop stdint.h type overrides from asm/neon-intrinsics.h xor: arm/arm64: Move NEON xor_gen() dispatch into the glue code lib/crc: Don't include <linux/types.h> in NEON intrinsics code arm64: kexec: use a typed entry to fix kCFI oops arm64: cpufeature: Remove Cortex-X4 from the BBML3 allow list arm64: cpufeature: Remove Neoverse-V3/AE from the BBML3 allow list
4 daysMerge tag 'asoc-fix-v7.4-rc3' of ↵Takashi Iwai
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus ASoC: Fixes for v7.4 Quite a lot of fixes here together with a few quriks for new devices, mostly not particularly remarkable. The Cirrus changes are relatively large but reasonably so, there's a bunch of data table updates and a couple of new functions needed and they come with clear reasonining.
5 daysMerge tag 'kvmarm-fixes-7.4-2' of ↵Paolo Bonzini
git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD KVM/arm64 fixes for 7.4, take #2 * MMU fixes: - Correctly sanitise the TCR_EL2 register - Stop advertising LPA2 to NV guest when it isn't supported - Correctly convert EH2==0's view of TCR_EL2 into the E2H==1 format - Make sure an EL2 mapping is immediately visible to the hypervisor code, as we don't necessarily require ETS - Address a horrible situation where a guest can livelock when trying to solve a permission fault whilst the underlying S2 PTs have AF=0 - Correctly wipe MTE tags for large mappings instead of just the head page, providing a convenient helper for this - Fix dirty logging detection in ring-only mode - Use ATS1A whenever FEAT_S1PIE is present * VGIC fixes: - Fix a bunch of low-impact issues with GICv4, avoiding leaks on unlikely failure paths - Use a separate lockdep class for vPE doorbells, and guarantee that they are never threaded - Avoid spurious allocation of VPEs when userspace decided not to expose nASSGIcap - Fix spurious preservation of the pending state after DISCARD and CLEAR ITS commands - Make sure GITS_CTLR.Enabled is updated under the its_lock - Serialise vgic CTRL_INIT against vCPU creation - Make the forwarding of LPIs tobust against LPIs being disabled on the target redistributor * pKVM fixes: - Fix the reset of GICv3 LRs for pKVM, de-uglifying the PM paths whilst at it - Fix PMU handling for both protected and non-protected guests, fixing the synchronisation of kvm_host_data in the process - Correctly invalidate TLBs and I-cache when multiplexing multiple vcpus of the same VM on a single physical CPU * Feature visibility fixes: - Correctly handle ACCDATA_EL1 being exposed to guests, plugging a potential communication channel between guests. * Misc fixes: - Correctly clear the vcpu feature set on init failure - Clear PSTATE.TCO on exit from the guest when MTE is enabled for the kernel - Let the L0 hypervisor always deal with FEAT_MOPS A/B nonsense when taking such exception, instead of potentially forwarding it - Add a "maintainer profile" for KVM/arm64 - Add testing for the MOVI and MOVALL commands
5 dayslandlock: Document namespace denial operationsMickaël Salaün
Namespace denial records now distinguish creation from entry. Document the namespace_op field in the audit and trace references, and clarify that it describes the semantic namespace hook rather than exact syscall provenance. Creation reports the ID allocated for a namespace that never becomes reachable, whereas entry reports the existing target ID. Cc: Günther Noack <gnoack@google.com> Link: https://patch.msgid.link/20261118163254.2554413-5-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
5 dayslandlock: Add capability objects to denial tracingMickaël Salaün
The capability denial tracepoint identifies the capability number but not the credentials or user namespace against which it was checked. Typed BPF consumers therefore cannot reconstruct the authoritative hook context, especially when a check targets a user namespace other than the caller's current namespace. Carry the exact cred and user_ns used by each commoncap check through check_cap() to the tracepoint's BTF prototype. The capable hook forwards its arguments. Other callers mirror old->user_ns for CAP_SETPCAP, and init_user_ns for CAP_SYS_RAWIO and CAP_SYS_ADMIN. The latter checks protect global hardening and the global admin memory reserve, so nested user-namespace capabilities must not authorize them. Keep these pointers out of TP_STRUCT__entry and TP_printk so the raw ring-buffer layout and textual format remain unchanged. They provide context only and do not participate in Landlock's verdict. Do not carry the capability options. CAP_OPT_NOAUDIT already suppresses the complete denial record, and the remaining option bits do not explain the checked security relationship. Cc: Günther Noack <gnoack@google.com> Fixes: 97c8386f1d74 ("landlock: Enforce capability restrictions") Link: https://patch.msgid.link/20261118163254.2554413-3-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
5 dayslandlock: Fix capability restriction documentationMickaël Salaün
Some documented claims about LANDLOCK_PERMISSION_CAPABILITY_USE do not hold for every capability check. Remove them instead of listing their exceptions, and stop calling this permission a hook. Cc: Günther Noack <gnoack@google.com> Cc: Paul Moore <paul@paul-moore.com> Cc: Serge Hallyn <serge@hallyn.com> Acked-by: Serge Hallyn (AMD) <sergeh@kernel.org> Reviewed-by: Günther Noack <gnoack@google.com> Fixes: 97c8386f1d74 ("landlock: Enforce capability restrictions") Link: https://patch.msgid.link/20261118145217.2551053-7-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
6 daysMerge tag 'mm-nonmm-hotfixes-stable-2026-11-18-00-06' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Pull non-MM updates from Andrew Morton: - "get_maintainer: stop sending every patch to LKML" (Konstantin Ryabitsev): Make THE REST a fallback when no usable subsystem list matches and update the submission guide. This avoids routine copies to LKML while retaining a mailing list for otherwise unmatched patches. - On local OCFS2 mounts, a failed shared mmap write fault now delivers SIGBUS instead of hitting BUG_ON(). Journal shutdown is serialized with inode cleanup, and checkpoint waiters no longer use a queue embedded in the journal being freed. - Queued dlmfs lock work now keeps the superblock active through its final iput(), avoiding a use-after-free during unmount. The OCFS2 locking_state debugfs iterator follows its live cursor instead of list links copied from a lock resource which may have been freed during a read-only remount. - Fault-injection boot parameters no longer call code which allocates memory and schedules work before slab and workqueues are initialized, fixing a boot failure. * tag 'mm-nonmm-hotfixes-stable-2026-11-18-00-06' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: MAINTAINERS: DRM DRIVERS AND MISC GPU PATCHES MAINTAINERS: update Andrea Cervesato's email for LTP mailmap: update email address for Sai Teja Aluvala mailmap: add an alias for Alex Elder mailmap: update entry for Guodong Xu mailmap: add entries for Ridong Chen mailmap: add Wang Yibo's work email address mailmap: add entry for Beat M. Liechti mailmap: update email address for Naman Jain mailmap: add entries for Luiz Capitulino mailmap: add entries for Miaoqing Pan mailmap: update Mika Westerberg's email address mailmap: update email address for Bradley Morgan docs: submitting-patches: make LKML a list of last resort again get_maintainer: only use THE REST as a fallback ocfs2: fix kernel BUG in ocfs2_page_mkwrite() when write_end fails fault-inject: fix boot failure with fault injection boot parameters ocfs2: advance locking_state through the live cursor ocfs2/dlmfs: keep the superblock alive during lock work ocfs2: serialize inode journal access with shutdown
6 daysarm64: cpufeature: Remove Cortex-X4 from the BBML3 allow listRyan Roberts
Cortex-X4 erratum 3043263 can cause a load or store to livelock when mapping size changes without break-before-make or when contiguous hints are programmed inconsistently. The erratum was previously reported as fixed in r0p3. On that basis, commit 5aa4b625762e ("arm64: Add BBM Level 2 cpu feature") added Cortex-X4 from r0p3. The updated Cortex-X4 SDEN v13, dated 18 June 2026, lists r0p0, r0p1, r0p2 and r0p3 as affected and the erratum as open. Remove the entry so Cortex-X4 observes break-before-make, and record the workaround in the silicon errata registry. Fixes: 5aa4b625762e ("arm64: Add BBM Level 2 cpu feature") Cc: stable@vger.kernel.org Link: https://support.arm.com/documentation/109148/13-0/?lang=en Signed-off-by: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
6 daysarm64: cpufeature: Remove Neoverse-V3/AE from the BBML3 allow listRyan Roberts
Neoverse-V3 and Neoverse-V3AE erratum 3053180 can cause a load or store to livelock when mapping size changes without break-before-make or when contiguous hints are programmed inconsistently. The erratum was previously reported as fixed in r0p2. On that basis, commit 5aa4b625762e ("arm64: Add BBM Level 2 cpu feature") allowed Neoverse-V3 from r0p2, and commit 8fca3852e33d ("arm64: cpufeature: add Neoverse-V3AE to BBML2 allow list") did the same for Neoverse-V3AE. The updated SDENs, MP168 v11 for Neoverse-V3 and MP172 v12 for Neoverse-V3AE, dated 9 June 2026, list r0p0, r0p1 and r0p2 as affected and the erratum as open. There is no fixed revision on which to base either allow-list entry. Remove both entries so these CPUs observe break-before-make, and record the workaround in the silicon errata registry. Fixes: 5aa4b625762e ("arm64: Add BBM Level 2 cpu feature") Fixes: 8fca3852e33d ("arm64: cpufeature: add Neoverse-V3AE to BBML2 allow list") Cc: stable@vger.kernel.org Link: https://support.arm.com/documentation/109231/11-0/?lang=en Link: https://support.arm.com/documentation/109704/12-0/?lang=en Signed-off-by: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
6 daysDocumentation: block: document error injection delay featureMd Haris Iqbal
Document the delay_us option: the delay happens above the driver, a delayed bio is not run through the rules again, and holding a bio back reorders it against bios submitted later. Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Md Haris Iqbal <haris.iqbal@linux.dev> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20261111215838.103356-4-haris.iqbal@linux.dev Signed-off-by: Jens Axboe <axboe@kernel.dk>
6 daysdocs: submitting-patches: make LKML a list of last resort againKonstantin Ryabitsev
Commit 77167b966b7e ("docs: submitting-patches: clarify the role of LKML") changed the documentation to say that all patches should be sent to LKML by default, because get_maintainer.pl always suggested it. Now that get_maintainer.pl only falls back to THE REST when no other matching section provides a mailing list, update the documentation to match: send patches to the subsystem-specific list, and use LKML only when there isn't one. Link: https://lore.kernel.org/20261113-get-maintainer-the-rest-fallback-v3-2-36ee5a3e8d13@linuxfoundation.org Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Suggested-by: Petr Pavlu <petr.pavlu@suse.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Joe Perches <joe@perches.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Federico Vaga <federico.vaga@vaga.pv.it> Cc: Akira Yokosawa <akiyks@gmail.com> Cc: Carlos Bilbao <carlos.bilbao@kernel.org> Cc: Avadhut Naik <avadhut.naik@amd.com> Cc: Alex Shi <alexs@kernel.org> Cc: Yanteng Si <si.yanteng@linux.dev> Cc: Dongliang Mu <dzm91@hust.edu.cn> Cc: Chen-Yu Yeh <chenyou910331@gmail.com> Cc: Weijie Yuan <wy@wyuan.org> Cc: <users@kernel.org> Documentation/process/submitting-patches.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
8 daysMerge tag 'assoc-array-fixes-v2'Linus Torvalds
Clean up assoc_array library code I had already gotten rid of this tag locally, because we then decided to just remove the assoc_array library entirely since it has only one single user - the key handling code - and that user is getting rewritten to use rhashtable instead. But that removal is scheduled for 7.5, and this fixes real bugs and does clean up some of the code. So while it's all slated for removal, some of the fixes need back-porting and we might as well remove the cleaned-up version. Maybe somebody decides they want to resurrect it for another project - it really is fairly generic library code - they shouldn't get the messy end state that we decided to jettison. Background: Nils Ollrogge reported a bug in the assoc_array library and had a patch to fix it too, but that code was too obscure for me to follow, so I used some LLM tools to help make sense of it all and found more issues in the process. * tag 'assoc-array-fixes-v2': assoc_array: use assoc_array_parent_link() when splitting a shortcut assoc_array: find and collapse in deletion without gotos assoc_array: move deletion's collapse into a function of its own assoc_array: replace the labels in gc's tree walk with a loop assoc_array: move gc's folding into a function of its own assoc_array: keep gc's cleanup out of the live tree on allocation failure assoc_array: don't chain a new shortcut onto an existing one assoc_array: choose between splitting a node and a shortcut without gotos assoc_array: move shortcut creation into a function of its own assoc_array: move node splitting into a function of its own assoc_array: fill the segment cache in one place assoc_array: move in-place insertion into a function of its own assoc_array: don't lose objects when a root shortcut is split at level 4 assoc_array: don't lose objects when a shortcut is split on a word boundary assoc_array: correct the documentation of get_key_chunk()'s level argument
8 daysMerge tag 'char-misc-7.4-rc4' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc Pull char/misc/iio driver fixes from Greg KH: "Here are a bunch of char, misc, and iio driver fixes for reported problems for 7.4-rc4. Included in here are: - usual collection of lots of IIO driver fixes for issues - binder driver fix - iio, w1, and comedi driver fixes found and fixed by Josef - comedi driver fix for a reported problem - other misc driver fixes All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (68 commits) iio: hid-sensors: fix fractional part for unit exponents -7 and -8 iio: trigger: free the trigger ID after device_del() iio: hid-sensors: fix a division by zero iio: humidity: hid-sensor-humidity: Use per-instance callbacks iio: temperature: hid-sensor-temperature: Use per-instance callbacks comedi: comedi_bond: Fix leak of opened device references mei: me: add ice lake point LP iTouch DID mei: lb: read the MTU once rust_binder: push BR_TRANSACTION_COMPLETE before BR_FAILED_REPLY misc: ibmvmc: initialize HMC state before device registration w1: w1_therm: leave the slaves of other families alone w1: w1_therm: lock the list of slaves for the bulk read w1: don't hold list_mutex while a slave is torn down w1: netlink: drop the slave after the bus is unlocked w1: ds2805: use the bus mutex to talk on the bus w1: ds28e04: use the bus mutex to talk on the bus w1: ds2482: set the strong pull-up with its byte w1: remove the master's files before taking its locks w1: use the bus mutex for the "rw" file misc: bcm-vk: fix DMA allocation memory leak ...
8 dayslandlock: Clarify implicit handling of LANDLOCK_ACCESS_FS_REFERGünther Noack
The LANDLOCK_ACCESS_FS_REFER right is handled implicitly in a ruleset, but only if any other filesystem access right is declared as handled in the given ruleset. The old documentation was still a remnant from the times when filesystem access rights were the only access rights that existed in Landlock, but it became misleading when we introduced additional types of access rights. Fixes: fff69fb03dde ("landlock: Support network rules with TCP bind and connect") Signed-off-by: Günther Noack <gnoack3000@gmail.com> Link: https://patch.msgid.link/20261113-b4-landlock-refer-nonfs-layer-v3-5-02d7e42bcdfd@gmail.com [mic: Reword _LANDLOCK_ACCESS_FS_INITIALLY_DENIED comment, fix comment wrapping, and include erratum 5 in userspace-api/landlock.rst] Signed-off-by: Mickaël Salaün <mic@digikod.net>
8 daysALSA: doc: cs35l56: Point to kernel.org firmware repositoryMarek Vasut
Use the primary mirror of linux-firmware at kernel.org. No functional change. Fixes: 088fb4ee17fc ("ALSA: doc: cs35l56: Add information about Cirrus Logic CS35L54/56/57") Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260914031252.98932-1-marek.vasut+renesas@mailbox.org
8 daysrcu-tasks: Use pr_debug() for callback contend/collapse messagesSong Liu
Commit 5de907d24919 ("rcu-tasks: Disable callback contend/collapse messages by default") added the rcupdate.rcu_task_collapse_debug module parameter to gate the three pr_info() messages that report RCU Tasks switching between CPU-0 and per-CPU callback queuing. The kernel already has a mechanism for debug-only messages that are off by default: pr_debug(). Use pr_debug() for these messages, and remove the rcu_task_collapse_debug module parameter, its documentation, and its boot-time announcement. The messages stay off by default. On CONFIG_DYNAMIC_DEBUG=y kernels, they can be enabled at boot with: dyndbg="file kernel/rcu/tasks.h +p" or at runtime with: echo 'file kernel/rcu/tasks.h +p' > /proc/dynamic_debug/control Assisted-by: Claude:claude-opus-5 Signed-off-by: Song Liu <song@kernel.org> Reviewed-by: Joel Fernandes <jfern@kernel.org> Reviewed-by: Paul E. McKenney <paulmck@kernel.org> Tested-by: Breno Leitao <leitao@debian.org> Signed-off-by: Joel Fernandes <jfern@kernel.org>
8 daysMerge tag 'nfs-for-7.4-2' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds
Pull NFS client fixes from Anna Schumaker: - Various NFS and SunRPC fixes from Avi Weiss - Various localio fixes from Mike Snitzer - Delegated timestamp fixes from Jeff Layton - CB_NOTIFY_LOCK fixes from Olga Kornievskaia - Various sunrpc, flexfiles, and xprtrdma fixes from Tim Menninger * tag 'nfs-for-7.4-2' of git://git.linux-nfs.org/projects/anna/linux-nfs: (26 commits) NFSv4: Prevent indefinite waits for out-of-order OPEN stateids NFSv4/flexfiles: limit transport disconnects when cancelling I/O SUNRPC: add request-scoped disconnects when cancelling tasks pNFS: avoid repeatedly cancelling I/O for the same lseg xprtrdma: serialize unmap_sync with xprt_disconnect NFSv4: remember that the server may send CB_NOTIFY_LOCK NFSv4: wake blocking lock waiters when a delegated lock is released NFS: stamp after the server's ctime following a CLONE NFS: stamp after the server's ctime when truncating under delegated times NFS: don't let delegated c/mtime stamps go backward NFS/localio: give the LOCALIO probe a short timeout of its own NFS/localio: probe again for LOCALIO when localio_enabled is set to Y NFS/localio: hold the client across an asynchronous LOCALIO probe SUNRPC: Balance queue accounting when relocating a task SUNRPC: Balance switch queue length on transport removal SUNRPC: Fix TCP-with-TLS transport class identification SUNRPC: preserve transport security policy when cloning clients SUNRPC: preserve timeout policy when cloning clients SUNRPC: preserve fatal network errors during RPC binding sunrpc: instantiate rpc_pipefs dentry before publishing it ...
8 daysMerge tag 'spi-fix-v7.4-rc2' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi Pull spi fixes from Mark Brown: "There's a few small collection of driver fixes here, the usual story where none of them are super remarkable if you don't have the have the hardware. The largest batch is the Tegra fixes which are mainly around error handling" * tag 'spi-fix-v7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: axi-spi-engine: Start the program length at zero spi: virtio: move teardown to .remove() spi: dt-bindings: pl022: Allow a power domain spi: tegra210-quad: Unmap DMA buffers on transfer timeout spi: tegra210-quad: Track DMA mapping state spi: tegra210-quad: don't overwrite refreshed status with lost-IRQ snapshot
8 daysMerge tag 'regulator-fix-v7.4-rc2' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull regulator fixes from Mark Brown: "A small change adding support for the Silergy SYM827 which is a variation on the FAN53555 so needs some quirk data and a new DT compatible" * tag 'regulator-fix-v7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: fan53555: Add support for Silergy SYM827 regulator: dt-bindings: fan53555: Add Silergy SYM827
9 daysMerge tag 'probes-fixes-v7.4-rc3' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace Pull probe fixes from Masami Hiramatsu: "Fix ftrace ops switching and optprobe state transitions: - Switch an armed ftrace-based kprobe from kprobe_ftrace_ops to kprobe_ipmodify_ops in register_aggr_kprobe() when adding a probe with a post_handler, so later disarming does not fail with -ENOENT and leave the probe armed - Queue forcibly unoptimized probes onto the generation's cooling_list in force_unoptimize_kprobe() so unregister_kprobes() waits for Tasks RCU before freeing the optinsn slot, preventing a use-after-free - Skip arch_arm_kprobe() in __arm_kprobe() when a probe is queued for unoptimization so the active relative jump instruction is not partially overwritten with a breakpoint before the optimizer runs - Re-queue any jump-optimized sibling probe covering a disabled probe's address when that probe finishes cooling in optprobe_finalize_generation(), matching the freeing_list path Fix multiprobe lifecycle and boot kprobe setup - Return early in setup_boot_kprobe_events() when the kprobe_event= boot buffer is empty to avoid contending on event_mutex with asynchronous eval-map work during normal boot - Verify that a multiprobe event is neither enabled nor busy before unlinking any sibling kprobe, fprobe, uprobe, or eprobe so active probes cannot be unlinked and freed via dynamic_events - Register and enable a newly appended fprobe or uprobe immediately when the target multiprobe event is already enabled so the probe fires and disable or perf cleanup does not act on an unregistered probe - Free the temporary event name string with __free(kfree) in __trace_uprobe_create() to prevent a memory leak if a subsequent allocation fails Fix BTF parsing and string array fetch handling: - Compute BTF bitfield byte and bit offsets consistently, select the smallest unsigned fetch type covering the bitfield, and size FETCH_OP_MOD_BF from that type to prevent an 8-byte out-of-bounds write on smaller ring buffer slots - Validate BTF_KIND_PTR and non-NULL BTF_KIND_INT types in btf_type_is_char_ptr() and btf_type_is_char_array() before reading inner type metadata to avoid misinterpreting byte sizes as type IDs or reading out of bounds - Check for FETCH_OP_UDEREF before advancing the fetch instruction slot in finalize_fetch_insn() so user-space dereference string arrays emit FETCH_OP_ST_USTRING instead of reading kernel memory - Reject string array counts when the preceding fetch operation is not a memory dereference so non-dereference string sources ($comm, immediate strings, eprobe fields) do not emit invalid FETCH_OP_LP_ARRAY loops Fix signed 1-byte field fetch and fprobe target check: - Use explicit fixed-width integer types (s8/u8, s16/u16, s32/u32) in get_event_field() so 1-byte signed event fields are sign-extended instead of zero-extended under -funsigned-char - Exclude TRACE_EVENT_FL_FPROBE events in find_and_get_event() so eprobes cannot attach to fprobe or tprobe events Fix typo in kprobes documentation: - Remove a stray closing parenthesis in Documentation/trace/kprobes.rst" * tag 'probes-fixes-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: tracing/uprobes: Fix memory leak of tail in __trace_uprobe_create() tracing/probes: Reject array count on non-dereference string sources tracing/probes: Fix user-space dereference string array store type tracing/eprobe: Disallow attaching eprobes to fprobe events tracing/eprobe: Fix 1-byte signed field fetch in get_event_field() tracing/probes: Fix missing BTF kind checks in char pointer/array helpers tracing/probes: Fix BTF bitfield parsing and out-of-bounds buffer write tracing/probes: Enable newly appended probe when target event is enabled tracing/probes: Check enabled and busy state before unlinking sibling probes kprobes: Re-optimize blocked sibling probe when cooling finishes kprobes: Do not overwrite jump instruction when re-arming unoptimizing probe kprobes: Fix UAF and queue cooling probes on forced unoptimization kprobes: Switch ftrace ops when adding probe with post_handler docs, kprobes: Fix bracket tracing: skip boot kprobe setup when no events were requested
10 daysbpf, docs: Document BPF_ITER_NOSLEEPMichal Luczaj
Commit dfcd17659112 ("bpf: Reject sleepable programs for task_vma iterator") introduced BPF_ITER_NOSLEEP, but did not update the docs. Mention the flag in bpf_iterators.rst. Signed-off-by: Michal Luczaj <mhal@rbox.co> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261107-sockmap-update-limit-iter-v3-4-7c0bad1ad036@rbox.co
10 daysMerge tag 'ovl-fixes-7.4-rc3' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs Pull overlayfs fixes from Amir Goldstein: - Fixes for data-only layers (composefs), some for regressions from v6.16, which relaxed the requirements for redirects to data-only layers - Fix a use-after-free in lookup of a hardlink with a FUSE upper, reported by Sashiko - Fix a mount failure right after unmount of an overlay with the same upperdir - Reject lower layers on the same fs with different idmaps, which could decode file handles through the wrong layer - Minor fixes for a memory leak, an error message and readdir d_ino * tag 'ovl-fixes-7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs: selftests: overlayfs: reject different lower idmaps on same fs ovl: reject different lower idmaps on the same fs ovl: bump the impure dir version when linking a file with origin ovl: return EIO if the lowerdata is missing ovl: follow lower to lowerdata redirects from any lower layer ovl: report the requested redirect_dir mode in conflicting options ovl: do not allow nfs_export with data-only layers ovl: do not check the deferred lowerdata redirect on index lookup ovl: fix leak of lowerdata redirect on ovl_get_inode() failure ovl: do not always clear absolute_redirect ovl: release the upperdir/workdir in-use locks before the umount sync ovl: do not read the flags of a put upper dentry in lookup
10 daysMerge tag 'arm64-fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux Pull arm64 fixes from Catalin Marinas: "Fix hugetlb write fault livelock, permission overlay and GCS state preservation across CPU suspend, cpuidle context tracking during system suspend, GCS mode handling on signal return, AMU counter errata workarounds, kexec loading of images with a non-zero text_offset and a spurious ptrace warning: - Fix hugetlb write fault livelocks caused by stale read-only TLB entries after another CPU makes the page writable and only performs a local invalidate. Unlike the generic fault path, hugetlb has no fix_spurious_fault() fallback - Save and restore POR_EL0, GCSPR_EL0 and GCSCRE0_EL1 across CPU suspend - Restrict cpuidle context tracking in cpu_suspend() to idle tasks, avoiding context tracking warnings during system suspend - Ignore attempts to change GCS mode through signal return, which updated the software state without updating the hardware. Changes made through prctl() in the signal handler are preserved. This changes the documented ABI but no known userspace relies on it. Allowing mode changes through both prctl() and signal return also creates confusing interactions, with signal return potentially undoing changes deliberately made by the handler - Extend the AMU constant counter workaround to additional CPUs and add a core cycle counter workaround for Cortex-A715/A720, treating the affected counters as unavailable - Avoid CMA allocations when loading a kexec Image with a non-zero text_offset, fixing an incorrect entry point and a memory leak when freeing the image - Remove a spurious ptrace warning when setting the syscall number of a task in a non-seized group-stop without siginfo" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: suspend: Only track cpuidle context for idle tasks arm64: ptrace: don't warn on missing siginfo in a group-stop arm64: kexec_file: Do not use CMA for images with a non-zero text_offset arm64: errata: Add Cortex-A715/A720 AMU core counter workaround arm64: errata: Extend the workaround for broken AMEVCNTR01 counter arm64/gcs: Ignore attempts to change GCS mode during signal return arm64: hugetlb: Prevent write fault livelocks on stale TLB entries arm64: suspend: Save GCS state over suspend arm64: suspend: Save POR_EL0 over suspend
11 daysMerge tag 'erofs-for-7.4-rc3-fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs Pull erofs fixes from Gao Xiang: - Fix stacked fs check for file-backed mounts with extra devices - Disallow file-backed mounts on shared backing inodes - Reset metadata offsets when fsoffset= is used to fix xattr reads inside and outside the metabox in ont shot - Refine on-disk format summary * tag 'erofs-for-7.4-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs: docs: erofs: refine the on-disk overview erofs: reset buf->off in erofs_init_metabuf() erofs: treat files shared by inode_share as stacked erofs: apply the stacked fs check to extra file-backed devices
11 daysdocs, kprobes: Fix bracketManuel Ebner
Remove needless ')' Link: https://lore.kernel.org/all/20261112085511.690900-2-manuelebnerli@mailbox.org/ Fixes: a1dac767622c ("kprobes.txt: standardize document format") Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
12 daysMerge tag 'net-7.4-rc3' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net Pull networking fixes from Jakub Kicinski: "Including fixes from netfilter, wireless and bluetooth. Previous releases - regressions: - tcp: rate limit receive queue collapsing - raw: fix ICMP unreachable sent when receive queue is full - eth: bnxt_en: take RTNL before netif_close() when aborting FW reset Previous releases - always broken: - tcp: - bound snd_cwnd_clamp to TCP_MAX_SND_CWND - number of fixes for TCP Fast Open - gro: - invalidate frag0 after a pull - avoid parsing headers from shared fragments - cipso: stop modifying live ip_options_rcu - udp: do not use a cross-family sk_rx_dst in early demux - fou: gue: check IP version of held packets for direct IP encapsulation - skbuff: preserve fclone lifetime when freeing stolen heads - eth: - mlx5e: - fix crashes on queue stats access to queues without stats - SHAMPO, disable end padding when relaxed ordering is - ena: keep the RX buffer mapped if skb allocation fails" * tag 'net-7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (227 commits) selftests: net: add a test for NSH GSO nsh: limit recursion in nsh_gso_segment() selftests: tls: Cover the cap on consecutive empty records selftests: tls: Extend coverage for zero-length records selftests: tls: Skip the zero_len tests when TLS is unavailable tls: Consume empty data records in tls_sw_splice_read() tls: Break the connection after a burst of empty data records net: phy: c45: select BASE-T1 type for the forced speed net/mlx5e: Fix false WARN_ON_ONCE in flow steering cleanup on RX init failure net/mlx5e: IPsec, don't match upper proto selectors in crypto offload TX tcp: fix request_sock use-after-free during Fast Open accept() net: usb: cdc_ncm: don't underflow the NDP room check net: netns: fix INT_MAX nsid cleanup amt: use ipv6_hdr() in amt_mldv1_leave_handler() af_unix: Inherit SO_INQ in unix_stream_connect() tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_check_req(). mailmap: add entries for Hangbin Liu net: virtio: validate outer protocol of UDP tunnel GSO packets tun: clear stale skb->protocol of NAPI frags skbs net: virtio: fix UDP tunnel GSO header of VLAN tagged packets ...
12 daysarm64: errata: Add Cortex-A715/A720 AMU core counter workaroundBeata Michalska
On Cortex-A715 (erratum 2738462) and Cortex-A720 (erratum 2738461), the AMEVCNTR00 counter may continue incrementing while the core remains in WFE with the clocks being enabled. The resulting core cycle count may become unreliable. Add a workaround that effectively treats the AMU counter as unavailable. Cc: <stable@vger.kernel.org> Signed-off-by: Beata Michalska <beata.michalska@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
12 daysarm64: errata: Extend the workaround for broken AMEVCNTR01 counterBeata Michalska
The erratum causing significant inaccuracies in the AMU CNT_CYCLES counter due to WFI/WFE has been identified in additional microarchitectures. Extend the existing workaround to cover these implementations, which are affected by the following errata: - ARM Cortex-A725 erratum 3821522 (SDEN-2832921) - ARM Cortex-A720 erratum 4689339 (SDEN-2439421) - ARM Cortex-A720AE erratum 4689340 (SDEN-3090091) - ARM Neoverse N3 erratum 4689341 (SDEN-3050973) - ARM C1-Pro erratum 4689344 (SDEN-3273080) Cc: <stable@vger.kernel.org> Signed-off-by: Beata Michalska <beata.michalska@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
12 daysarm64/gcs: Ignore attempts to change GCS mode during signal returnMark Brown
If userspace tries to update the GCS mode as part of signal return then we update the thread state but don't update GCSCRE0_EL1, meaning the change does not take effect. We may also get issues for other tasks on context switch since we suppress writes of the register if the two tasks have the same mode. Since no currently known userspace tries to use this functionality close this by ignoring any attempt to change the mode through signal return. The GCS mode for the current thread can be changed using the prctl() interface and will be preserved on signal return, allowing updates to the mode from the signal handler. Reported-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/as-8IqsbMbOBo5Oq@arm.com Suggested-by: Catalin Marinas <catalin.marinas@arm.com> Fixes: 16f47bb9ac8a ("arm64/signal: Expose GCS state in signal frames") Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
12 daysMerge tag 'pm-7.4-rc3' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm Pull power management fixes from Rafael Wysocki: "These address a few issues in the cpufreq core and drivers, including issues actually seen in the field, a few issues related to runtime PM, including a false-positive warning introduced relatively recently and a long-standing defect in the runtime PM core code related to autosuspend, and revert a problematic recent update of the intel_rapl power capping driver. Specifics: - Revert a recent update of the intel_rapl power capping driver that caused perf to return bogus values (Dennis Chen) - Fix the synchronization of boost state updates in cpufreq (Christian Loehle) - Fix issues related to system suspend-resume synchronization in the cpufreq core and intel_pstate driver (Rafael Wysocki) - Fix P-state index mismatch in extract_io() in the ACPI cpufreq driver on systems with defective _PSS (Li RongQing) - Fix issues related to target frequency caching in cpufreq (Rafael Wysocki) - Prevent a false-positive warning in pm_runtime_remove() introduced by a previous fix during the 7.0 development cycle (Zhou Minqiang) - Extend a recent improvement related to the handling of suppliers during device runtime-suspend to some previously missed cases in which it is relevant for consistency (Brian Norris) - Update runtime PM documentation to reflect new behavior after recent changes (Stanley Jhu) - Add last_busy timestamp updates for devices requested to resume from runtime suspend that are missing if those devices are not actually suspended (Rafael Wysocki)" * tag 'pm-7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: Revert "powercap: intel_rapl: Expose all package CPUs in PMU cpumask" PM: runtime: Update last_busy in rpm_resume() for active devices cpufreq: Fix updates of cached resolved frequency and index cpufreq: Cache post-resolution target frequency in __resolve_freq() cpufreq: acpi-cpufreq: fix P-state index mismatch in extract_io() cpufreq: Serialize global boost updates cpufreq: Preserve global boost state on failed updates PM: runtime: Update runtime_pm.rst for non-fatal resume errors PM: runtime: Only queue an idle check for RPM-linked suppliers (part 2) PM: runtime: Fix check_flush_dependency warning from pm_runtime_remove cpufreq: intel_pstate: Use rdmsrq_safe() to read MSR_MISC_PWR_MGMT cpufreq: intel_pstate: Clear last written P-state value on suspend cpufreq: Force passing target frequency to driver during resume cpufreq: Improve suspend-resume synchronization cpufreq: Hold the policy write lock when changing boost state
12 daysMerge branches 'pm-cpufreq' and 'pm-runtime'Rafael J. Wysocki
Merge cpufreq fixes and fixes related to runtime PM for 7.4-rc3: - Fix the synchronization of boost state updates in cpufreq (Christian Loehle) - Fix issues related to system suspend-resume synchronization in the cpufreq core and intel_pstate driver (Rafael Wysocki) - Fix P-state index mismatch in extract_io() in the ACPI cpufreq driver on systems with defective _PSS (Li RongQing) - Fix issues related to target frequency caching in cpufreq (Rafael Wysocki) - Prevent a false-positive warning in pm_runtime_remove() introduced by a previous fix during the 7.0 development cycle (Zhou Minqiang) - Extend a recent improvement related to the handling of suppliers during device runtime-suspend to some previously missed cases in which it is relevant for consistency (Brian Norris) - Update runtime PM documentation to reflect new behavior after recent changes (Stanley Jhu) - Add last_busy timestamp updates for devices requested to resume from runtime suspend that are missing if those devices are not actually suspended (Rafael Wysocki) * pm-cpufreq: cpufreq: Fix updates of cached resolved frequency and index cpufreq: Cache post-resolution target frequency in __resolve_freq() cpufreq: acpi-cpufreq: fix P-state index mismatch in extract_io() cpufreq: Serialize global boost updates cpufreq: Preserve global boost state on failed updates cpufreq: intel_pstate: Use rdmsrq_safe() to read MSR_MISC_PWR_MGMT cpufreq: intel_pstate: Clear last written P-state value on suspend cpufreq: Force passing target frequency to driver during resume cpufreq: Improve suspend-resume synchronization cpufreq: Hold the policy write lock when changing boost state * pm-runtime: PM: runtime: Update last_busy in rpm_resume() for active devices PM: runtime: Update runtime_pm.rst for non-fatal resume errors PM: runtime: Only queue an idle check for RPM-linked suppliers (part 2) PM: runtime: Fix check_flush_dependency warning from pm_runtime_remove
12 daysdocs: erofs: refine the on-disk overviewGao Xiang
The existing on-disk summary mainly describes inode and shared xattr metadata views, leaving the overall layout and design rationale unclear. Expand the summary and refine the terminology and wording while keeping the section a high-level overview. Assisted-by: chatgpt:gpt-6.1-sol Reviewed-by: Chengyu Zhu <hudsonzhu@tencent.com> Signed-off-by: Gao Xiang <xiang.gao@docker.com>
12 daysMerge tag 'vfs-7.4-rc3.fixes.2' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs Pull more vfs fixes from Christian Brauner: - inode: Let the shrinker reclaim inodes with I_METADATA_WRITEBACK like any other clean inode and have evict() write out what the bit tracks unless the inode is being deleted. Since v7.3 ext2, ext4 without a journal, fat, udf and minix set I_METADATA_WRITEBACK when they copy an inode into its buffer and only fsync() and friends clear it again. inode_lru_isolate() took such inodes off the LRU expecting something to put them back once the bit was gone but nothing ever did. So they couldn't be reclaimed until something fsynced them or the filesystem was unmounted. On ext4 without a journal an atime update was enough to pin an inode, and creating 60000 small files in a memory cgroup limited to 96M got the task OOM killed after about 43000 of them. Now all 60000 get created. - dcache: - Give d_set_mounted() a seqlock of its own that d_invalidate() waits on after unhashing the dentry. Since v6.17 d_set_mounted() doesn't bump the seqcount of rename_lock anymore, so a mount racing d_invalidate() could end up below the unhashed directory. Nobody can reach it there and it pins the subtree until the mount namespace goes away. With a FUSE directory 3000 levels deep 151 of 200 bind mounts racing FUSE_NOTIFY_INVAL_ENTRY ended up there. - Only take busy secondary roots off ->s_roots in do_one_tree() so that umount waits for a racing eviction of an idle one. Since v7.3 it didn't, which ended in busy inodes after unmount and an iput() on a dead superblock. - Make a disconnected dentry a secondary root when the mount on it goes away so that umount finds it and waits for its eviction. With CAP_DAC_READ_SEARCH such a dentry can be mounted on via open_by_handle_at() and move_mount() and umount racing its eviction ended the same way. - splice: - Remove pipe buffer stealing as you and David suggested. fuse and virtio_console were the only users of ->try_steal() and now always copy, as they already did when a steal failed. Stealing took page cache folios out of their files and turned pages into page cache folios and back. SPLICE_F_GIFT and SPLICE_F_MOVE are still accepted and fuse still advertises FUSE_SPLICE_MOVE so servers that ask for it mount as before. - Clamp a ->write_iter() result that is larger than the iterator in iter_file_splice_write() instead of only warning about it. Otherwise the pipe releases buffers past its head. - ns: -Allocate the namespace id before calling the namespace_init LSM hook that was added this merge window. Landlock now logs the allocated id instead of zero when it denies the creation of a namespace. -Don't mark the arguments of the namespace_init and namespace_free hooks as trusted for bpf LSM programs. Both see namespaces that are only partially set up or on their way out. - proc: Don't let proc_sys_call_handler() report more bytes written than it was passed when a cgroup/sysctl bpf program replaced the value with a longer one. A splice() into the sysctl file then walked past the pipe head. - coda: Pass the append state of each write on to the container file with RWF_APPEND or RWF_NOAPPEND. coda_open() sets O_APPEND on the container file after its iocb flags were cached, so an O_APPEND write overwrote existing data instead of appending. - adfs: Reject big directory entries in adfs_fplus_getnext() whose name doesn't fit into the name buffer. A crafted image overflowed it on the stack. * tag 'vfs-7.4-rc3.fixes.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: (28 commits) nstree: drop ns_tree_add_raw() ns: allocate the namespace id before the namespace_init hook bpf: don't mark namespace_init and namespace_free arguments as trusted splice: replace nosteal_pipe_buf_ops with default_pipe_buf_ops splice: remove pipe buffer stealing fuse: don't move pipe buffers into the page cache virtio_console: copy pipe buffers in splice_write() fs/adfs: bound directory entry name length in adfs_fplus_getnext() dcache: let umount find a disconnected ex-mountpoint dcache: wait for a racing eviction of a secondary root dcache: let d_invalidate() wait for a d_set_mounted() in flight fat: drop mmb_sync() from fat_evict_inode() udf: drop mmb_sync() from udf_evict_inode() minix: drop mmb_sync() from minix_evict_inode() ext4: drop mmb_sync() from ext4_evict_inode() ext2: drop mmb_sync() from ext2_evict_inode() fs: don't strand I_METADATA_WRITEBACK inodes outside the LRU fs: set I_METADATA_WRITEBACK in mmb_mark_buffer_dirty() udf: don't allocate the inode block in udf_sync_inode_metadata() minix: don't read the inode block in minix_sync_inode_metadata() ...
13 daysns: allocate the namespace id before the namespace_init hookChristian Brauner
Currently the namespace id is allocated only after __ns_common_init() has called the namespace_init LSM hook. Most namespace types allocate it in ns_tree_add() right before the namespace is added to the namespace trees. So the namespace_init hook always sees an id of zero. The namespace id is the only identifier of a namespace that is never recycled. A bpf LSM wants to use it to track a namespace from namespace_init until namespace_free, e.g., by using it as the key into a map that associates data with the namespace. The inode number doesn't work for that as it is quickly recycled. So allocate the id in __ns_common_init() before calling the namespace_init hook. Every namespace then has its id by the time it is added to the namespace trees. The initial namespaces still get their fixed ids, either statically from NS_COMMON_INIT() or for init_net from ns_common_init(). So ns_tree_add() doesn't need to allocate an id anymore. Ids are still handed out in creation order so mnt_ns_loop() keeps working. Mount and ipc namespaces already allocated their id right after ns_common_init() anyway. If creating the namespace fails after the id has been allocated the id is simply never used. Landlock logs the namespace id when it denies the use of a namespace. For a denied namespace creation that used to be zero. Now it's the id that was allocated for the new namespace. That namespace never becomes visible to userspace but it's the same id that other LSMs see in namespace_init. Update the Landlock documentation and selftests accordingly. The selftests can't know the id of a namespace whose creation was denied so they only check that it isn't zero. While at it, drop ns_tree_gen_id() as it has no users left. Reproducer, 100 user and uts namespaces: bpftrace -e 'fentry:bpf_lsm_namespace_init { @[args.ns->ns_id ? "set" : "zero"] = count(); }' & for i in $(seq 100); do unshare -Uu true; done before: @[zero]: 200 after: @[set]: 200 Fixes: f675d2e95569 ("lsm: add LSM blob and hooks for namespaces") Cc: stable@kernel.org # mainline only Link: https://patch.msgid.link/20261029-work-security-namespace_free-v2-4-65591dbba7b3@kernel.org Reviewed-by: Mickaël Salaün <mic@digikod.net> # Landlock changes Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
14 daysMerge tag 'vfs-7.4-rc3.fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs Pull vfs fixes from Christian Brauner: - libfs: Make readdir on tmpfs walk the offset tree in offset order instead of d_children to avoid skipping entries or relisting the whole directory It's faster too. Listing a million entries takes 114ms instead of 146ms, and 113ms instead of 470ms with four processes listing in parallel - iomap: Finish the ->iomap_next() conversion that started in v7.3 The nilfs2 and fuse ext_map iomap code added this merge window is converted so now we can remove the ->iomap_begin()/->iomap_end() fallback. We waited until the new iomap users from other trees were in mainline otherwise this would have been very messy - errseq: Retry with the current value when the cmpxchg() in errseq_check_and_advance() fails to avoid an old value coming back later hiding the errors - aio: Hold an extra count for exit_aio() itself so it can't return before the last free_ioctx_reqs() callback has called complete() - pidfd: Fail the namespace ioctls with EREMOTE unless the target is visible in the caller's pid namespace like PIDFD_GET_INFO does - eventpoll: Wake the next waiter when a woken waiter returns early because of a fatal signal to avoid sleeping forever - backing-file: Pass RWF_NOAPPEND on to synchronous writes to the backing file - initrd: Flush the deferred fput() of the ramdisk file before mounting root - iov_iter: Take an unsigned long segment count in import_iovec() The upper 32 bits of the count passed to readv(), writev() and friends were dropped before the UIO_MAXIOV check - splice: Advance the pipe tail before checking for a full bvec array in splice_to_socket(). The last buffer was counted again, so MSG_MORE was set although the pipe was empty and small TCP transfers waited for the cork timeout - vfs: - Reject negative offsets for SEEK_DATA and SEEK_HOLE in default_llseek() and use must_set_pos() for its whence handling - Only clear tv_nsec in timestamp_truncate() when clamping changed the seconds. Timestamps whose seconds were exactly at a filesystem time limit lost their subsecond part - Don't leak the kernel-internal STATX_ATTR_CHANGE_MONOTONIC in stx_attributes_mask - Clamp the FIONREAD result to the int range so a file with 4 GiB left isn't reported as empty - Fix the SEEK_CUR f_lock check - selftests: Fix the statmount and mount_setattr tests on 32-bit and s390, build the fchmodat2 and openat2 tests without sanitizers when the toolchain lacks the runtimes and fix a clang warning in the mount-notify test - docs: Fix a docutils warning in porting.rst * tag 'vfs-7.4-rc3.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: (28 commits) fs: fix the SEEK_CUR f_lock condition splice, net: avoid MSG_MORE when the bvec array fills aio: don't let exit_aio() return before complete() is done fs: porting.rst: use literal string to avoid warning selftests/fs/mount-notify: fix the indentation in the fsmount test selftests: probe for sanitizer support in fchmodat2 and openat2 selftests/mount_setattr: build with a 64-bit off_t selftests/statmount: fix format warnings on 32-bit and s390 fs: use must_set_pos() in default_llseek() fs: reject negative offsets for SEEK_DATA and SEEK_HOLE in default_llseek() pidfd: restrict task access ioctls to the caller's pid namespace fs: clamp FIONREAD result to int range eventpoll: wake the next waiter when a woken waiter is killed statx: don't leak STATX_ATTR_CHANGE_MONOTONIC in stx_attributes_mask vfs: preserve subsecond timestamps at filesystem time limits iov_iter: take an unsigned long segment count in import_iovec() lib/tests: errseq: add a concurrent check_and_advance test errseq: don't let errseq_check_and_advance() hide later errors backing-file: pass RWF_NOAPPEND to synchronous writes initrd: flush deferred fput() before mounting root ...
14 daysovl: follow lower to lowerdata redirects from any lower layerGiuseppe Scrivano
Commit 5ef7bcdeecc9 ("ovl: relax redirect/metacopy requirements for lower -> data redirect") allowed following redirects from a lower layer to a data-only layer without redirect_dir=follow and metacopy=on, so that data-only layers can be used with userxattr. That fix was incomplete. Without metacopy=on, a metacopy file with an absolute redirect into a data-only layer is followed only from the lowest lower layer. From any other lower layer, the lookup fails with EPERM. That commit also changed the behavior of redirect_dir=nofollow without making it visible to users. With data-only layers, some redirects are followed, although the mount options show redirect_dir=nofollow, or show nothing when that is the default. Add redirect_dir=followdata, which follows only redirects from lower to lowerdata, and select it when there are data-only layers, unless redirect_dir=follow or redirect_dir=on is in effect, so the redirect follow mode in effect is shown in /proc/self/mountinfo. Without metacopy=on, the absolute redirect of a lower metacopy file stops the lookup in the lower layers and the data is looked up in the data-only layers. Data-only layers cannot be used without following redirects, so reject an explicit redirect_dir=nofollow with data-only layers. Fixes: 5ef7bcdeecc9 ("ovl: relax redirect/metacopy requirements for lower -> data redirect") Cc: stable@vger.kernel.org Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
2026-11-09docs: netdev: fix iproute2 process documentationWillem de Bruijn
The instructions on sending patches to iproute2 span both netdev and bpf docs, contain outdated references and miss some instructions. Address this: - Move all info to maintainer-netdev - Add a link in bpf_devel_QA to this location - Update URLs to git repositories - Update URLs to patchwork instance and delegates - Update subject prefix rules - Add suggestion to Cc: maintainers - Add pointer to iproute2 MAINTAINERS - Add pointer to iproute2 README.devel Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20261105184510.3230744-1-willemdebruijn.kernel@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-09Merge tag 'probes-fixes-v7.4-rc2' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace Pull probe fixes from Masami Hiramatsu: "Fix registration and unregistration error handling: - Release the instruction slot via arch_remove_kprobe() and propagate the error code when arm_kprobe() fails in __register_kprobe() instead of leaking the slot and returning 0. - Skip rethook_free() and kretprobe holder cleanup in unregister_kretprobes() when __unregister_kprobe_top() fails, and clear rp->rh after synchronize_rcu() to avoid double free and NULL pointer dereferences. - Resolve the target address up-front in register_kretprobe() and check for re-registration before allocating resources so symbol_name-based re-registration does not corrupt the active kretprobe on error. Fix optprobe state transitions during forced unoptimization: - Disarm a disabled optprobe in unoptimize_kprobe() when forced unoptimization moves it directly to a cooling or freeing list, for preventing breakpoint callback of freed probes. - Skip disarming unhashed optprobes in the optimizer dispatch path so a newly registered probe at the same address does not get disarmed (or have freed module text written to). - Keep a reused cooling optprobe marked disabled in reuse_unused_kprobe() so register_aggr_kprobe() or enable_kprobe() properly arms it, and skip redundant force-unoptimization cleanup for already-unoptimized cooling probes. Fix symstr buffer overflow and eprobe triggers: - Format symstr symbols into a temporary buffer and copy only up to the reserved field length (updating __data_loc accordingly) to prevent overwriting the trace record if a probed pointer changes between sizing and storing passes. - Install and remove the eprobe event trigger for each trace instance file that enables the eprobe rather than only on first enable and last disable, so secondary instances record events and disabled triggers do not reference freed eprobes. Replace printk() with trace_printk() in probe handlers: - Replace printk() and stack_trace_print() with trace_printk() and trace_dump_stack() in kprobe and fprobe sample modules, and depend on CONFIG_EVENT_TRACING. - Document in kprobes.rst and fprobe.rst that calling printk() directly from probe handlers can deadlock on console or scheduler locks and recommend trace_printk() instead" * tag 'probes-fixes-v7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: kprobes: Arm reused optprobe on cooling list kprobes: Do not disarm unhashed optprobe on dispatch kprobes: Disarm disabled optprobe on forced unoptimization tracing/eprobe: Install the trigger for every instance that enables the eprobe tracing/probes: bound symstr stores to reserved length docs: trace: Warn against using printk() in probe handlers samples/fprobe: Use trace_printk() and trace_dump_stack() samples/kprobes: Use trace_printk() in probe handlers kprobes: Validate re-registration earlier in register_kretprobe() kprobes: Fix double free and NULL deref in unregister_kretprobes() kprobes: Fix error return and slot leak in __register_kprobe()
2026-11-09NFS/localio: give the LOCALIO probe a short timeout of its ownMike Snitzer
The LOCALIO probe clones the NFS client with rpc_bind_new_program(), which NULL-pings the new program before the probe sends UUID_IS_LOCAL. Both calls use the mount's timeout. With timeo=600 and the default retrans, a server that does not answer the LOCALIO program holds each probe for about 170 s. The client then logs "nfslocalio: server ... not responding, timed out". On such a server, one mkdir took about 170 s of a 202 s run and ended when the probe gave up. Give the probe a soft timeout of its own, with no retries and no log message. The new nfs module parameter localio_timeout sets it in seconds, 10 by default and at most 600. Set it on a private clone of the NFS client before rpc_bind_new_program(), so that the ping uses it as well. Clear cl_noretranstimeo, which NFSv4 mounts set, because with it a sent call does not time out while the connection stays up. With localio_timeout set to 0, the probe uses the NFS client's timeouts, as before. The probe still shares the NFS client's transport and runs beside its RPCs. The NFS client's own timeouts do not change. Tested through a proxy that drops every call to the LOCALIO program: the probe gave up after 10.6 s and logged nothing. With localio_timeout=0 it took 182.9 s and logged the message above. The probe still succeeds against a server that supports LOCALIO: with no proxy, a 64 MiB O_DIRECT write through LOCALIO sent no WRITE RPCs. Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
2026-11-09NFS/localio: probe again for LOCALIO when localio_enabled is set to YMike Snitzer
localio_enabled is checked on every I/O. Setting it to N sends the next I/O of every client over the network, and setting it back to Y resumes LOCALIO for a client that uses it. But a client that probed while localio_enabled was N was disabled by the probe, and nothing probes it again: NFSv3 probes again only when nfs3_localio_probe_throttle is set, and NFSv4 only after state recovery. Such a client stays on the network after localio_enabled is set to Y. Give localio_enabled a set handler that, on a change from N to Y, queues a probe for every ready client, in every network namespace, that does not use LOCALIO. On the module command line there are no clients yet, and nothing is probed. Tested with NFSv3 and NFSv4.2 on a loopback mount: a client mounted with localio_enabled=N sent its writes over the network, and after localio_enabled was set to Y it sent none. Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
2026-11-09tcp: rate limit receive queue collapsingEric Dumazet
When a socket is over its receive buffer limit and its sk_rcvbuf can not grow, every incoming segment that needs memory goes through tcp_prune_queue(), which runs tcp_collapse_ofo_queue() and tcp_collapse() on the receive queue. Both walk their whole queue, even when there is nothing left to collapse. A peer can trigger this walk per packet, without refilling memory: 1) The segment lands last in the out-of-order queue. Since commit b0e01253a764 ("tcp: refine tcp_prune_ofo_queue() logic"), tcp_prune_ofo_queue() drops nothing, the segment is dropped and the queues are unchanged. The peer can send it again forever. 2) The segment lands second to last: one skb is pruned, and one small segment fills that space again. 3) The out-of-order queue is empty and the receive queue alone is over the limit (application not reading). Collapsing frees nothing, the out-of-order segment is dropped, and the window is not closed. 4) Collapsing frees just one skb, enough to queue the segment. The next segment is over the limit again. Only allow a collapse if at least 1/8 of sk_rcvbuf of new memory was queued in the receive queues since the previous collapse. This restores the "12.5 % of the queue capacity" amortization of the 2018 SegmentSmack fixes (CVE-2018-5390), using the same unit as the sk_rcvbuf limit, so that peers sending small (bloated) segments are not penalized. The credit is the net growth of sk_rmem_alloc in tcp_queue_rcv() and tcp_data_queue_ofo(), so that: - Coalescing a segment into the tailroom of the previous skb charges no memory, and earns no credit. - An out-of-order segment replacing or covering queued skbs only earns the memory it adds. - Duplicates earn nothing. - Data moved from the out-of-order queue to the receive queue (tcp_ofo_queue()) is not credited twice. In-order data is credited too, so that a receive queue filled by bloated in-order segments can still be collapsed when a hole appears. In-order segments are rate limited as well: a peer could otherwise send small in-order segments that each trigger a collapse freeing a single skb, enough to queue the segment, while the out-of-order queue holds many skbs that can not be collapsed. The credit is tracked in a new u32 tp->rcv_collapse_credit, placed in a hole of the tcp_sock_write_rx group: no other field moves, and tcp_sock size is unchanged. tcp_queue_rcv() now samples sk_rmem_alloc, and writes the credit until it saturates at sk_rcvbuf, so that the fast path stops writing it after a full buffer of new memory. Saturating at the goal would not work: sk_rcvbuf, and the goal with it, can grow later (for instance in tcp_clamp_window(), just before the goal is checked), and a socket over its limit can not earn more credit until the application reads. When collapsing is not allowed, tcp_prune_queue() goes directly to tcp_prune_ofo_queue(), which is cheap in the cases above. A regular flow can see a difference when it goes over its limit before 1/8 of sk_rcvbuf of new memory was queued since the previous collapse: out-of-order skbs can be pruned (even for an in-order segment filling a hole), and an in-order segment that still does not fit is dropped, with a zero window advertised, where a collapse might have made room. Fixes: b0e01253a764 ("tcp: refine tcp_prune_ofo_queue() logic") Reported-by: Chris Mason <mason@kernel.org> Signed-off-by: Eric Dumazet <edumazet@kernel.org> Reviewed-by: Willem de Bruijn <willemb@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Neal Cardwell <ncardwell@google.com> Link: https://patch.msgid.link/20261105124043.1543405-1-edumazet@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-09spi: dt-bindings: pl022: Allow a power domainLinus Walleij
Ux500 PL022 instances sit in switchable EPODs. (Electric Power Domains.) Allow the single power domain used by these controllers. Found with CHECK_DTBS=1. Signed-off-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20261107-ux500-pl022-power-domain-v1-1-d51913109afa@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
2026-11-09regulator: dt-bindings: fan53555: Add Silergy SYM827Ben Grisdale
Add a compatible string for the Silergy SYM827, a 6A synchronous step-down converter with a similar I2C register map to the FAN53555. Signed-off-by: Ben Grisdale <bengris32@protonmail.ch> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20261106-fan53555-silergy-sym827-support-v1-1-4e871c7f475c@protonmail.ch Signed-off-by: Mark Brown <broonie@kernel.org>
2026-11-08Merge tag 'x86-urgent-2026-11-08' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull x86 fixes from Ingo Molnar: - Select the BHI mitigation based on the attack vector properly (Breno Leitao) - Fix i386-gcov build bug in csum_ipv6_magic() due to overly strict asm constraints that cannot be met in that build mode (Rosen Penev) - Fix Vmware-guest i386 high-bandwidth hypercall arguments under UNWINDER_GUESS & disabled frame-pointers (Zack Rusin) - Fix resctrl AMD ABMC counter ID field width (Babu Moger) - Fix restctrl pqos tool ABI breakage by reverting the mbm_assign_mode to default mode at boot (Babu Moger) - Initialize wall clock in get_rtc_noop() (Naman Jain) - Fix ptrace historic ABI quirk regression (Thomas Gleixner) - Add Drew Fustini as resctrl reviewer and Ben Horgan as fs/resctrl reviewer - Clear SEV RMPOPT when segmented RMP is disabled by firmware but is advertised as available (Ashish Kalra) - Set up SEV RMPOPT only on an active SNP host (Ashish Kalra) - Don't emit KCFI_REFERENCE() in modules (Ridge Lomont) - Ignore negative NMI handler durations (Breno Leitao) - Fix off-by-one error in boot-time sme_clear_pgd() (Thorsten Blum) - Fix ASID allocation bug (Chris Mason) * tag 'x86-urgent-2026-11-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/mm: Fix global ASID handed out to two processes x86/boot: Fix off-by-one error in sme_clear_pgd() MAINTAINERS: Add Ben Horgan as fs/resctrl reviewer x86/nmi: Ignore negative NMI handler durations x86/kcfi: Don't emit KCFI_REFERENCE() in modules x86/sev: Set up RMPOPT only on an active SNP host x86/sev: Clear RMPOPT when segmented RMP is disabled by firmware MAINTAINERS: resctrl: Add myself as reviewer x86/entry: Fix ptrace regression x86/init: Initialize wall clock in get_rtc_noop() x86,fs/resctrl: Keep mbm_assign_mode in default mode at boot x86/resctrl: Correct ABMC counter ID field width x86/vmware: Fix i386 high-bandwidth hypercall arguments x86/csum: Relax the len and proto constraints in 32-bit csum_ipv6_magic() x86/bugs: Select the BHI mitigation based on the attack vector properly
2026-11-07Merge tag 'devicetree-fixes-for-7.4-1' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux Pull devicetree fixes from Rob Herring: "All of these are patches that didn't get picked up for the merge window. They all fix new warnings because the corresponding .dts changes did get applied - Add Altera Agilex5 DWC3 controller and Raspberry Pi RP1 PWM controller bindings - Make "peer-hub" property optional on cypress,hx3 USB hubs" * tag 'devicetree-fixes-for-7.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: dt-bindings: usb: add Altera Agilex5 DWC3 controller dt-bindings: pwm: Add Raspberry Pi RP1 PWM controller dt-bindings: usb: cypress,hx3: make peer-hub property optional