]> git.karo-electronics.de Git - linux-beck.git/commit
test_bpf: add tests checking that JIT/interpreter sets A and X to 0.
authorNicolas Schichan <nschichan@freebox.fr>
Tue, 4 Aug 2015 13:19:12 +0000 (15:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 05:02:32 +0000 (22:02 -0700)
commit86bf1721b2263607588b23b22e78c971379972b5
tree9acb2cba6d4a3dcb56a3a1d672984e86ce1d277c
parent08fcb08fc06758411d099bcd6a60d6cdee2d50a7
test_bpf: add tests checking that JIT/interpreter sets A and X to 0.

It is mandatory for the JIT or interpreter to reset the A and X
registers to 0 before running the filter. Check that it is the case on
various ALU and JMP instructions.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c