Re: [PATCH 1/2] bpf: Do not dereference user pointer in bpf_test_finish().

2017-05-02 Thread Daniel Borkmann
On 05/02/2017 05:36 PM, David Miller wrote: Instead, pass the kattr in which has a kernel side copy of this data structure from userspace already. Fix based upon a suggestion from Alexei Starovoitov. Signed-off-by: David S. Miller Acked-by: Daniel Borkmann

[PATCH 1/2] bpf: Do not dereference user pointer in bpf_test_finish().

2017-05-02 Thread David Miller
Instead, pass the kattr in which has a kernel side copy of this data structure from userspace already. Fix based upon a suggestion from Alexei Starovoitov. Signed-off-by: David S. Miller --- net/bpf/test_run.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/bpf