Skip to content

Fix ring buffer callback consumption

Kumar Kartikeya Dwivedi bpf 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6libbpf: Honor zero consume boundstools/lib/bpf/ringbuf.c+3 -00 repliesApplied
2/6libbpf: Prevent NULL callback crashtools/lib/bpf/libbpf.h tools/lib/bpf/ringbuf.c+43 -110 repliesApplied
3/6libbpf: Reject overwrite callback usetools/lib/bpf/libbpf.h tools/lib/bpf/ringbuf.c+5 -00 repliesApplied
4/6selftests/bpf: Test ring buffer consumption with a zero boundtools/testing/selftests/bpf/prog_tests/ringbuf.c+13 -00 repliesApplied
5/6selftests/bpf: Test the ring buffer consumer with a NULL sample callbacktools/testing/selftests/bpf/prog_tests/ringbuf.c+93 -00 repliesApplied
6/6selftests/bpf: Test that callbacks reject an overwritable ring buffertools/testing/selftests/bpf/prog_tests/ringbuf.c+39 -00 repliesApplied

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchEmil TsalapatisEduard Zingerman
1/6R-b A-b
2/6
3/6
4/6R-b A-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next v1 0/6] Fix ring buffer callback consumption

Commandeering some patches from Tamir for libbpf ringbuf callback consumption fixes. See commit logs for details.

Tamir Duberstein (6):
libbpf: Honor zero consume bounds
libbpf: Prevent NULL callback crash
libbpf: Reject overwrite callback use
selftests/bpf: Test ring buffer consumption with a zero bound selftests/bpf: Test the ring buffer consumer with a NULL sample
callback
selftests/bpf: Test that callbacks reject an overwritable ring buffer

 tools/lib/bpf/libbpf.h                        |  12 +-
 tools/lib/bpf/ringbuf.c                       |  50 +++++-
 .../selftests/bpf/prog_tests/ringbuf.c        | 145 ++++++++++++++++++
 3 files changed, 196 insertions(+), 11 deletions(-)

base-commit: bd75869299f1d4ff6e9f45117cce28f8badee1cd

Signature · 1 line
2.53.0