Skip to content

bpf: Fix bpf_event_output re-entry issue

Allan Zhang bpf lkml netdev 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1bpf: Fix bpf_event_output re-entry issuekernel/trace/bpf_trace.c+21 -52 replies

Reviews trailers per patch

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

PatchStanislav FomichevEric DumazetJohn Fastabend
1/1R-b R-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 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/1] bpf: Fix bpf_event_output re-entry issue

BPF_PROG_TYPE_SOCK_OPS program can reenter bpf_event_output because it can be called from atomic and non-atomic contexts since we don't have bpf_prog_active to prevent it happen.

This patch enables 3 level of nesting to support normal, irq and nmi context.

We can easily reproduce the issue by running neper crr mode with 100 flows and 10 threads from neper client side.

Allan Zhang (1):
bpf: Fix bpf_event_output re-entry issue

 kernel/trace/bpf_trace.c | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)
Signature · 1 line
2.23.0.351.gc4317032e6-goog