summaryrefslogtreecommitdiffstats
path: root/tools/net
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@plumgrid.com>2014-03-10 15:56:51 -0700
committerDavid S. Miller <davem@davemloft.net>2014-03-11 23:25:22 -0400
commitfdfaf64e75397567257e1051931f9a3377360665 (patch)
tree019fc2c8cbb011ddf715659316d83ce58ed1ab76 /tools/net
parent20a599bec95a52fa72432b2376a2ce47c5bb68fb (diff)
downloadlinux-fdfaf64e75397567257e1051931f9a3377360665.tar.gz
linux-fdfaf64e75397567257e1051931f9a3377360665.tar.bz2
linux-fdfaf64e75397567257e1051931f9a3377360665.zip
x86: bpf_jit: support negative offsets
Commit a998d4342337 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: a998d4342337 ("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>
Diffstat (limited to 'tools/net')
0 files changed, 0 insertions, 0 deletions