bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v1 0/6] Fix ring buffer callback consumption
@ 2026-11-09 19:47 Kumar Kartikeya Dwivedi
  2026-11-09 19:47 ` [PATCH bpf-next v1 1/6] libbpf: Honor zero consume bounds Kumar Kartikeya Dwivedi
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Kumar Kartikeya Dwivedi @ 2026-11-09 19:47 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
	Eduard Zingerman, Emil Tsalapatis, Ihor Solodrai, kkd,
	kernel-team

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
-- 
2.53.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-09 23:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 19:47 [PATCH bpf-next v1 0/6] Fix ring buffer callback consumption Kumar Kartikeya Dwivedi
2026-11-09 19:47 ` [PATCH bpf-next v1 1/6] libbpf: Honor zero consume bounds Kumar Kartikeya Dwivedi
2026-11-09 19:47 ` [PATCH bpf-next v1 2/6] libbpf: Prevent NULL callback crash Kumar Kartikeya Dwivedi
2026-11-09 19:47 ` [PATCH bpf-next v1 3/6] libbpf: Reject overwrite callback use Kumar Kartikeya Dwivedi
2026-11-09 19:47 ` [PATCH bpf-next v1 4/6] selftests/bpf: Test ring buffer consumption with a zero bound Kumar Kartikeya Dwivedi
2026-11-09 19:47 ` [PATCH bpf-next v1 5/6] selftests/bpf: Test the ring buffer consumer with a NULL sample callback Kumar Kartikeya Dwivedi
2026-11-09 19:47 ` [PATCH bpf-next v1 6/6] selftests/bpf: Test that callbacks reject an overwritable ring buffer Kumar Kartikeya Dwivedi
2026-11-09 23:00 ` [PATCH bpf-next v1 0/6] Fix ring buffer callback consumption patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).