]> git.baikalelectronics.ru Git - kernel.git/commit
test: bpf: extend "load 64-bit immediate" testcase
authorXi Wang <xi.wang@gmail.com>
Sat, 9 May 2015 08:14:30 +0000 (04:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 May 2015 15:02:27 +0000 (11:02 -0400)
commitbcd06caa22fe5c2d1cf53feb05e76c7bb40b199a
treedf0a49c8d5b06eb7c56781228d22599b88a08c6b
parent1220677f94f75f73d9ad981fe20eebeb40fdc05a
test: bpf: extend "load 64-bit immediate" testcase

Extend the testcase to catch a signedness bug in the arm64 JIT:

test_bpf: #58 load 64-bit immediate jited:1 ret -1 != 1 FAIL (1 times)

This is useful to ensure other JITs won't have a similar bug.

Link: https://lkml.org/lkml/2015/5/8/458
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Xi Wang <xi.wang@gmail.com>
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