Thread (6 messages) flat view 6 messages, 3 authors, 2017-11-14

Re: [PATCH net-next 2/3] bpf: change helper bpf_probe_read arg2 type to ARG_CONST_SIZE_OR_ZERO

From: Sergei Shtylyov <hidden>
Date: 2017-11-12 11:20:07

Hello!

On 11/12/2017 3:00 AM, Yonghong Song wrote:
The helper bpf_probe_read arg2 type is changed
from ARG_CONST_SIZE to ARG_CONST_SIZE_OR_ZERO to permit
size-0 buffer. Together with newer ARG_CONST_SIZE_OR_ZERO
semantics which allows non-NULL buffer with size 0,
this allows simpler bpf programs with verifier acceptance.
The prvious commit which changes ARG_CONST_SIZE_OR_ZERO semantics
    Previous.
has details on examples.

Signed-off-by: Yonghong Song <redacted>
Acked-by: Alexei Starovoitov <ast@kernel.org>
[...]

MBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help