]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: Add bpf_copy_from_user_task_str() kfunc
authorJordan Rome <linux@jordanrome.com>
Thu, 13 Feb 2025 15:21:24 +0000 (07:21 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 20 Feb 2025 01:00:06 +0000 (17:00 -0800)
commitf0f8a5b58f78f42ed665f81375a9e99a24853b03
tree10fda3ca7dec283d56ab6d120879c15a0e78ecc9
parentf0b79944e6f41b1a242b128fb2702378eb48fbd2
bpf: Add bpf_copy_from_user_task_str() kfunc

This new kfunc will be able to copy a zero-terminated C strings from
another task's address space. This is similar to `bpf_copy_from_user_str()`
but reads memory of specified task.

Signed-off-by: Jordan Rome <linux@jordanrome.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250213152125.1837400-2-linux@jordanrome.com
kernel/bpf/helpers.c