]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Expand coverage of preempt tests to sleepable kfunc
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Wed, 4 Dec 2024 03:03:59 +0000 (19:03 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 4 Dec 2024 16:38:29 +0000 (08:38 -0800)
commite8c6c80b76e53632992ec345a02c05942aa8f3f2
tree231aec00d8ac4a1f9e803e5ffddd39d819493c4b
parentcbd8730aea8d79cda6b0f3c18b406dfdef0c1b80
selftests/bpf: Expand coverage of preempt tests to sleepable kfunc

For preemption-related kfuncs, we don't test their interaction with
sleepable kfuncs (we do test helpers) even though the verifier has
code to protect against such a pattern. Expand coverage of the selftest
to include this case.

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241204030400.208005-7-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/preempt_lock.c