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
This commit is contained in:
Jordan Rome 2025-02-13 07:21:25 -08:00 • committed by Andrii Nakryiko
commit 7042882abc
4 changed files with 188 additions and 2 deletions