@@ -149,7 +149,7 @@ int ringbuf_release_uninit_dynptr(void *ctx)
149149
150150/* A dynptr can't be used after it has been invalidated */
151151SEC ("?raw_tp" )
152- __failure __msg ("Expected an initialized dynptr as arg #3 " )
152+ __failure __msg ("Expected an initialized dynptr as arg #2 " )
153153int use_after_invalid (void * ctx )
154154{
155155 struct bpf_dynptr ptr ;
@@ -428,7 +428,7 @@ int invalid_helper2(void *ctx)
428428
429429/* A bpf_dynptr is invalidated if it's been written into */
430430SEC ("?raw_tp" )
431- __failure __msg ("Expected an initialized dynptr as arg #1 " )
431+ __failure __msg ("Expected an initialized dynptr as arg #0 " )
432432int invalid_write1 (void * ctx )
433433{
434434 struct bpf_dynptr ptr ;
@@ -1407,7 +1407,7 @@ int invalid_slice_rdwr_rdonly(struct __sk_buff *skb)
14071407
14081408/* bpf_dynptr_adjust can only be called on initialized dynptrs */
14091409SEC ("?raw_tp" )
1410- __failure __msg ("Expected an initialized dynptr as arg #1 " )
1410+ __failure __msg ("Expected an initialized dynptr as arg #0 " )
14111411int dynptr_adjust_invalid (void * ctx )
14121412{
14131413 struct bpf_dynptr ptr = {};
@@ -1420,7 +1420,7 @@ int dynptr_adjust_invalid(void *ctx)
14201420
14211421/* bpf_dynptr_is_null can only be called on initialized dynptrs */
14221422SEC ("?raw_tp" )
1423- __failure __msg ("Expected an initialized dynptr as arg #1 " )
1423+ __failure __msg ("Expected an initialized dynptr as arg #0 " )
14241424int dynptr_is_null_invalid (void * ctx )
14251425{
14261426 struct bpf_dynptr ptr = {};
@@ -1433,7 +1433,7 @@ int dynptr_is_null_invalid(void *ctx)
14331433
14341434/* bpf_dynptr_is_rdonly can only be called on initialized dynptrs */
14351435SEC ("?raw_tp" )
1436- __failure __msg ("Expected an initialized dynptr as arg #1 " )
1436+ __failure __msg ("Expected an initialized dynptr as arg #0 " )
14371437int dynptr_is_rdonly_invalid (void * ctx )
14381438{
14391439 struct bpf_dynptr ptr = {};
@@ -1446,7 +1446,7 @@ int dynptr_is_rdonly_invalid(void *ctx)
14461446
14471447/* bpf_dynptr_size can only be called on initialized dynptrs */
14481448SEC ("?raw_tp" )
1449- __failure __msg ("Expected an initialized dynptr as arg #1 " )
1449+ __failure __msg ("Expected an initialized dynptr as arg #0 " )
14501450int dynptr_size_invalid (void * ctx )
14511451{
14521452 struct bpf_dynptr ptr = {};
@@ -1459,7 +1459,7 @@ int dynptr_size_invalid(void *ctx)
14591459
14601460/* Only initialized dynptrs can be cloned */
14611461SEC ("?raw_tp" )
1462- __failure __msg ("Expected an initialized dynptr as arg #1 " )
1462+ __failure __msg ("Expected an initialized dynptr as arg #0 " )
14631463int clone_invalid1 (void * ctx )
14641464{
14651465 struct bpf_dynptr ptr1 = {};
@@ -1493,7 +1493,7 @@ int clone_invalid2(struct xdp_md *xdp)
14931493
14941494/* Invalidating a dynptr should invalidate its clones */
14951495SEC ("?raw_tp" )
1496- __failure __msg ("Expected an initialized dynptr as arg #3 " )
1496+ __failure __msg ("Expected an initialized dynptr as arg #2 " )
14971497int clone_invalidate1 (void * ctx )
14981498{
14991499 struct bpf_dynptr clone ;
@@ -1514,7 +1514,7 @@ int clone_invalidate1(void *ctx)
15141514
15151515/* Invalidating a dynptr should invalidate its parent */
15161516SEC ("?raw_tp" )
1517- __failure __msg ("Expected an initialized dynptr as arg #3 " )
1517+ __failure __msg ("Expected an initialized dynptr as arg #2 " )
15181518int clone_invalidate2 (void * ctx )
15191519{
15201520 struct bpf_dynptr ptr ;
@@ -1535,7 +1535,7 @@ int clone_invalidate2(void *ctx)
15351535
15361536/* Invalidating a dynptr should invalidate its siblings */
15371537SEC ("?raw_tp" )
1538- __failure __msg ("Expected an initialized dynptr as arg #3 " )
1538+ __failure __msg ("Expected an initialized dynptr as arg #2 " )
15391539int clone_invalidate3 (void * ctx )
15401540{
15411541 struct bpf_dynptr ptr ;
@@ -1723,7 +1723,7 @@ __noinline long global_call_bpf_dynptr(const struct bpf_dynptr *dynptr)
17231723}
17241724
17251725SEC ("?raw_tp" )
1726- __failure __msg ("arg#1 expected pointer to stack or const struct bpf_dynptr" )
1726+ __failure __msg ("arg#0 expected pointer to stack or const struct bpf_dynptr" )
17271727int test_dynptr_reg_type (void * ctx )
17281728{
17291729 struct task_struct * current = NULL ;
0 commit comments