aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/task_ls_recursion.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2021-02-25 23:43:16 +0000
committerAlexei Starovoitov <[email protected]>2021-02-26 19:51:48 +0000
commit1f87dcf116adedd6b9f47258d4fdf4fa9ce74002 (patch)
treedb016f90ba6da4f318862d36d17f97ffaf237cf6 /tools/testing/selftests/bpf/progs/task_ls_recursion.c
parentbpf: Prevent deadlock from recursive bpf_task_storage_[get|delete] (diff)
downloadkernel-1f87dcf116adedd6b9f47258d4fdf4fa9ce74002.tar.gz
kernel-1f87dcf116adedd6b9f47258d4fdf4fa9ce74002.zip
selftests/bpf: Add non-BPF_LSM test for task local storage
Task local storage is enabled for tracing programs. Add two tests for task local storage without CONFIG_BPF_LSM. The first test stores a value in sys_enter and read it back in sys_exit. The second test checks whether the kernel allows allocating task local storage in exit_creds() (which it should not). Signed-off-by: Song Liu <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/task_ls_recursion.c')
0 files changed, 0 insertions, 0 deletions