mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
Merge branch 'bpf-track-overlapping-rcu-protection'
Ning Ding says: ==================== bpf: Track overlapping RCU protection Preemption-disabled and IRQ-disabled regions provide RCU protection, but the verifier does not account for them. Current implementation can invalidate a task kptr while another RCU source remains active, or keep it valid after the final source ends. Track these regions and invalidate RCU-protected pointers only after the last protection ends. Add task kptr tests for overlapping protection and final-exit rejection. This follows review of the applied spin-unlock fix series [1]. Tested in QEMU/KVM: ./test_progs -t task_kfunc ./test_progs -t preempt_lock ./test_progs -t irq [1] https://lore.kernel.org/r/20260803112615.3362122-1-dingning04@gmail.com ==================== Link: https://patch.msgid.link/20260805233940.3966981-1-dingning04@gmail.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
commit
8c7f55d60a
6 changed files with 220 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue