]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: x86: add missing 'shift by register' instructions to x64 eBPF JIT
authorAlexei Starovoitov <ast@plumgrid.com>
Mon, 25 Aug 2014 19:27:02 +0000 (12:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Aug 2014 00:33:56 +0000 (17:33 -0700)
commit31e7e4742fba632ce24e5e57c1683a42998efed9
tree0e02d3f1fe59b146dcaf2c2c3ef62b424485af72
parented3e2e95fe515e1409c18bfb036ff31b21d10e7b
bpf: x86: add missing 'shift by register' instructions to x64 eBPF JIT

'shift by register' operations are supported by eBPF interpreter, but were
accidently left out of x64 JIT compiler. Fix it and add a testcase.

Reported-by: Brendan Gregg <brendan.d.gregg@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Fixes: bc71b1354786 ("net: filter: x86: internal BPF JIT")
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/x86/net/bpf_jit_comp.c
lib/test_bpf.c