On Tue, 2026-05-12 at 13:59 +0800, Kaitao cheng wrote: > From: Kaitao Cheng <[email protected]> > > Refactor __bpf_list_add to accept (node, head, struct list_head **prev_ptr, > ..) instead of (node, head, bool tail, ..). Load prev from *prev_ptr after > INIT_LIST_HEAD(h), so we never dereference an uninitialized h->prev when > head was 0-initialized (e.g. push_back passes &h->prev). > > When prev is not the list head, validate that prev is in the list via > its owner. > > Prepares for bpf_list_add(head, new, prev, ..) to insert after a given > list node. > > Signed-off-by: Kaitao Cheng <[email protected]> > ---
Reviewed-by: Eduard Zingerman <[email protected]> [...]

