Re: [PATCH] tools: bpf_jit_disasm: check for klogctl failure

2016-05-08 Thread David Miller
From: Daniel Borkmann Date: Fri, 06 May 2016 00:46:56 +0200 > On 05/06/2016 12:39 AM, Colin King wrote: >> From: Colin Ian King >> >> klogctl can fail and return -ve len, so check for this and >> return NULL to avoid passing a (size_t)-1 to

Re: [PATCH] tools: bpf_jit_disasm: check for klogctl failure

2016-05-08 Thread David Miller
From: Daniel Borkmann Date: Fri, 06 May 2016 00:46:56 +0200 > On 05/06/2016 12:39 AM, Colin King wrote: >> From: Colin Ian King >> >> klogctl can fail and return -ve len, so check for this and >> return NULL to avoid passing a (size_t)-1 to malloc. >> >> Signed-off-by: Colin Ian King > > [

Re: [PATCH] tools: bpf_jit_disasm: check for klogctl failure

2016-05-05 Thread Daniel Borkmann
On 05/06/2016 12:39 AM, Colin King wrote: From: Colin Ian King klogctl can fail and return -ve len, so check for this and return NULL to avoid passing a (size_t)-1 to malloc. Signed-off-by: Colin Ian King [ would be nice to get Cc'ed in

Re: [PATCH] tools: bpf_jit_disasm: check for klogctl failure

2016-05-05 Thread Daniel Borkmann
On 05/06/2016 12:39 AM, Colin King wrote: From: Colin Ian King klogctl can fail and return -ve len, so check for this and return NULL to avoid passing a (size_t)-1 to malloc. Signed-off-by: Colin Ian King [ would be nice to get Cc'ed in future ... ] Acked-by: Daniel Borkmann

[PATCH] tools: bpf_jit_disasm: check for klogctl failure

2016-05-05 Thread Colin King
From: Colin Ian King klogctl can fail and return -ve len, so check for this and return NULL to avoid passing a (size_t)-1 to malloc. Signed-off-by: Colin Ian King --- tools/net/bpf_jit_disasm.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH] tools: bpf_jit_disasm: check for klogctl failure

2016-05-05 Thread Colin King
From: Colin Ian King klogctl can fail and return -ve len, so check for this and return NULL to avoid passing a (size_t)-1 to malloc. Signed-off-by: Colin Ian King --- tools/net/bpf_jit_disasm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/net/bpf_jit_disasm.c