Re: [PATCH bpf 2/6] libbpf: ringbuf: Prevent NULL callback crash
From: Tamir Duberstein
Date: Fri Nov 20 2026 - 15:42:18 EST
> Can we just prevent a ring from being added with a NULL sample_cb?
The NULL-callback fix was merged as c0628a0659b6, so it is omitted from
v3.
V3 adds a caller-owned iterator that returns records without invoking a
callback. Rejecting NULL at construction would prevent iterator-only
registration. The constructors therefore continue accepting NULL;
callback consumption rejects it.