diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2024-11-03 22:59:39 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-11-04 00:52:06 +0000 |
| commit | d402755ced2ea8fc1f0513136f074002d509bfa0 (patch) | |
| tree | dfa2b8d13318abf888384053c2b2850df8cdfc12 /tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c | |
| parent | bpf: Tighten tail call checks for lingering locks, RCU, preempt_disable (diff) | |
| download | kernel-d402755ced2ea8fc1f0513136f074002d509bfa0.tar.gz kernel-d402755ced2ea8fc1f0513136f074002d509bfa0.zip | |
bpf: Unify resource leak checks
There are similar checks for covering locks, references, RCU read
sections and preempt_disable sections in 3 places in the verifer, i.e.
for tail calls, bpf_ld_[abs, ind], and exit path (for BPF_EXIT and
bpf_throw). Unify all of these into a common check_resource_leak
function to avoid code duplication.
Also update the error strings in selftests to the new ones in the same
change to ensure clean bisection.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c')
0 files changed, 0 insertions, 0 deletions
