diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2024-11-03 14:59:39 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-11-03 16:52:06 -0800 |
commit | d402755ced2ea8fc1f0513136f074002d509bfa0 (patch) | |
tree | dfa2b8d13318abf888384053c2b2850df8cdfc12 /tools/testing/selftests/bpf/prog_tests/linked_funcs.c | |
parent | 46f7ed32f7a873d6675ea72e1d6317df41a55f81 (diff) |
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 <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241103225940.1408302-3-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/linked_funcs.c')
0 files changed, 0 insertions, 0 deletions