Skip to content

Fix bpf_link grace period wait for tracepoints

Kumar Kartikeya Dwivedi bpf 4 versions – Applied

Status from this message: This patch was applied to bpf/bpf.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 1 replyApplied 1/1
  2. v31 patch 7 repliesSuperseded
  3. v22 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches10 repliesSuperseded

Changes in v4 from the cover letter

v3: https://lore.kernel.org/bpf/[email protected]

* Introduce call_tracepoint_unregister_{atomic,syscall} instead. (Alexei, Steven)

Patches in v4 All 1 applied

#Subject and filesSizeRepliesApplied
1/1bpf: Fix grace period wait for tracepoint bpf_linkinclude/linux/bpf.h include/linux/tracepoint.h kernel/bpf/syscall.c+47 -21 replyApplied

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchSun JianPuranjay MohanAndrii NakryikoSteven Rostedt (Google)
1/1R-b R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH bpf v4 0/1] Fix bpf_link grace period wait for tracepoints

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.

Changelog:
----------
v3 -> v4
v3: https://lore.kernel.org/bpf/[email protected]

* Introduce call_tracepoint_unregister_{atomic,syscall} instead. (Alexei, Steven)

v2 -> v3
v2: https://lore.kernel.org/bpf/[email protected]

* Introduce and switch to call_tracepoint_unregister_non_faultable(). (Steven)
* Address Andrii's comment and add Acked-by. (Andrii)
* Drop rcu_trace_implies_rcu_gp() conversion. (Alexei)

v1 -> v2
v1: https://lore.kernel.org/bpf/[email protected]

* Add Reviewed-by tags. (Paul, Puranjay)
* Adjust commit descriptions and comments to clarify intent. (Puranjay)

Kumar Kartikeya Dwivedi (1):
bpf: Fix grace period wait for tracepoint bpf_link

 include/linux/bpf.h        |  4 ++++
 include/linux/tracepoint.h | 20 ++++++++++++++++++++
 kernel/bpf/syscall.c       | 25 +++++++++++++++++++++++--
 3 files changed, 47 insertions(+), 2 deletions(-)

base-commit: c369299895a591d96745d6492d4888259b004a9e

Signature · 1 line
2.52.0