summaryrefslogtreecommitdiff
path: root/tools/testing
AgeCommit message (Collapse)Author
28 hoursMerge tag 'net-7.4-rc5' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net Pull networking fixes from Paolo Abeni: "Including fixes from WiFi, Bluetooth and CAN. Current release - regressions: - eth: mlx5e: TC, fix a NULL pointer write in the peer flow error path Current release - new code bugs: - xfrm: interface: drop non-IP packets before pskb_inet_may_pull() - eth: b53: use the correct override register 2 Gbps bit Previous releases - regressions: - core: - do not run out of frags in alloc_skb_with_frags() - gso: cow head on tcp fraglist fallback to skb_segment - ipv6: - honor suppress_prefixlength in fib6_lookup() - mcast: do not pass uninitialized bytes to dev_mc_add() - tcp: - don't clear saddr before ->put_port(). - initialize ir_rmt_addr and ir_loc_addr in cookie_v6_check() - mptcp: fix dummy mapping of overlapping segments - bluetooth: - fix use-after-free in mgmt_powering_down() - fix NULL pointer dereference on failed init - wifi: - iwlwifi: fix FW crashes on old devices and with 320 MHz channels - ath10k: revert "stop unanswered temperature reads" - rtw89: fix connection drop on RTL8851BE - eth: - gve: fix checksum state of HW-GRO packets - mana: set a non-zero minimum interrupt moderation, fix TX timeouts - brcm: fix link-local detection with a prepended tag Previous releases - always broken: - core: - initialize sk_peer_lock in cloned sockets - release netpoll dev_lock when NETDEV_PRE_UP vetoes an open - gso: fall back to skb_segment when fraglist cannot satisfy checksum - tcp: fix negative sk_forward_alloc after MSG_ZEROCOPY append - udp: only quit inuse scan early on identical SO_REUSEPORT sockets - ipv4: fix conntrack defrag forwarding after ip_frag_reinit() - vsock/bpf: release sock lock while waiting for data in recvmsg, fix deadlock - mptcp: a bunch of fixes for send stalls after fallback and TFO - can: avoid RTNL stalls in CAN_RAW, CAN_ISOTP and CAN_BCM - eth: - tun: bound the NAPI receive queue - tg3: fix heap overflow in unbuffered NVRAM write path - mlx5: DR, fix out-of-bounds write when sync to HW fails - ionic: fix TX stalls on TSO skbs larger than the TX ring - bcm4908: a bunch of TX/RX ring fixes Misc: - add Willem de Bruijn to networking maintainers" * tag 'net-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (152 commits) udp: only quit inuse scan early on identical SO_REUSEPORT sockets net: dsa: tag_brcm: fix link-local detection with a prepended tag tg3: Fix heap overflow in unbuffered NVRAM write path tg3: Skip management FW version when APE firmware is not ready tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported selftests: tls: add a poll test for a queued KeyUpdate tls: don't hide a queued KeyUpdate from poll() xfrm: interface: drop non-IP packets before pskb_inet_may_pull() net/tcp-ao: fix reset key lookup for IPv4 segments on IPv6 listeners tcp: fix negative sk_forward_alloc after MSG_ZEROCOPY append tcp: Don't clear saddr before ->put_port(). vhost/net: Fix receive queue test in busy poll ipv6: mcast: do not pass uninitialized bytes to dev_mc_add() tipc: restore write readiness when a socket's group goes away mptcp: gate diag sequence counters on CAP_NET_ADMIN net: dsa: felix: fix NULL pointer dereference in felix_port_enable() selftests: netfilter: cover IPv6 FIB prefix suppression ipv6: Honor suppress_prefixlength in fib6_lookup() ptp: vmclock: keep the device state until the last file is closed tun: bound the NAPI receive queue ...
35 hoursselftests: tls: add a poll test for a queued KeyUpdateFelipe Pereira Stival
Check that poll() reports a read event when a recv() for data has decrypted and queued a KeyUpdate. Once the KeyUpdate has been read, check that poll() doesn't report a record sent with the new key. Signed-off-by: Felipe Pereira Stival <v0idpwn@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Link: https://patch.msgid.link/20261118-v0idpwn-tls-poll-parked-keyupdate-v1-2-8e25101e7be6@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2 daysMerge tag 'sched_ext-for-7.4-rc4-fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext Pull sched_ext fixes from Tejun Heo: - Scheduler enable and disable could race with tasks changing class: on enable, a task could switch to sched_ext before the scheduler core started picking sched_ext tasks and be left runnable while its CPU went idle. On disable, an RT task could starve the tasks falling back to the fair class and stall the disable itself. - BPF schedulers failed to load on architectures whose BPF JIT doesn't support private stacks, such as riscv64. Only sub-schedulers need them and are now refused there instead. - The debug dump and CPU ID layout callbacks could call kfuncs that move tasks around. They are now rejected at load time. - Smaller fixes: a task's first enqueue after fork didn't tell the BPF scheduler that CPU selection had already run, and two kfuncs raised a false RCU lockdep warning in BPF timer callbacks. * tag 'sched_ext-for-7.4-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext: sched_ext: Attach fair_server before tasks fall back to fair on disable selftests/sched_ext: Add unlocked_kfunc test sched_ext: Don't allow unlocked kfuncs from ops.dump() and ops.init_cids() sched_ext: Don't request private stacks the JIT can't provide sched_ext: Fix suspicious RCU usage in KF_RCU_PROTECTED kfuncs sched/core: Pass ENQUEUE_RQ_SELECTED on initial enqueue sched_ext: Don't route tasks to SCX before __scx_enabled is fully patched
2 daysselftests: netfilter: cover IPv6 FIB prefix suppressionLeonard Lausen
Extend nft_fib.sh using its existing namespaces and counter helper to check that suppress_prefixlength 0 suppresses a default route while retaining a more-specific route. Check that blackhole, unreachable and prohibit routes remain terminal despite a usable route in a later table. Include a blackhole nexthop object to distinguish result reject flags from flags on the FIB entry. Require a positive counter for the expected nftables FIB result. Compare it with the output device or rejection error from an ordinary lookup. Label ruleset-load failures and skip the affected checks when IPv6 prefix suppression or nexthop objects are unavailable. Run these checks after the existing default-table tests so that adding policy rules does not remove coverage of the path without custom IPv6 rules. The router's logging RPF rules have already been removed by then, allowing neighbour discovery during intentionally different reverse-route states. Signed-off-by: Leonard Lausen <leonard@lausen.nl> Link: https://patch.msgid.link/20261117110813.9894-4-leonard@lausen.nl Signed-off-by: Paolo Abeni <pabeni@redhat.com>
3 daysselftests/sched_ext: Add unlocked_kfunc testKuba Piecuch
Add the unlocked_kfunc test to verify verifier-time restrictions on the SCX_KF_ALLOW_UNLOCKED kfuncs. The valid cpu-form and cid-form schedulers verify that ops.init() and ops.exit() can call scx_bpf_create_dsq(), scx_bpf_dsq_move(), scx_bpf_dsq_reenq_task(), and scx_bpf_select_cpu_dfl(). They also verify that ops.dump() can call scx_bpf_dump() and that ops.init_cids() can call scx_bpf_cid_override(). The two negative schedulers verify that the verifier rejects scx_bpf_dsq_move() from ops.dump() and scx_bpf_create_dsq() from ops.init_cids() with -EACCES. Signed-off-by: Kuba Piecuch <jpiecuch@google.com> Signed-off-by: Tejun Heo <tj@kernel.org>
4 daysMerge 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 ...
6 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
6 daysselftests/net: check that a short SO_PEERPIDFD optlen failsChristian Brauner
Cover SO_PEERPIDFD and SO_PEERPIDFD_THREAD with an optlen of 0 to 3: - getsockopt() fails with EINVAL - optlen and the buffer stay untouched - no pidfd is installed in the file descriptor table Check that a full-sized buffer still gets a pidfd. Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org> Reviewed-by: Alexander Mikhalitsyn <alex@amutable.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20261117-work-net-peerpidfd_short_optlen-v1-2-a93f56288501@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
7 daysselftests: drv-net: stats: query timestamping stats while downDimitri Daskalakis
Read timestamping statistics before and after ifdown, to catch drivers that crash while the interface is down. Counters must not go backwards across ifdown; the test does not send timestamped traffic, so a reset is only caught if the counters were already nonzero. Signed-off-by: Dimitri Daskalakis <daskald@meta.com> Link: https://patch.msgid.link/20261117215416.1901246-6-dimitri.daskalakis1@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
7 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 ...
7 daysMerge tag 'fuse-fixes-7.4-rc4' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse Pull fuse fixes from Miklos Szeredi: - Fix bugs reported by Sashiko - Fix a couple of issues introduced in this cycle - Misc bug fixes * tag 'fuse-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse: fuse: limit name size in listxattr fuse: clear the old EOF tail before writeback-cache writes fuse: fix UBSAN warning in fuse_iomap_writeback_range() fuse: skip dcache instantiation for readdirplus names with embedded NUL fuse: preserve ENOTCONN after failed initialization and disconnect fuse: set dentry epoch before making the dentry visible fuse: advertise support for DAX mappings fuse: don't mark inode DAX without CONFIG_FS_DAX fuse: don't pass a NULL inode to fuse_inode_backing() on release virtiofs: zero the reply region of the argument buffer virtiofs: disable request timeout virtiofs: fix use-after-free of fs->tag on device removal fuse: derive short read EOF from the request offset selftests/fuse: test post-EOF page zeroing on copy_file_range() fuse: zero the partial EOF page in copy_file_range() fuse: fix possible UAF in fuse_direntplus_link() fuse: Use d_alloc_trylock() in fuse_direntplus_link()
7 daysMerge tag 'cxl-fixes-7.4-rc4' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl Pull cxl fixes from Dave Jiang: "A small collection of CXL fixes" * tag 'cxl-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl: cxl/port: Fix endpoint RAS error unmasking cxl/test: Free the decoder registry when cxl_test_init() fails cxl/region: Reject a repeat write of an endpoint decoder to targetN cxl/region: Restore a target's position from its slot after sorting
7 daysMerge tag 'kvmarm-fixes-7.4-3' of ↵Paolo Bonzini
git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD KVM/arm64 fixes for 7.4, take #3 * MMU fixes: - 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 * 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 * Misc 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
7 daysMerge tag 'kvm-x86-fixes-7.4-rc4' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini
KVM fixes for 7.4-rcN - 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. - Implement "flush shadow all" on KVM PPC to ensure KVM's mappings are torn down when the VM and/or owning process is dying. - 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. - 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. - Rework the single-vCPU kick logic to fix a bug where KVM would fail to wait for a target vCPU to respond if another in-flight, non-waiting kick changed the vCPU's mode to EXITING_GUEST_MODE. - Clear nVMX's smm.guest_most when freeing nested state, and if a RSM to L2 ultimately fails (and queues a TRIPLE_FAULT to L1).
8 daysselftests/bpf: Test which ctx registers a uprobe prog can writeJiri Olsa
A uprobe program can write only the pt_regs fields that ptrace can set to any value. Add verifier tests for x86-64, arm64 and riscv: - writes to the general registers, the stack pointer and the instruction pointer load - writes to cs, ss, flags and orig_ax on x86-64, to pstate and orig_x0 on arm64, and to status, badaddr and cause on riscv fail with "invalid bpf_context access" - a 4-byte write to the low half of a read-only field fails too - reading a read-only field still works - on x86-64, a kprobe program that writes ctx->flags fails to load Other arches get one test that just loads. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261118084451.12590-3-jolsa@kernel.org
8 daysselftests/bpf: Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutateJiayuan Chen
bpf-gcc fails to load test_trace_iter_unix: Error: #766/6 verifier_sockmap_mutate/test_trace_iter_unix libbpf: elf: skipping section(3) .data (size 0) libbpf: elf: skipping unrecognized data section(18) .comment run_subtest:PASS:obj_open_mem 0 nsec libbpf: prog 'test_trace_iter_unix': relo #0: insn #0 (LDX/ST/STX) accesses field incorrectly. ... libbpf: prog 'test_trace_iter_unix': BPF program load failed: -EINVAL libbpf: prog 'test_trace_iter_unix': failed to load: -EINVAL libbpf: failed to load object 'verifier_sockmap_mutate' run_subtest:PASS:unexpected_load_success 0 nsec validate_msgs:FAIL:1014 expect_msg VERIFIER LOG: ============= 0: R1=ctx() R10=fp0 ; @ verifier_sockmap_mutate.c:124 0: <invalid CO-RE relocation> failed to resolve CO-RE relocation <byte_off> [4] struct bpf_iter__unix (0:0 @ offset 0) processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 ============= EXPECTED SUBSTR: 'cannot update sockmap in this context' GCC only applies preserve_access_index to types that carry the attribute themselves. The anonymous union holding the sock pointer doesn't, so the CO-RE access stops at the union ("0:0") instead of reaching the pointer ("0:0:0"), and libbpf rejects the relocation. Fixes: e16c83fa764f ("selftests/bpf: Add negative test for sockmap update from non-sockmap iter") Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev> Link: https://patch.msgid.link/20261117122417.340562-1-jiayuan.chen@linux.dev
8 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
8 daysMerge tag 'kvm-s390-master-7.4-1' of ↵Paolo Bonzini
git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD KVM: s390: Fixes - Fixes for the arm layer - sashiko: https://sashiko.dev/#/patchset/20261103-s390_arm64_kvm_fixups-v1-0-21c36fedd878%40linux.ibm.com - Fix ESSA instruction handling in migration mode - sashiko: https://sashiko.dev/#/patchset/20261015104822.77062-1-ggala%40linux.ibm.com - Fix crypto instruction no-hook handling - https://sashiko.dev/#/patchset/20261020082534.481867-1-ggala%40linux.ibm.com - Fix selftest for uvdevice
8 daysMerge tag 'net-7.4-rc4' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net Pull networking fixes from Paolo Abeni: "Including fixes from netfilter and Bluetooth. Current release - regressions: - ipvs: honor the overload state and do not enter it forever Previous releases - regressions: - core: - prevent receive header offset overflow during decapsulation - avoid truncated transport header offsets - tcp: - fix NULL pointer dereference when restarting a fast open listener - fix the SO_REUSEPORT bind cache admitting a conflicting socket - sctp: do not free a new asoc peeled off while sendmsg slept - bridge: fix skb leak of reinjected link-local frames - bluetooth: - L2CAP: clear the SDU before the receive callback - vhci: serialize packet reception with device creation - ipvs: - avoid stack overflow from recursive connection expiration - fix problems during connection deletion - eth: - virtio_net: check RX buffer length before DMA sync - gve: fix RX page refcount overflow from INT_MAX pagecnt_bias Previous releases - always broken: - core: make room for the tunnel header in skb_segment_list() - eth: - i40e: fix freeing of TX rings on RX allocation failure - stmmac: fix VXLAN over IPv6 with zero UDP checksum" * tag 'net-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (117 commits) net: prevent receive header offset overflow during decapsulation tcp: bound the rto_min of a route in tcp_rto_min() tcp: clamp the samples in tcp_rcv_rtt_update() tcp: reject RTT samples from TSecr above 120 s tcp: clamp RTT samples in tcp_rtt_estimator() tcp: don't let __tcp_set_rto() return 0 net: make room for the tunnel header in skb_segment_list() udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap() sctp: use skb_set_transport_header_careful() in sctp_v6_err() net: openvswitch: use skb_set_transport_header_careful() in parse_ipv6hdr() ipv6: mcast: use skb_set_transport_header_careful() in ipv6_mc_check_exthdrs() ipv6: gro: limit the number of extension headers net: stmmac: dwmac1000: stop hardware from dropping checksum-error packets net: stmmac: dwmac1000: don't discard frames with only a checksum error net: stmmac: honour Rx checksum errors in the AF_XDP zero-copy path veth: wake the peer txq when deleting NAPI veth: wake a stopped peer txq beyond real_num_tx_queues iavf: add missing PTP adjustment callbacks iavf: fix ASQ command buffer leak on init failure iavf: fix QoS capabilities memory leak ...
8 daysMerge branch kvm-arm64/sysreg-fixes-7.4-2 into kvmarm-master/fixesMarc Zyngier
* kvm-arm64/sysreg-fixes-7.4-2: : \ : System register fixes for 7.4 : : - 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 : / 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 Signed-off-by: Marc Zyngier <maz@kernel.org>
8 daysselftests/landlock: Test namespace denial operationsMickaël Salaün
The namespace trace tests cover creation and entry denials, but only creation exercises the quiet path. This leaves the new ENTER request tag untested through quiet selection and trace dispatch when audit logging is suppressed. Add the missing quiet setns(2) case. Together with the existing cases, this exercises all four combinations of CREATE and ENTER with logged and quieted denials, including each exact namespace_op value. Test coverage for security/landlock is 91.6% of 2894 lines according to LLVM 23. Cc: Günther Noack <gnoack@google.com> Link: https://patch.msgid.link/20261118163254.2554413-4-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
8 dayslandlock: Distinguish namespace creation and entry denialsMickaël Salaün
Landlock reports denied namespace creation and entry with the same internal request type. Before commit 08471914d6bb ("ns: allocate the namespace id before the namespace_init hook"), denied creation carried ID zero and could be distinguished from entry by ID alone. That commit moved ID allocation before namespace_init(), so creation now carries the ID of an unreachable new namespace while entry carries the existing target ID. Namespace IDs are object context, not operation discriminators. Split the request type into creation and entry. Keep the two namespace values together before capability; this renumbers the unreleased capability request in raw and typed trace context. Report namespace_op=create or namespace_op=enter immediately after blockers in namespace audit records and trace event text. Placing the operation before namespace_type and namespace_id lets consumers establish the semantics before interpreting the following namespace context, especially whether namespace_id is the creation-time value or identifies an existing entry target. Keep namespace.use as the policy blocker: the new value only describes the semantic hook context and does not add a policy control. Cc: Günther Noack <gnoack@google.com> Fixes: 15dd86021b57 ("landlock: Enforce namespace use restrictions") Link: https://patch.msgid.link/20261118163254.2554413-2-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
8 daysselftests/landlock: Test PR_SET_SECUREBITS mediationMickaël Salaün
Test that Landlock denies and logs a privileged PR_SET_SECUREBITS change, now that the previous commit routes its CAP_SETPCAP check through the capable hooks, and that an unprivileged change still succeeds. The domain deallocation record must then report exactly one denial, which proves that the unprivileged change was not denied, without relying on a no-record timeout. The check-exec selftests already cover commoncap's securebits semantics. Without the previous commit, this test fails. Cc: Christian Brauner <brauner@kernel.org> Cc: Günther Noack <gnoack@google.com> Cc: Paul Moore <paul@paul-moore.com> Cc: Serge Hallyn <serge@hallyn.com> Link: https://patch.msgid.link/20261118145431.2551578-3-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
8 daysselftests/landlock: Test capability checks outside the capable hookMickaël Salaün
Test the commoncap checks that the previous commits make Landlock restrict: mapping below vm.mmap_min_addr (CAP_SYS_RAWIO) and adding inheritable capabilities (CAP_SETPCAP). Each test checks that the operation needs the capability, then runs it with the capability in four variants: unsandboxed, denied, allowed and unhandled. The mmap_addr tests skip if the architecture rejects the low page before the hook (e.g. 32-bit ARM). Audit tests check that these denials are logged, and that the admin reserve check and allowed uses are not. The admin reserve has no functional test because it depends on vm.overcommit_memory=2, a system-wide setting. Add CAP_SETPCAP and CAP_SYS_RAWIO to the capabilities that the tests may raise. Without the mmap_addr and capset fixes, their denied variants and the denial audit test fail. 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> Link: https://patch.msgid.link/20261118145217.2551053-6-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
8 daysKVM: arm64: selftests: Verify HCR_EL2.NV1 is RES0 when E2H0 is NI_NV1Colton Lewis
In a VHE-only EL2 guest (KVM_ARM_VCPU_HAS_EL2 without KVM_ARM_VCPU_HAS_EL2_E2H0), KVM advertises ID_AA64MMFR4_EL1.E2H0 as NI_NV1, making HCR_EL2.E2H RES1 and HCR_EL2.NV1 RES0. Extend hello_el2 to attempt clearing HCR_EL2.E2H and setting HCR_EL2.NV1 from userspace via KVM_SET_ONE_REG, verifying that HCR_EL2.E2H remains RES1 and HCR_EL2.NV1 is masked to RES0. Add a comment explaining why the check is performed from userspace rather than inside the guest. Signed-off-by: Colton Lewis <coltonlewis@google.com> Link: https://patch.msgid.link/20261118203625.743428-3-coltonlewis@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
9 daysMerge tag 'mm-hotfixes-stable-2026-11-17-19-55' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Pull MM fixes from Andrew Morton: - "maple_tree fixes for 7.3" (Liam R. Howlett): Fix an RCU reader NULL dereference when the tree is emptied during a walk, including /proc/PID/maps racing with munmap(). Add tests and make debug WARN and BUG checks report failures properly - "mm/kasan: Detect double-free involving kfree_rcu_sheaf()" (Kuniyuki Iwashima): Detect double-free when an object enters an RCU sheaf. KASAN could previously miss it until the object was reused, leading to a later free of a live object. Add KUnit tests for the different free orders - "mm: Fix page-table teardown during memory hot-remove" (Muchun Song): Balance page-table constructors and destructors when hot-remove frees tables on x86-64, RISC-V and arm64. This fixes NR_PAGETABLE accounting for tables with and without constructors - "mm/damon: fix watermark state, kunit pid leak and selftest fake pass" (SJ Park): Recompute watermark wait state when DAMON schemes are removed, so kdamond resumes monitoring. Fix a pid reference leak in KUnit and a selftest that reports a skipped run as a pass - An XArray iterator could step backwards when a large page-cache entry was split, sending filemap_map_pages() outside the PTE page it locked. The XArray correction and a filemap bound check prevent out-of-bounds accesses and use-after-free. Another XArray fix prevents lockless walkers from following a parent pointer into a freed node - Userfaultfd now validates the whole write-protection range before changing any VMA, avoiding partial unprotect without waking blocked faults. Failed unmaps now abort queued UFFD_EVENT_UNMAPs; previously they could report a nonexistent unmap, leak the userfaultfd context and leave later operations returning -EAGAIN. A fork fix clears stale uffd PTE bits if the new context is released before its event is read - Moving the hugetlbfs inode trace event before RCU freeing avoids a use-after-free of its superblock. Shmem swapin no longer retries forever on reused swap slots containing a mismatched large swap-cache folio. Swapoff also avoids a cluster-list loop that can soft-lock reclaim and leave swapoff hung - Weighted interleave recalculation now uses one node set throughout, avoiding a divide-by-zero during memory hotplug. Hwpoison holds the folio lock when inspecting its mapping and no longer leaks a folio reference; it also updates poison statistics before notifying rasdaemon through a trace event - Cross-node migration now moves NR_FILE_THPS and NR_KERNEL_FILE_PAGES with page-cache folios, preventing per-node and memcg-node accounting from retaining stale counts or underflowing after the folios are freed * tag 'mm-hotfixes-stable-2026-11-17-19-55' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (27 commits) xarray: fix index jumping backwards in xas_find() userfaultfd: validate the whole range before changing write protection maple_tree: update internal warning and bug_on code maple_tree: test emptying tree while RCU reading maple_tree: fix rcu reader NULL dereference after the tree is emptied mm/vma: read anon_vma carefully in validate_mm() hugetlbfs: move hugetlbfs_free_inode tracepoint to ->destroy_inode() selftests/damon/sysfs_memcg_path_leak: define ksft_skip mm/damon/tests/sysfs-kunit: fix leaked pid reference in add_targets test mm/damon/core: reset watermark wait state on each iteration mm/filemap: stop fault-around when the walk steps back mm: memory-failure: update statistics before emitting the trace event mm/vma: undo userfaultfd unmap preparation when unmapping fails userfaultfd: clear uffd state in child PTEs if uffd is released during fork mm/memory-failure: fix folio refcount leak and min_order_for_split() locking mm/shmem: fix swapin livelock on a mismatched large swap cache folio mm/mempolicy: use one node set for interleave weights xarray: clear the new head's parent before freeing the old head arm64/mm: fix destructor for unconstructed hotplug page tables riscv/mm: fix missing destructor for hotplug PUD tables ...
10 daysselftest: af_unix: Test scm_fds on dgram disconnect.Siddharth Chintamaneni
Add dgram_disconnect_fdinfo in scm_rights.c verifying that scm_fds in /proc/self/fdinfo/<fd> returns to 0 when a connected SOCK_DGRAM socket with queued SCM_RIGHTS datagrams disconnects via connect(AF_UNSPEC) or observes a dead peer in send(). Signed-off-by: Siddharth Chintamaneni <sidchintamaneni@gmail.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20261114162632.16346-3-sidchintamaneni@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
10 daysMerge tag 'powerpc-7.4-2' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux Pull powerpc fixes from Madhavan Srinivasan: - Handle of_property_count_u32_elems() error in parse_thread_groups() - Defer Nemo IRQ initialization - disable watchdog when watchdog_thresh=0 - Reserve a PLT entry for ftrace_regs_caller - powerpc KVM fixes - misc fixes and cleanups Thanks to Amit Machhiwal, Bradley Morgan, Christian Zigotzky, Christophe Leroy, Gautam Menghani, Jiale Yao, Luiz Capitulino, Michael Ellerman, Mohammad Shahid, Nathan Chancellor, Ritesh Harjani, Sasha Levin, Shrikanth Hegde, and Timothy Pearson * tag 'powerpc-7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/perf/vpa-dtl: use GFP_ATOMIC for DTL buffer allocation powerpc32/modules: Reserve a PLT entry for ftrace_regs_caller powerpc/watchdog: disable watchdog when watchdog_thresh=0 selftests/powerpc: override EMIT_TESTS instead of the emit_tests rule powerpc/smp: Handle of_property_count_u32_elems() error in parse_thread_groups() powerpc/pasemi: Defer Nemo IRQ initialization KVM: PPC: Book3S HV: Avoid spurious interrupts caused by LPCR_MER bit KVM: PPC: Book3S HV: Take SRCU read lock around kvmppc_h_page_init() call KVM: PPC: Book3S HV: XICS: Avoid NULL ptr deref in kvmppc_xive_cleanup_vcpu() KVM: PPC: Book3S HV: XICS: Update irq_type for cleanup to work KVM: PPC: Book3S HV: Ensure that calls to idr_alloc are synchronized KVM: PPC: Book3S HV: Disable preemption around host-side HPT lock users powerpc/eeh: NUL-terminate force recovery input
10 dayscxl/test: Free the decoder registry when cxl_test_init() failsAlison Schofield
Decoder registry entries persist across mock device removal to support topology replay. Sashiko review found that if cxl_test_init() fails after decoders are enumerated, the entries leak because cxl_test_exit() is never called. Free the registry entries and destroy the xarray during error unwind. Fixes: f3b1d2260703 ("tools/testing/cxl: Enable replay of user regions as auto regions") Signed-off-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Link: https://patch.msgid.link/20261106222240.958402-1-alison.schofield@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
11 daysselftests: net: Add SO_REUSEPORT bind cache test to bind_wildcard.cJuan Agustin Niccolini
Add a test for the bug fixed by "tcp: Fix the SO_REUSEPORT bind cache admitting a conflicting socket". With a 0.0.0.0 listener on the port, a v6only [::] SO_REUSEPORT socket fills the bind cache, and a dual-stack [::] SO_REUSEPORT socket must then fail to bind with EADDRINUSE. Without the fix: # RUN global.reuseport_v6only_cache ... # bind_wildcard.c:860:reuseport_v6only_cache:Expected ret (0) == -1 (-1) # reuseport_v6only_cache: Test terminated by assertion # FAIL global.reuseport_v6only_cache not ok 1 global.reuseport_v6only_cache With it: # RUN global.reuseport_v6only_cache ... # OK global.reuseport_v6only_cache ok 1 global.reuseport_v6only_cache Signed-off-by: Juan Agustin Niccolini <juanagusnicco@gmail.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Eric Dumazet <edumazet@kernel.org> Link: https://patch.msgid.link/20261111174704.24312-3-juanagusnicco@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
11 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>
11 daysselftests/landlock: Test that layering does not break referGünther Noack
Regression test to exercise that layered Landlock domains do not accidentally deny the LANDLOCK_ACCESS_FS_REFER access right. This used to be the case when layering a non-filesystem ruleset with a filesystem-enforcing ruleset. In that case, REFER operations that would have been allowed for the individual rulesets would get denied when layering the same rulesets. Link: https://github.com/landlock-lsm/linux/issues/67 Link: https://github.com/landlock-lsm/go-landlock/issues/66 Fixes: fff69fb03dde ("landlock: Support network rules with TCP bind and connect") Cc: stable@vger.kernel.org Signed-off-by: Günther Noack <gnoack3000@gmail.com> Link: https://patch.msgid.link/20261113-b4-landlock-refer-nonfs-layer-v3-3-02d7e42bcdfd@gmail.com Signed-off-by: Mickaël Salaün <mic@digikod.net>
12 daysMerge tag 'cgroup-for-7.4-rc2-fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup Pull cgroup fixes from Tejun Heo: - A file notification racing the file's removal could re-arm the notification timer after it was shut down, corrupting the timer wheel or firing on freed memory. - The v1 freezer could leave an exiting task frozen forever after its cgroup was thawed or removed. - With memcg built without the block cgroup controller, memcg reclaim waited on writeback and could deadlock against a filesystem freeze. memcg now selects the controller. - cpuset partition state could go wrong when CPUs move between nested partitions or go offline: isolated CPUs leaked or went missing, invalid partitions kept exclusive CPUs or came back with no usable CPU, and expanding a remote partition could fail. Separately, a forked child could inherit a corrupted memory node mask. * tag 'cgroup-for-7.4-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: cgroup/cpuset: Don't revive invalid partition without active CPU on hotplug cgroup/cpuset: Remove redundant WARN_ON_ONCE() in remote_cpus_update() memcg: make MEMCG select BLK_CGROUP cpuset: generalize the validate_partition() interface cpuset: settle isolation state when CPUs are given back to parent cgroup/cpuset: Correctly set isolated_cpus when switching partition state cgroup/cpuset: Protect current->mems_allowed read in cpuset_fork() selftests/cgroup: Fix "test_cpuset_prs.sh -v" failures cpuset: add early empty cpumask check in partition_xcpus_add/del cgroup/cpuset: Reset partition data when an invalid partition stays invalid cgroup/freezer: Fix exiting tasks left frozen forever after rmdir cgroup/freezer: walk exiting tasks in the v1 freezer cgroup: arm the notify timer only while the file exists cgroup/cpuset: Do housekeeping check when isolated child with root parent may get more xcpus cgroup/cpuset: Recompute effective cpumask in update_cpumasks_hier() after calling update_parent_effective_cpumask() cgroup/cpuset: Fix incorrect CPU accounting with parent's effective_xcpus expansion
13 daysselftests/bpf: Add iter/sockmap bpf_sock_destroy() negative testMichal Luczaj
bpf_sock_destroy() is restricted to socket-locked iters, TCP and UDP. Fail attempting it from iter/sockmap. 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-7-7c0bad1ad036@rbox.co
13 daysselftests/bpf: Add negative test for sockmap update from non-sockmap iterMichal Luczaj
Iterator-context sockmap updates are now restricted to iter/sockmap. Add a test that attempts an update from iter/unix and expects it to fail. 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-3-7c0bad1ad036@rbox.co
13 daysselftests/bpf: Remove sockmap update from bpf_iter_unixMichal Luczaj
BPF iterator programs that can update sockmaps will be limited to iter/sockmap. Remove the update from the unix selftest. This reverts commit 997b8483d44c ("selftests/bpf: Extend bpf_iter_unix to attempt deadlocking"). Signed-off-by: Michal Luczaj <mhal@rbox.co> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev> Link: https://patch.msgid.link/20261107-sockmap-update-limit-iter-v3-1-7c0bad1ad036@rbox.co
13 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
2026-11-13cpuset: generalize the validate_partition() interfaceRidong Chen
Refactor validate_partition() to take the parent partition, the new partition root state, the new effective exclusive CPUs and the CPUs to be deleted, instead of a trial cpuset. A NULL parent stands for a remote partition, whose CPUs come from top_cpuset. This makes the interface flexible enough to handle both local and remote partition validation. This also fixes a false PERR_NOCPUS error when expanding a remote partition. The no CPU left for tasks check in partition_cpus_change() is done against the cgroup parent, but the CPUs of a remote partition come from top_cpuset, not from its parent. For example, on a 4-CPU system: echo 2-3 > P/cpuset.cpus echo 2-3 > P/cpuset.cpus.exclusive echo 2-3 > P/C/cpuset.cpus echo 2 > P/C/cpuset.cpus.exclusive echo root > P/C/cpuset.cpus.partition (a task in P) echo 2-3 > P/C/cpuset.cpus.exclusive cat P/C/cpuset.cpus.partition root invalid (Parent is not a partition root) The effective_cpus of P is 3, a subset of the new exclusive CPUs 2-3 of C, and P has a task, so the expansion is rejected. However, P is not a partition root and does not give any CPU to C, and top_cpuset still has CPUs 0-1 for the task. Enabling C directly with exclusive CPUs 2-3 succeeds, as remote_partition_enable() checks top_cpuset instead. The no CPU left for tasks check now uses the given parent instead of parent_cs(cs), and top_cpuset for a remote partition, as that is where its CPUs are taken from. The housekeeping conflict check is folded into validate_partition(). It is skipped when the parent is not a valid partition root, as @cs can't be a valid local partition in that case. Use the new interface for local partition enablement in update_parent_effective_cpumask() and in partition_cpus_change(), replacing the open-coded checks there. The order of the checks is now the same for both paths: empty CPUs, housekeeping conflict, then no CPU left for tasks. Add a test case to test_cpuset_prs.sh for the remote partition expansion above. Fixes: 181c8e091aae ("cgroup/cpuset: Introduce remote partition") Signed-off-by: Ridong Chen <chenridong@xiaomi.com> Reviewed-by: Guopeng Zhang <zhangguopeng@kylinos.cn> Reviewed-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
2026-11-12Merge 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 ...
2026-11-12selftests/bpf: Check writable iterator attach to a read-only arrayAdethya Srinivasan
Reuse dump_bpf_array_map(), which writes to ctx->value, and attempt to attach it to an array with BPF_F_RDONLY_PROG set. Assert that the attach returns -EACCES and destroy the link if it unexpectedly succeeds. The test fails on an unfixed kernel and passes with the fix applied. Signed-off-by: Adethya Srinivasan <adethyasrinivasan@outlook.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/LO2P302MB019736CF58FAA4C98C6F78AABC702@LO2P302MB0197.GBRP302.PROD.OUTLOOK.COM
2026-11-12selftests: net: add a test for NSH GSOEric Dumazet
Send TCPv4 GSO packets encapsulated in a stack of NSH headers to a dummy device which has TSO disabled, using a packet socket with PACKET_VNET_HDR, and count the packets the device transmits. Packets with one or four NSH headers must be segmented. Packets with 5, 64 or 8000 NSH headers must be dropped: they exceed the recursion limit of the GSO handlers. Without the limit in nsh_gso_segment(), the last one overflows the kernel stack. # ./nsh_gso.sh PASS: 1 NSH headers: 4 packets sent PASS: 4 NSH headers: 4 packets sent PASS: 5 NSH headers: 0 packets sent PASS: 64 NSH headers: 0 packets sent PASS: 8000 NSH headers: 0 packets sent Signed-off-by: Eric Dumazet <edumazet@kernel.org> Link: https://patch.msgid.link/20261112102001.3744643-3-edumazet@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-12selftests: tls: Cover the cap on consecutive empty recordsJakub Kicinski
Check through both recv() and splice() that a run of 128 empty data records is consumed and the data record behind it is delivered, and that a run of 129 breaks the connection with EBADMSG before the data record can be read. Two runs of 128 with a read returning EAGAIN in between must not break the connection, the cap applies to a burst the reader cannot keep up with, not to the connection as a whole. kTLS cannot send an empty record. A TLS 1.3 record of type 0 whose only byte is the data content type decrypts to one, since the receiver strips the 0 as padding. Reviewed-by: Chuck Lever <cel@kernel.org> Link: https://patch.msgid.link/20261111185522.2859004-6-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-12selftests: tls: Extend coverage for zero-length recordsChuck Lever
The zero_len fixture injects raw pre-encrypted records over a socket carrying a TLS_RX key only, and some of those records are zero-length application_data records. Every variant reads the records back with recvmsg() without MSG_PEEK, so neither splice nor MSG_PEEK is tested against an empty record. Add zero_len_splice and zero_len_peek. A zero return from splice() means EOF, so zero_len_splice checks that a run of empty data records does not end a live connection. zero_len_peek checks that a peek reaches the payload behind a run of empty records and leaves the payload in place for the read that follows. When a payload does not follow the run, the peek must leave the socket unreadable. An unfixed kernel returns 0 from splice(), and after the peek poll() reports the socket readable. Signed-off-by: Chuck Lever <cel@kernel.org> Link: https://patch.msgid.link/20261111185522.2859004-5-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-12selftests: tls: Skip the zero_len tests when TLS is unavailableChuck Lever
FIXTURE_SETUP(zero_len) returns early when ulp_sock_pair() reports that the TCP_ULP setsockopt failed, so on a kernel built without CONFIG_TLS the TLS_RX setsockopt never runs. TEST_F(zero_len, test) then sends its raw records over a plain TCP socket, which returns the ciphertext verbatim. All eight variants FAIL on a machine that lacks TLS, and those failures mask any real regression in the same run. Skip the test when the fixture recorded notls, as the other fixtures in this file do. Fixes: a61a3e961baf ("selftests: tls: add tests for zero-length records") Signed-off-by: Chuck Lever <cel@kernel.org> Link: https://patch.msgid.link/20261111185522.2859004-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-12selftests: net: exercise SO_MARK on connected socketsXia Yan
cmsg_so_mark.sh sends to explicit destinations, so it does not test the route cached by connect(). Add -k to cmsg_sender to connect first and send without msg_name. Check connected IPv4 and IPv6 UDP, ping and raw sockets with equal, prohibited and zero per-message marks. Add an exact mark 0 prohibit rule before the connected cases. Connect with an allowed socket mark, then require rejection of a mark 0 cmsg. The same test fails four IPv6 cases before the kernel fix and passes all 54 with it. Signed-off-by: Xia Yan <yanxia@cmss.chinamobile.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20261109014400.9025-2-yanxia@cmss.chinamobile.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-12selftests/net: psp: test bidirectional data transferWei Wang
_data_basic_send() and _data_basic_send_netkit_psp_assoc() currently only verify unidirectional data transmission from the test socket to psp_responder. As a result, they do not exercise the receive path for PSP-encrypted TCP data segments arriving at the test socket (such as packets redirected across a netkit interface associated via dev-assoc, which relies on SKB_EXT_PSP surviving packet scrubbing). Use the existing "data echo" command in psp_responder to verify that the test socket can also receive PSP-encrypted data from the peer in both _data_basic_send() and _data_basic_send_netkit_psp_assoc(). Signed-off-by: Wei Wang <weiwan@google.com> Reviewed-by: Daniel Zahka <daniel.zahka@gmail.com> Link: https://patch.msgid.link/20261106182007.374660-3-weiwan@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-12selftests: overlayfs: reject different lower idmaps on same fsJérémy Jean
Add an idmapped overlay test for two lower layers that share a backing superblock but use different idmaps. Check that mount creation with index=on fails with EINVAL. Signed-off-by: Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
2026-11-11Merge 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() ...
2026-11-11selftest: packetdrill: Add test for DEFER_CONNECT.Kuniyuki Iwashima
tcp_fastopen_client_defer-connect.pkt does the following: 1. create a socket 2. connect() + connect(AF_UNSPEC) to let packetdrill remember 4-tuple 3. setsockopt(TCP_FASTOPEN_CONNECT) + connect() 4. inject a forged SYN 5. check sk->sk_state 6. verify sendto() sends SYN Without the previous patch, incoming simultaneous SYN is accepted even before outgoing SYN is sent. Before: [ 27.941419] TCP: tcp_send_synack: wrong queue state tcp_fastopen_client_defer-connect.pkt:35: error handling packet: live packet field tcp_seq: expected: 501 (0x1f5) vs actual: 0 (0x0) script packet: 0.004460 . 501:501(0) ack 1 actual packet: 0.004450 . 0:0(0) ack 4294961618 win 1050 not ok 1 ipv4 Or if we remove Test 1, we can see ICMP is accepted: tcp_fastopen_client_defer-connect.pkt:33: runtime error in sendto call: Expected result 500 but got -1 with errno 103 (Software caused connection abort) not ok 1 ipv4 After: ok 1 ipv4 ok 2 ipv6 ok 3 ipv4-mapped-ipv6 # Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20261107235720.3129212-4-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-11-11selftests/powerpc: override EMIT_TESTS instead of the emit_tests ruleSasha Levin
The powerpc Makefiles include lib.mk and then define their own emit_tests rule, so every selftests build that includes powerpc warns, on any architecture: Makefile:60: warning: overriding recipe for target 'emit_tests' ../lib.mk:183: warning: ignoring old recipe for target 'emit_tests' lib.mk used to keep the recipe in an EMIT_TESTS variable that Makefiles could override, as they still do with RUN_TESTS, INSTALL_RULE and CLEAN. Commit d4e59a536f50 ("selftests: Use runner.sh for emit targets") dropped the variable, and commit 58b33e78a317 ("selftests/powerpc: Fix emit_tests to work with run_kselftest.sh") then replaced the powerpc EMIT_TESTS definitions with rules. Bring EMIT_TESTS back in lib.mk and override it in the powerpc Makefiles again. Mark the lib.mk recipe with '+', so that the powerpc sub-makes still get the jobserver, as they did when $(MAKE) was in the rule itself. The emitted test lists don't change. Fixes: 58b33e78a317 ("selftests/powerpc: Fix emit_tests to work with run_kselftest.sh") Signed-off-by: Sasha Levin <sashal@kernel.org> Acked-by: Michael Ellerman <mpe@kernel.org> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20261103232307.1924618-3-sashal@kernel.org