]> git.hungrycats.org Git - linux/commit
selftests/bpf: Add tests for bpf_copy_from_user_str kfunc.
authorJordan Rome <linux@jordanrome.com>
Fri, 23 Aug 2024 19:51:01 +0000 (12:51 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 23 Aug 2024 22:40:11 +0000 (15:40 -0700)
commitddc3d98807dca05ad10f4c76d13019c428302719
tree797b9465fc0c6c855e82ca256d30cc1c3f597b14
parent65ab5ac4df012388481d0414fcac1d5ac1721fb3
selftests/bpf: Add tests for bpf_copy_from_user_str kfunc.

This adds tests for both the happy path and
the error path.

Signed-off-by: Jordan Rome <linux@jordanrome.com>
Link: https://lore.kernel.org/r/20240823195101.3621028-2-linux@jordanrome.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/attach_probe.c
tools/testing/selftests/bpf/prog_tests/read_vsyscall.c
tools/testing/selftests/bpf/progs/read_vsyscall.c
tools/testing/selftests/bpf/progs/test_attach_probe.c