]> git.baikalelectronics.ru Git - kernel.git/commit
test: bpf: add a testcase reduced from nmap
authorAlexei Starovoitov <ast@plumgrid.com>
Tue, 28 Oct 2014 22:11:43 +0000 (15:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 19:44:37 +0000 (15:44 -0400)
commit947fe1affa5e8d4b282b508d643f0bf6ebd3fa5a
tree9dbdb42a7a38ec47602aff64c76c74b177a091c7
parentba35e372be6522443c51f724ce2bd987017eb750
test: bpf: add a testcase reduced from nmap

nmap generates classic BPF programs to filter ARP packets with given target MAC
which triggered a bug in eBPF x64 JIT. The bug was fixed in
commit 11c3ccc1bb52 ("x86: bpf_jit: fix two bugs in eBPF JIT compiler")
This patch is adding a testcase in eBPF instructions (those that
were generated by classic->eBPF converter) to be processed by JIT.
The test is primarily targeting JIT compiler.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c