bpf, selftests: Add a verifier test for assigning 32bit reg states to 64bit ones
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 29 May 2020 17:29:18 +0000 (10:29 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 May 2020 20:34:06 +0000 (13:34 -0700)
commitcf66c29bd7534813d2e1971fab71e25fe87c7e0a
treeeb3bc7075c713962947025b9927e9e71eaeb5a26
parente3effcdfe02eb20f23d4f1833c75658ddc49e65a
bpf, selftests: Add a verifier test for assigning 32bit reg states to 64bit ones

Added a verifier test for assigning 32bit reg states to
64bit where 32bit reg holds a constant value of 0.

Without previous kernel verifier.c fix, the test in
this patch will fail.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/159077335867.6014.2075350327073125374.stgit@john-Precision-5820-Tower
tools/testing/selftests/bpf/verifier/bounds.c