On Fri, 6 Mar 2026 at 09:35, Sun Jian <[email protected]> wrote: > > The test installs a kprobe on __sys_connect and checks that > bpf_probe_write_user() can modify the syscall argument. However, any > concurrent thread in any other test that calls connect() will also > trigger the kprobe and have its sockaddr silently overwritten, causing > flaky failures in unrelated tests. > > Constrain the hook to the current test process by filtering on a PID > stored as a global variable in .bss. Initialize the .bss value from > user space before bpf_object__load() using bpf_map__set_initial_value(), > and validate the bss map value size to catch layout mismatches. > > No new map is introduced and the test keeps the existing non-skeleton > flow. > > Signed-off-by: Sun Jian <[email protected]> > ---
Acked-by: Kumar Kartikeya Dwivedi <[email protected]> > > [...]
