On Thu, Apr 17, 2025 at 8:16 AM KaFai Wan mannkafai@gmail.com wrote:
Adding support to access arguments with const void pointer arguments in tracing programs.
Currently we allow tracing programs to access void pointers. If we try to access argument which is pointer to const void like 2nd argument in kfree, verifier will fail to load the program with;
0: R1=ctx() R10=fp0 ; asm volatile ("r2 = *(u64 *)(r1 + 8); "); 0: (79) r2 = *(u64 *)(r1 +8) func 'kfree' arg1 type UNKNOWN is not a struct
Changing the is_int_ptr to void and generic integer check and renaming it to is_void_or_int_ptr.
Cc: Leon Hwang leon.hwang@linux.dev Signed-off-by: KaFai Wan kafai.wan@hotmail.com
The patch looks good, but your SOB is different from From. Please use the same in SOB. And keep Acks when you respin.
pw-bot: cr