]> git.baikalelectronics.ru Git - kernel.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)
commit78e8b9e61ff010283eb3b4079bb082b3bcc72209
tree9acb2cba6d4a3dcb56a3a1d672984e86ce1d277c
parent8369c48e7665661cd684b28f08de732a6ef40943
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