Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Rename ARG_PTR_TO_LONG test description

Given we got rid of ARG_PTR_TO_LONG, change the test case description to
avoid potential confusion:

# ./vmtest.sh -- ./test_progs -t verifier_int_ptr
[...]
./test_progs -t verifier_int_ptr
[ 1.610563] bpf_testmod: loading out-of-tree module taints kernel.
[ 1.611049] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
#489/1 verifier_int_ptr/arg pointer to long uninitialized:OK
#489/2 verifier_int_ptr/arg pointer to long half-uninitialized:OK
#489/3 verifier_int_ptr/arg pointer to long misaligned:OK
#489/4 verifier_int_ptr/arg pointer to long size < sizeof(long):OK
#489/5 verifier_int_ptr/arg pointer to long initialized:OK
#489 verifier_int_ptr:OK
Summary: 1/5 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20240913191754.13290-7-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Daniel Borkmann and committed by
Alexei Starovoitov
b073b82d b8e188f0

+5 -5
+5 -5
tools/testing/selftests/bpf/progs/verifier_int_ptr.c
··· 6 6 #include "bpf_misc.h" 7 7 8 8 SEC("socket") 9 - __description("ARG_PTR_TO_LONG uninitialized") 9 + __description("arg pointer to long uninitialized") 10 10 __success 11 11 __naked void arg_ptr_to_long_uninitialized(void) 12 12 { ··· 34 34 } 35 35 36 36 SEC("socket") 37 - __description("ARG_PTR_TO_LONG half-uninitialized") 37 + __description("arg pointer to long half-uninitialized") 38 38 __success 39 39 __retval(0) 40 40 __naked void ptr_to_long_half_uninitialized(void) ··· 64 64 } 65 65 66 66 SEC("cgroup/sysctl") 67 - __description("ARG_PTR_TO_LONG misaligned") 67 + __description("arg pointer to long misaligned") 68 68 __failure __msg("misaligned stack access off 0+-20+0 size 8") 69 69 __naked void arg_ptr_to_long_misaligned(void) 70 70 { ··· 95 95 } 96 96 97 97 SEC("cgroup/sysctl") 98 - __description("ARG_PTR_TO_LONG size < sizeof(long)") 98 + __description("arg pointer to long size < sizeof(long)") 99 99 __failure __msg("invalid indirect access to stack R4 off=-4 size=8") 100 100 __naked void to_long_size_sizeof_long(void) 101 101 { ··· 124 124 } 125 125 126 126 SEC("cgroup/sysctl") 127 - __description("ARG_PTR_TO_LONG initialized") 127 + __description("arg pointer to long initialized") 128 128 __success 129 129 __naked void arg_ptr_to_long_initialized(void) 130 130 {