WSL2-Linux-Kernel/arch/sparc/net
Daniel Borkmann 286aad3c40 net: bpf: be friendly to kmemcheck
Reported by Mikulas Patocka, kmemcheck currently barks out a
false positive since we don't have special kmemcheck annotation
for bitfields used in bpf_prog structure.

We currently have jited:1, len:31 and thus when accessing len
while CONFIG_KMEMCHECK enabled, kmemcheck throws a warning that
we're reading uninitialized memory.

As we don't need the whole bit universe for pages member, we
can just split it to u16 and use a bool flag for jited instead
of a bitfield.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-09 16:58:56 -07:00
..
Makefile net: filter: Just In Time compiler for sparc 2012-04-16 23:15:14 -04:00
bpf_jit.h net: filter: Fix some more small issues in sparc JIT. 2012-04-17 16:43:46 -04:00
bpf_jit_asm.S net: filter: Fix some more small issues in sparc JIT. 2012-04-17 16:43:46 -04:00
bpf_jit_comp.c net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00