]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests: bpf: update testcases for BPF_ALU | BPF_ARSH
authorJiong Wang <jiong.wang@netronome.com>
Wed, 5 Dec 2018 18:52:36 +0000 (13:52 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 7 Dec 2018 21:30:48 +0000 (13:30 -0800)
commitc099f3f413f354ecdd518e4be6a232592e91d5b9
tree376ae3306dbeee7a83d76f705159e7de1d61b464
parentc49f7dbd4f9c2c49df7fc0f5b50c1350ee7e01ee
selftests: bpf: update testcases for BPF_ALU | BPF_ARSH

"arsh32 on imm" and "arsh32 on reg" now are accepted. Also added two new
testcases to make sure arsh32 won't be treated as arsh64 during
interpretation or JIT code-gen for which case the high bits will be moved
into low halve that the testcases could catch them.

Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_verifier.c