diff options
author | Martin KaFai Lau <martin.lau@kernel.org> | 2024-10-23 16:47:57 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-10-24 10:25:59 -0700 |
commit | cbf9f849a3e86f1b7c041dfbeeae1c1fff0ddc8d (patch) | |
tree | c51c8edf494b053946be46ee1a167aac04d813b8 /tools/testing/selftests/bpf/prog_tests/token.c | |
parent | 51fff4083372381e680724dde7ac3e859f9e3a0a (diff) |
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 <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20241023234759.860539-11-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/token.c')
0 files changed, 0 insertions, 0 deletions