Home
last modified time | relevance | path

Searched hist:"89 c2e00978ada02a5b84b361faee954cbc7a0386" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.cdiff 89c2e00978ada02a5b84b361faee954cbc7a0386 Mon Dec 10 07:49:39 CST 2012 Schichan Nicolas <nschichan@freebox.fr> 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>