selftests: bpf: add zero extend checks for ALU32 and/or/xor
authorBjörn Töpel <bjorn.topel@gmail.com>
Wed, 22 May 2019 09:23:23 +0000 (11:23 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 23 May 2019 13:55:17 +0000 (15:55 +0200)
commit00d8304553de529802430799d2b2566fd32859d4
tree473f9c1df30dac8de3b4ada7c41cfe0a3c8e1838
parentfe121ee531d1362810bfd30f38a1b88b1d3d376c
selftests: bpf: add zero extend checks for ALU32 and/or/xor

Add three tests to test_verifier/basic_instr that make sure that the
high 32-bits of the destination register is cleared after an ALU32
and/or/xor.

Signed-off-by: Björn Töpel <bjorn.topel@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/verifier/basic_instr.c