]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Stress test attaching a BPF prog to another BPF prog
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 16 Jul 2025 19:35:07 +0000 (21:35 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 17 Jul 2025 01:32:31 +0000 (18:32 -0700)
commitd459dbbbfa323165849451edb9690a933c210bac
tree81b1a9b6cfc62c9dd25b8792ed8f3e8f6428014f
parent6a5abf8cf182f577c7ae6c62f14debc9754ec986
selftests/bpf: Stress test attaching a BPF prog to another BPF prog

Add a test that invokes a BPF prog in a loop, while concurrently
attaching and detaching another BPF prog to and from it. This helps
identifying race conditions in bpf_arch_text_poke().

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20250716194524.48109-3-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/recursive_attach.c