aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/global_data_init.c
diff options
context:
space:
mode:
authorMatt Bobrowski <mattbobrowski@google.com>2024-07-31 11:08:32 +0000
committerAlexei Starovoitov <ast@kernel.org>2024-08-06 09:01:41 -0700
commitff358ada070fa1b64a6368147b2b56cc6a921847 (patch)
treeb8a59e28c096fd6ddc51c41d8ee7b19d192cd378 /tools/testing/selftests/bpf/prog_tests/global_data_init.c
parentd08e2045ebf0f5f2a97ad22cc7dae398b35354ba (diff)
selftests/bpf: add negative tests for new VFS based BPF kfuncs
Add a bunch of negative selftests responsible for asserting that the BPF verifier successfully rejects a BPF program load when the underlying BPF program misuses one of the newly introduced VFS based BPF kfuncs. The following VFS based BPF kfuncs are extensively tested within this new selftest: * struct file *bpf_get_task_exe_file(struct task_struct *); * void bpf_put_file(struct file *); * int bpf_path_d_path(struct path *, char *, size_t); Acked-by: Christian Brauner <brauner@kernel.org> Acked-by: Song Liu <song@kernel.org> Signed-off-by: Matt Bobrowski <mattbobrowski@google.com> Link: https://lore.kernel.org/r/20240731110833.1834742-3-mattbobrowski@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions