diff options
author | Song Liu <songliubraving@fb.com> | 2021-02-26 02:43:16 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-02-26 22:51:48 +0300 |
commit | 1f87dcf116adedd6b9f47258d4fdf4fa9ce74002 (patch) | |
tree | db016f90ba6da4f318862d36d17f97ffaf237cf6 /lib/test_stackinit.c | |
parent | bc235cdb423a2daed6f337676006a66557429cd1 (diff) | |
download | linux-1f87dcf116adedd6b9f47258d4fdf4fa9ce74002.tar.xz |
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 <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210225234319.336131-4-songliubraving@fb.com
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions