diff options
| author | Martin KaFai Lau <[email protected]> | 2024-10-23 23:47:57 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-10-24 17:25:59 +0000 |
| commit | cbf9f849a3e86f1b7c041dfbeeae1c1fff0ddc8d (patch) | |
| tree | c51c8edf494b053946be46ee1a167aac04d813b8 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c | |
| parent | selftests/bpf: Test a uptr struct spanning across pages. (diff) | |
| download | kernel-cbf9f849a3e86f1b7c041dfbeeae1c1fff0ddc8d.tar.gz kernel-cbf9f849a3e86f1b7c041dfbeeae1c1fff0ddc8d.zip | |
selftests/bpf: Add update_elem failure test for task storage uptr
This patch test the following failures in syscall update_elem
1. The first update_elem(BPF_F_LOCK) should be EOPNOTSUPP. syscall.c takes
care of unpinning the uptr.
2. The second update_elem(BPF_EXIST) fails. syscall.c takes care of
unpinning the uptr.
3. The forth update_elem(BPF_NOEXIST) fails. bpf_local_storage_update
takes care of unpinning the uptr.
Signed-off-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions
