aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2023-01-17 23:37:04 +0100
committerAlexei Starovoitov <[email protected]>2023-01-17 16:56:04 -0800
commit700e6f853eb3977cd1cf172b717baa9daa328ea4 (patch)
treea4f000342c50d8219947257581ed0e7d947a674d /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentc1177979af9c616661a126a80dd486ad0543b836 (diff)
bpf: Do not allow to load sleepable BPF_TRACE_RAW_TP program
Currently we allow to load any tracing program as sleepable, but BPF_TRACE_RAW_TP can't sleep. Making the check explicit for tracing programs attach types, so sleepable BPF_TRACE_RAW_TP will fail to load. Updating the verifier error to mention iter programs as well. Acked-by: Song Liu <[email protected]> Acked-by: Yonghong Song <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions