diff options
author | Matt Bobrowski <[email protected]> | 2024-07-31 11:08:32 +0000 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-08-06 09:01:41 -0700 |
commit | ff358ada070fa1b64a6368147b2b56cc6a921847 (patch) | |
tree | b8a59e28c096fd6ddc51c41d8ee7b19d192cd378 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | d08e2045ebf0f5f2a97ad22cc7dae398b35354ba (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 <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Matt Bobrowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions