From: Schichan Nicolas Date: Mon, 10 Dec 2012 13:49:39 +0000 (+0100) Subject: ARM: 7597/1: net: bpf_jit_32: fix kzalloc gfp/size mismatch. X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~53^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89c2e00978ada02a5b84b361faee954cbc7a0386;p=pandora-kernel.git 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 Signed-off-by: Russell King --- Reading git-diff-tree failed