]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Some basic __uptr tests
authorKui-Feng Lee <thinker.li@gmail.com>
Wed, 23 Oct 2024 23:47:55 +0000 (16:47 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 24 Oct 2024 17:25:59 +0000 (10:25 -0700)
commit4579b4a4279ec7df9499943f764da03ae837021c
tree3212a350815701172f62d7c3ff05947696361444
parent7aa12b8d9f24e9623effa12a3fc330de056d572e
selftests/bpf: Some basic __uptr tests

Make sure the memory of uptrs have been mapped to the kernel properly.
Also ensure the values of uptrs in the kernel haven't been copied
to userspace.

It also has the syscall update_elem/delete_elem test to test the
pin/unpin code paths.

Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20241023234759.860539-9-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
tools/testing/selftests/bpf/progs/task_ls_uptr.c [new file with mode: 0644]
tools/testing/selftests/bpf/uptr_test_common.h [new file with mode: 0644]