Commit d3a5ea8a82fa for kernel
commit d3a5ea8a82fabeb2314700c2e001130faf99df1f
Merge: 673af170ceca 02d3452bdd80
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Fri Nov 27 18:21:40 2026 -0800
Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull bpf fixes from Alexei Starovoitov:
"Small fixes for various bugs all over bpf. The main themes:
- fix verifier bugs that let unsafe progs load
- require CAP_PERFMON in places where CAP_BPF alone leaked kernel
addresses
- fix x86 JIT crash with FineIBT, split locks from arena atomics and
unreliable stack traces
- fix arm64 JIT crash in bpf_throw() with shadow call stack
- fix leaks of uninitialized memory in skb, XDP, sk_msg and sockaddr
helpers
- add missing NULL checks and speculation barriers
Detailed summary:
- Require CAP_PERFMON where CAP_BPF was enough to see kernel
addresses or to touch other tasks: tracing helpers in syscall
progs, arena and task work kfuncs, streams, kernel variables,
dumps of xlated insns, etc.
- Zero bpf_list_head in copies of map values
- Check that an extension prog fits the hook of its target
- Compare the attach type and the properties of a hook at tail
calls, reserve cookie and ip in the trampoline for them
- Look at the type of a prog next to expected_attach_type
- Check the attach type when a cgroup link gets another prog
- Check that a prog and a struct_ops map are for the same struct
- Fix the checks of R0 and bpf_get_retval() in struct_ops progs
- Don't trust pointers in flexible arrays and the neighbour of
tp_btf/neigh_create
- Check for NULL in helpers that take a kernel pointer
- Don't allow bpf_d_path() by an id of another BTF
- Emit nospec after calls and atomics that write to the stack, undo
insn aux changes of a failed speculative path
- Treat NOT_INIT as a pointer in __is_pointer_value()
- Let the bpf_fastcall boundary cover the longest pattern
- Give the error of bpf_res_spin_lock() a 32-bit range
- Use get_unaligned() in bpf_map_direct_read()
- Set the run context for async callbacks, fix NULL dereference in
XDP redirect from them
- Fix bpf_throw() with tracers, KASAN and arm64 shadow call stack,
add the symbol of a prog before its id, etc.
- Fix bpf_kfree_skb(), bpf_lock and the free of a list head or rb
root with irqs off
- Bound the time that dumps of the stack take
- Fix arena: refuse mmap() of a part of it, flush TLB when a page
replaces the scratch page, enforce alignment of atomics on x86
- Don't use the paranoid ITS thunk in x86 JIT, fix the range of BPF
code that has a frame pointer
- Refuse metadata maps of signed progs that can be mapped writable
- Fix reads past an enum in prints of BTF data
- Keep the names in front of a number in bpffs delegate options
- Don't expose uninitialized bytes in bpf_msg_push_data(), loads
from the network header and cgroup sockaddr hooks
- Fix dynptr slices behind the end of an XDP packet
- Take a neighbour of the L3 master in bpf_redirect_neigh()
- Keep the MAC header in bpf_skb_change_tail()
- Keep the parser and sk_data_ready in sync in sockmap, hold the
psock of the work in sk_psock_backlog()
- Fix struct_ops members 59-61 and optional struct_ops maps in
libbpf
- Reject kernel threads in bpf_task_work_schedule()
- Clear the redirect target after the sockmap stream parser runs
- Check program type on the migration path of sock_reuseport"
* tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: (58 commits)
bpf: Set the run context for async callbacks
bpf, sockmap: Clear the redirect target after the stream parser runs
bpf: Reject kernel threads in bpf_task_work_schedule()
bpf: Emit nospec after calls and atomics that write to the stack
bpf: Use get_unaligned() in bpf_map_direct_read()
bpf: Treat NOT_INIT as a pointer in __is_pointer_value()
bpf: Undo insn aux changes of a failed speculative path
bpf: Check the type of R0 at the exit of a struct_ops program
libbpf: Fix struct_ops members 59-61 and optional struct_ops maps
bpf, sockmap: Hold the psock of the work in sk_psock_backlog()
bpf, sockmap: Keep the parser and sk_data_ready in sync
bpf: Keep the MAC header in bpf_skb_change_tail()
bpf: Take a neighbour of the L3 master in bpf_redirect_neigh()
bpf: Clear family and port of a short address for cgroup sockaddr hooks
bpf: Fix slices behind the end of an XDP packet
bpf: Fail loads from a network header that was not set
bpf: Clear the data that bpf_msg_push_data() adds
bpf, arm64: Restore the shadow call stack pointer after an exception
bpf, x86: Fix the range of BPF code that has a frame pointer
bpf, x86: Enforce alignment of atomics in arenas
...