diff options
| author | Anastasios Papagiannis <tasos.papagiannnis@gmail.com> | 2026-09-18 16:17:57 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-18 15:32:01 +0000 |
| commit | b5501fb38ff71ead49c25d389e298293414cd39a (patch) | |
| tree | d9262bd90fb1ac435b68c79a99b7f9353db1ed8a /include/linux/debugobjects.h | |
| parent | cca46f91737ca9e41c0f86b326e5eaf695069e40 (diff) | |
selftests/bpf: Test mm_struct user memory kfuncs with linux_binprm
Add a sleepable BPF LSM program attached to bprm_check_security to test
bpf_copy_from_user_mm() and bpf_copy_from_user_mm_str().
Starting at bprm->p, verify that bpf_copy_from_user_mm() can copy the
contiguous NUL-separated argument and environment data. Then use
bpf_copy_from_user_mm_str() to read each argument and environment string
separately, advancing the offset by the length returned from each call.
Signed-off-by: Anastasios Papagiannis <tasos.papagiannnis@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20260918131757.42802-6-tasos.papagiannnis@gmail.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
