]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 Sep 2024 19:17:51 +0000 (21:17 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Sep 2024 20:17:56 +0000 (13:17 -0700)
commitb8e188f023e07a733b47d5865311ade51878fe40
tree925ab3c4507772df4e1d83e316d544a3b5ddd06a
parent4b3786a6c5397dc220b1483d8e2f4867743e966f
selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test

The assumption of 'in privileged mode reads from uninitialized stack locations
are permitted' is not quite correct since the verifier was probing for read
access rather than write access. Both tests need to be annotated as __success
for privileged and unprivileged.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240913191754.13290-6-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_int_ptr.c