alistair23-linux/arch
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
..
alpha alpha: io: implement relaxed accessor macros for writes 2014-08-29 11:18:45 -07:00
arc ARC: [mm] Fix compilation breakage 2014-09-03 10:08:50 -07:00
arm net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00
arm64 A smattering of bug fixes across most architectures. 2014-09-06 16:42:12 -07:00
avr32
blackfin
c6x
cris
frv frv: Define cpu_relax_lowlatency() 2014-08-19 09:40:08 -05:00
hexagon flush_icache_range: export symbol to fix build errors 2014-08-29 16:28:17 -07:00
ia64 kexec: remove CONFIG_KEXEC dependency on crypto 2014-08-29 16:28:16 -07:00
m32r
m68k m68k: Wire up memfd_create 2014-09-01 10:28:00 +02:00
metag
microblaze microblaze: Wire-up memfd_create syscall 2014-08-21 10:19:28 +02:00
mips net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00
mn10300
openrisc
parisc
powerpc net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00
s390 net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00
score
sh flush_icache_range: export symbol to fix build errors 2014-08-29 16:28:17 -07:00
sparc net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00
tile flush_icache_range: export symbol to fix build errors 2014-08-29 16:28:17 -07:00
um
unicore32 unicore32: Fix build error 2014-08-31 17:08:12 -07:00
x86 net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00
xtensa Xtensa improvements for 3.17: 2014-08-31 17:08:42 -07:00
.gitignore
Kconfig