summaryrefslogtreecommitdiffstats
path: root/lib/nlattr.c
diff options
context:
space:
mode:
authorSchichan Nicolas <nschichan@freebox.fr>2012-12-10 14:49:39 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-12-11 00:16:59 +0000
commit89c2e00978ada02a5b84b361faee954cbc7a0386 (patch)
treea6232be1fa89adcecf99ca91bcbcde4d06744047 /lib/nlattr.c
parent026b7c6bf0bf044aa03e2affbda73b6c6a302538 (diff)
downloadop-kernel-dev-89c2e00978ada02a5b84b361faee954cbc7a0386.zip
op-kernel-dev-89c2e00978ada02a5b84b361faee954cbc7a0386.tar.gz
ARM: 7597/1: net: bpf_jit_32: fix kzalloc gfp/size mismatch.
Official prototype for kzalloc is: void *kzalloc(size_t, gfp_t); The ARM bpf_jit code was having the assumption that it was: void *kzalloc(gfp_t, size); This was resulting the use of some random GFP flags depending on the size requested and some random overflows once the really needed size was more than the value of GFP_KERNEL. This bug was present since the original inclusion of bpf_jit for ARM (ddecdfce: ARM: 7259/3: net: JIT compiler for packet filters). Signed-off-by: Nicolas Schichan <nschichan@freebox.fr> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud