summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2025-11-13 20:11:53 +0300
committerAndrii Nakryiko <andrii@kernel.org>2025-11-15 04:02:25 +0300
commitc13339039891dbdfa6c1972f0483bd07f610b776 (patch)
treecbd992aad8279979e9ac297fc2350f94e9914d00 /scripts/patch-kernel
parent63066b7a8ed544592005c66c261625204d2ec99a (diff)
downloadlinux-c13339039891dbdfa6c1972f0483bd07f610b776.tar.xz
selftests/bpf: Fix failure paths in send_signal test
When test_send_signal_kern__open_and_load() fails parent closes the pipe which cases ASSERT_EQ(read(pipe_p2c...)) to fail, but child continues and enters infinite loop, while parent is stuck in wait(NULL). Other error paths have similar issue, so kill the child before waiting on it. The bug was discovered while compiling all of selftests with -O1 instead of -O2 which caused progs/test_send_signal_kern.c to fail to load. Fixes: ab8b7f0cb358 ("tools/bpf: Add self tests for bpf_send_signal_thread()") Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/bpf/20251113171153.2583-1-alexei.starovoitov@gmail.com
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions