-
- Downloads
bpf: Add per-program recursion prevention mechanism
Since both sleepable and non-sleepable programs execute under migrate_disable add recursion prevention mechanism to both types of programs when they're executed via bpf trampoline. Signed-off-by:Alexei Starovoitov <ast@kernel.org> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net> Acked-by:
Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210210033634.62081-5-alexei.starovoitov@gmail.com
Showing
- arch/x86/net/bpf_jit_comp.c 15 additions, 0 deletionsarch/x86/net/bpf_jit_comp.c
- include/linux/bpf.h 3 additions, 3 deletionsinclude/linux/bpf.h
- include/linux/filter.h 1 addition, 0 deletionsinclude/linux/filter.h
- kernel/bpf/core.c 8 additions, 0 deletionskernel/bpf/core.c
- kernel/bpf/trampoline.c 19 additions, 4 deletionskernel/bpf/trampoline.c
- tools/testing/selftests/bpf/prog_tests/fexit_stress.c 2 additions, 2 deletionstools/testing/selftests/bpf/prog_tests/fexit_stress.c
- tools/testing/selftests/bpf/prog_tests/trampoline_count.c 2 additions, 2 deletionstools/testing/selftests/bpf/prog_tests/trampoline_count.c
Please register or sign in to comment