]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add tests for bpf_copy_from_user_task_str
authorJordan Rome <linux@jordanrome.com>
Thu, 13 Feb 2025 15:21:25 +0000 (07:21 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 20 Feb 2025 01:01:36 +0000 (17:01 -0800)
commit7042882abc04c720ea798198981943502f4221fe
tree8dfa8f517d97844e282c0aed41d150fbc8031380
parentf0f8a5b58f78f42ed665f81375a9e99a24853b03
selftests/bpf: Add tests for bpf_copy_from_user_task_str

This adds tests for both the happy path and the
error path (with and without the BPF_F_PAD_ZEROS flag).

Signed-off-by: Jordan Rome <linux@jordanrome.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250213152125.1837400-3-linux@jordanrome.com
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
tools/testing/selftests/bpf/prog_tests/read_vsyscall.c
tools/testing/selftests/bpf/progs/bpf_iter_tasks.c
tools/testing/selftests/bpf/progs/read_vsyscall.c