[PATCH bpf v1 0/2] Fix bpf_link grace period wait for tracepoints

Kumar Kartikeya Dwivedi
2026-03-30T03:21:28Z

A recent change to non-faultable tracepoints switched from
preempt-disabled critical sections to SRCU-fast, which breaks
assumptions in the bpf_link_free() path. Use call_srcu() to fix the
breakage. While at it, retire rcu_trace_implies_rcu_gp() and clean up
all in-tree users.

Kumar Kartikeya Dwivedi (2):
bpf: Fix grace period wait for tracepoint bpf_link
bpf: Retire rcu_trace_implies_rcu_gp()

include/linux/rcupdate.h | 12 ------------
include/linux/tracepoint.h | 8 ++++++++
kernel/bpf/core.c | 10 ++++------
kernel/bpf/memalloc.c | 33 ++++++++++---------------------
kernel/bpf/syscall.c | 40 ++++++++++++++++++++++----------------
5 files changed, 45 insertions(+), 58 deletions(-)

base-commit: c369299895a591d96745d6492d4888259b004a9e
--
2.52.0