diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-09-03 16:44:24 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-03 09:44:53 -0700 |
| commit | 08b4dc83d981bf9136d37aaa4f5cd021ba0d8f2b (patch) | |
| tree | 0dbbd60ff8731465c0999beed8d96a00e733934f /scripts | |
| parent | 7b7b8b5960102566bd625ae829d1f330c5b5d104 (diff) | |
| download | linux-08b4dc83d981bf9136d37aaa4f5cd021ba0d8f2b.tar.gz linux-08b4dc83d981bf9136d37aaa4f5cd021ba0d8f2b.zip | |
selftests/bpf: Reject resilient unlock in rbtree callback
Add a load-only verifier regression for a resilient lock operation in an
rbtree comparison callback. The program holds the rbtree's regular spin
lock and a separate resilient lock, then releases the resilient lock from
the callback. This isolates the missing kfunc policy check without running
a concurrent tree mutation.
Release the resilient lock before the regular lock on the outer
fall-through. The broken verifier therefore accepts the balanced program,
while the fixed verifier rejects the resilient unlock specifically while
verifying the callback.
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20260903144433.1716731-7-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
