bpf: Add bpf_copy_from_user() helper.
authorAlexei Starovoitov <ast@kernel.org>
Thu, 27 Aug 2020 22:01:12 +0000 (15:01 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 28 Aug 2020 19:20:33 +0000 (21:20 +0200)
commit07be4c4a3e7a0db148e44b16c5190e753d1c8569
tree6069d0aed091b6505371ef8e405a6c5c7efd4c1c
parent1e6c62a8821557720a9b2ea9617359b264f2f67c
bpf: Add bpf_copy_from_user() helper.

Sleepable BPF programs can now use copy_from_user() to access user memory.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: KP Singh <kpsingh@google.com>
Link: https://lore.kernel.org/bpf/20200827220114.69225-4-alexei.starovoitov@gmail.com
include/linux/bpf.h
include/uapi/linux/bpf.h
kernel/bpf/helpers.c
kernel/trace/bpf_trace.c
tools/include/uapi/linux/bpf.h