selftests/bpf: Check when bounds are not in the 32-bit range
authorXu Kuohai <xukuohai@huawei.com>
Wed, 22 Mar 2023 21:30:56 +0000 (22:30 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 22 Mar 2023 23:49:25 +0000 (16:49 -0700)
commit1a3148fc171f5cde11b4c24e808a953ff725a3e2
tree445695857ed647c430258e0894558f862ad42648
parent7be14c1c9030f73cc18b4ff23b78a0a081f16188
selftests/bpf: Check when bounds are not in the 32-bit range

Add cases to check if bound is updated correctly when 64-bit value is
not in the 32-bit range.

Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20230322213056.2470-2-daniel@iogearbox.net
tools/testing/selftests/bpf/verifier/bounds.c