diff options
author | Jordan Rome <[email protected]> | 2024-08-23 12:51:00 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-08-23 15:40:01 -0700 |
commit | 65ab5ac4df012388481d0414fcac1d5ac1721fb3 (patch) | |
tree | 2f677483b768b820295a519019d1b11b3a30c7b6 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 5772c3458bb8d17d763e0f411e1bae1bf4eda88d (diff) |
bpf: Add bpf_copy_from_user_str kfunc
This adds a kfunc wrapper around strncpy_from_user,
which can be called from sleepable BPF programs.
This matches the non-sleepable 'bpf_probe_read_user_str'
helper except it includes an additional 'flags'
param, which allows consumers to clear the entire
destination buffer on success or failure.
Signed-off-by: Jordan Rome <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions