Skip to content

Commit b073b82

Browse files
borkmannAlexei Starovoitov
authored andcommitted
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 torvalds#489/1 verifier_int_ptr/arg pointer to long uninitialized:OK torvalds#489/2 verifier_int_ptr/arg pointer to long half-uninitialized:OK torvalds#489/3 verifier_int_ptr/arg pointer to long misaligned:OK torvalds#489/4 verifier_int_ptr/arg pointer to long size < sizeof(long):OK torvalds#489/5 verifier_int_ptr/arg pointer to long initialized:OK torvalds#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>
1 parent b8e188f commit b073b82

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/testing/selftests/bpf/progs/verifier_int_ptr.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "bpf_misc.h"
77

88
SEC("socket")
9-
__description("ARG_PTR_TO_LONG uninitialized")
9+
__description("arg pointer to long uninitialized")
1010
__success
1111
__naked void arg_ptr_to_long_uninitialized(void)
1212
{
@@ -34,7 +34,7 @@ __naked void arg_ptr_to_long_uninitialized(void)
3434
}
3535

3636
SEC("socket")
37-
__description("ARG_PTR_TO_LONG half-uninitialized")
37+
__description("arg pointer to long half-uninitialized")
3838
__success
3939
__retval(0)
4040
__naked void ptr_to_long_half_uninitialized(void)
@@ -64,7 +64,7 @@ __naked void ptr_to_long_half_uninitialized(void)
6464
}
6565

6666
SEC("cgroup/sysctl")
67-
__description("ARG_PTR_TO_LONG misaligned")
67+
__description("arg pointer to long misaligned")
6868
__failure __msg("misaligned stack access off 0+-20+0 size 8")
6969
__naked void arg_ptr_to_long_misaligned(void)
7070
{
@@ -95,7 +95,7 @@ __naked void arg_ptr_to_long_misaligned(void)
9595
}
9696

9797
SEC("cgroup/sysctl")
98-
__description("ARG_PTR_TO_LONG size < sizeof(long)")
98+
__description("arg pointer to long size < sizeof(long)")
9999
__failure __msg("invalid indirect access to stack R4 off=-4 size=8")
100100
__naked void to_long_size_sizeof_long(void)
101101
{
@@ -124,7 +124,7 @@ __naked void to_long_size_sizeof_long(void)
124124
}
125125

126126
SEC("cgroup/sysctl")
127-
__description("ARG_PTR_TO_LONG initialized")
127+
__description("arg pointer to long initialized")
128128
__success
129129
__naked void arg_ptr_to_long_initialized(void)
130130
{

0 commit comments

Comments
 (0)