From: Yun Lu <[email protected]> Hi,
This series fixes two independent issues in the BPF task work selftests. 1/2 removes timing-dependent assumptions from the stress test while retaining its callback accounting checks. 2/2 routes a task_work__open() failure through the common cleanup path so that the pipe fds are closed and the forked child is woken and reaped. The stress test was run 50 times normally and 50 times with single-CPU affinity, with all runs passing. A single-scheduler diagnostic also reproduced the original zero-contention false failure and passed after the fix. Thanks, Yun Lu Yun Lu (2): selftests/bpf: Fix timing-dependent assertions in task work stress test selftests/bpf: Clean up child when task_work__open() fails .../bpf/prog_tests/task_work_stress.c | 6 ++---- .../selftests/bpf/prog_tests/test_task_work.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) -- 2.43.0
