]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Cover global subprog exception leaks
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sun, 17 May 2026 07:55:29 +0000 (09:55 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 17 May 2026 18:15:05 +0000 (11:15 -0700)
commit511a5db3c9ec55dd5393b8639000df080c296ef4
tree685cace04b83584c2b352aea0d23ae05ae93100a
parent3d562d35a044ae798cab421c65a116f8cedfa5d4
selftests/bpf: Cover global subprog exception leaks

Add a verifier failure case where the caller holds a reference across a
global subprog call that may throw. The program must be rejected because
the exceptional path would skip the caller's reference release.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20260517075530.3461166-3-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/exceptions_fail.c