bpf: Add a possibly-zero-sized read test
authorAndrei Matei <andreimatei1@gmail.com>
Thu, 21 Dec 2023 23:22:25 +0000 (18:22 -0500)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 3 Jan 2024 18:37:56 +0000 (10:37 -0800)
commit72187506de4f19fcc8ae63a2b2f36d75e5259d9d
treed58e59ba6536fc754d8aed14bd7ef6a2a3fe2be0
parent8a021e7fa10576eeb3938328f39bbf98fe7d4715
bpf: Add a possibly-zero-sized read test

This patch adds a test for the condition that the previous patch mucked
with - illegal zero-sized helper memory access. As opposed to existing
tests, this new one uses a size whose lower bound is zero, as opposed to
a known-zero one.

Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231221232225.568730-3-andreimatei1@gmail.com
tools/testing/selftests/bpf/progs/verifier_helper_value_access.c