]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06906326630bcb0d42d06adf1d4aeb5b9167f1e8
treeeb3bc7075c713962947025b9927e9e71eaeb5a26
parentb9055dae171b73e5c296b87003983a63fab5066f
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