]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a3204c2fc788d17905949462e647c48be964851
tree473f9c1df30dac8de3b4ada7c41cfe0a3c8e1838
parentce91727fff6c7bbb3dc455183928698c008dc373
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