Re: [PATCH bpf-next 06/10] bpf: add support for BTF pointers to interpreter

2019-10-07 Thread Andrii Nakryiko
On Fri, Oct 4, 2019 at 10:07 PM Alexei Starovoitov wrote: > > Pointer to BTF object is a pointer to kernel object or NULL. > The memory access in the interpreter has to be done via probe_kernel_read > to avoid page faults. > > Signed-off-by: Alexei Starovoitov > --- LGTM. Acked-by: Andrii Nakry

[PATCH bpf-next 06/10] bpf: add support for BTF pointers to interpreter

2019-10-04 Thread Alexei Starovoitov
Pointer to BTF object is a pointer to kernel object or NULL. The memory access in the interpreter has to be done via probe_kernel_read to avoid page faults. Signed-off-by: Alexei Starovoitov --- include/linux/filter.h | 3 +++ kernel/bpf/core.c | 19 +++ kernel/bpf/verifier