Re: [PATCH bpf-next v3 9/9] selftests/bpf: Test stack-passed struct_ops arena arguments
Eduard Zingerman <[email protected]> Wed, 05 Aug 2026 01:00:59 -0700
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2026-08-03 at 14:51 +0200, Kumar Kartikeya Dwivedi wrote: > From: Tejun Heo <[email protected]> > > Add a test_arena_stack member with eight leading scalar arguments so the > arena pointer is passed on the stack. > > The callback validates the first and last scalar ctx slots before > dereferencing the pointer in ctx[8]. This exercises the indirect > trampoline stack layout and arena conversion together, and prevents a > regression where stack arguments are read one slot late. > > Signed-off-by: Tejun Heo <[email protected]> > Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> > --- Tested-by: Eduard Zingerman <[email protected]>