BPF List
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] selftests/bpf: Fix task work false failures and cleanup
@ 2026-09-17  8:08 Yun Lu
  2026-09-17  8:08 ` [PATCH bpf 1/2] selftests/bpf: Fix timing-dependent assertions in task work stress test Yun Lu
  2026-09-17  8:08 ` [PATCH bpf 2/2] selftests/bpf: Clean up child when task_work__open() fails Yun Lu
  0 siblings, 2 replies; 7+ messages in thread
From: Yun Lu @ 2026-09-17  8:08 UTC (permalink / raw)
  To: andrii, eddyz87, ihor.solodrai, ast, daniel, memxor, martin.lau,
	song, yonghong.song, jolsa, emil, shuah
  Cc: bpf, linux-kselftest

From: Yun Lu <luyun@kylinos.cn>

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-18  2:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17  8:08 [PATCH bpf 0/2] selftests/bpf: Fix task work false failures and cleanup Yun Lu
2026-09-17  8:08 ` [PATCH bpf 1/2] selftests/bpf: Fix timing-dependent assertions in task work stress test Yun Lu
2026-09-17  9:00   ` bot+bpf-ci
2026-09-17 12:31     ` luyun
2026-09-17 14:39   ` Alexei Starovoitov
2026-09-18  2:36     ` luyun
2026-09-17  8:08 ` [PATCH bpf 2/2] selftests/bpf: Clean up child when task_work__open() fails Yun Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox