android_kernel_google_msm/arch/x86/net
Alexei Starovoitov 5f0a3f764b x86: bpf_jit: support negative offsets
commit fdfaf64e75 upstream.

Commit a998d43423 claimed to introduce negative offset support to x86 jit,
but it couldn't be working, since at the time of the execution
of LD+ABS or LD+IND instructions via call into
bpf_internal_load_pointer_neg_helper() the %edx (3rd argument of this func)
had junk value instead of access size in bytes (1 or 2 or 4).

Store size into %edx instead of %ecx (what original commit intended to do)

Fixes: a998d43423 ("bpf jit: Let the x86 jit handle negative offsets")
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Cc: Jan Seiffert <kaffeemonster@googlemail.com>
Cc: Eric Dumazet <edumazet@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-30 21:40:30 -07:00
..
bpf_jit.S x86: bpf_jit: support negative offsets 2014-03-30 21:40:30 -07:00
bpf_jit_comp.c bpf jit: Let the x86 jit handle negative offsets 2012-04-03 18:01:41 -04:00
Makefile net: filter: Just In Time compiler for x86-64 2011-04-27 23:05:08 -07:00