Re: [PATCH v5 bpf-next 3/5] bpf: Add bpf_copy_from_user() helper.

From
KP Singh <hidden>
Date
2020-06-30 11:41:36
Also in
bpf
Reply to
Alexei Starovoitov, 2020-06-30
On 29-Jun 21:33, Alexei Starovoitov wrote:
From: Alexei Starovoitov <ast@kernel.org>

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

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <redacted>
Really looking forward!

Acked-by: KP Singh <redacted>
quoted hunk ↗ jump to hunk
---
 include/linux/bpf.h            |  1 +
 include/uapi/linux/bpf.h       | 11 ++++++++++-
 kernel/bpf/helpers.c           | 22 ++++++++++++++++++++++
 kernel/trace/bpf_trace.c       |  2 ++
 tools/include/uapi/linux/bpf.h | 11 ++++++++++-
 5 files changed, 45 insertions(+), 2 deletions(-)
[...]
+	/* */
 
 /* integer value in 'imm' field of BPF_CALL instruction selects which helper
  * function eBPF program intends to call
-- 
2.23.0
Thread (20 messages) 20 messages, 6 authors, last reply 2020-07-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help