selftests/bpf: Add a selftest with not-8-byte aligned BPF_ST
authorYonghong Song <yonghong.song@linux.dev>
Wed, 10 Jan 2024 05:13:55 +0000 (21:13 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jan 2024 22:40:23 +0000 (14:40 -0800)
commit6ae99ac8b7da30c9fdb15e380624dbc41f8200c8
treef5c6c46df17c2350447ed9c8bad37bc2a4aeee47
parent9a4c57f52b5e0de3a6b1f40c5b656730ce33ee01
selftests/bpf: Add a selftest with not-8-byte aligned BPF_ST

Add a selftest with a 4 bytes BPF_ST of 0 where the store is not
8-byte aligned. The goal is to ensure that STACK_ZERO is properly
marked in stack slots and the STACK_ZERO value can propagate
properly during the load.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240110051355.2737232-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_spill_fill.c