]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: bpf_rdonly_cast u{8,16,32,64} access tests
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 27 Jun 2025 01:55:39 +0000 (18:55 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 28 Jun 2025 01:55:28 +0000 (18:55 -0700)
commitc4b1be928ea05add0e0f9334e5bc44932395782e
treeac89de1873c4d3d7608d5d4edd17cee4e7181e29
parentffaff1804e2ca1e88caa9d2e13ac6b4b7ecf011c
selftests/bpf: bpf_rdonly_cast u{8,16,32,64} access tests

Tests with aligned and misaligned memory access of different sizes via
pointer returned by bpf_rdonly_cast().

Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250627015539.1439656-1-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/mem_rdonly_untrusted.c