Re: [PATCH bpf-next v1 8/8] selftests/bpf: tests for __arg_untrusted void * global func params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2025-07-04 at 20:12 +0200, Kumar Kartikeya Dwivedi wrote:
> On Thu, 3 Jul 2025 at 00:44, Eduard Zingerman <eddyz87@xxxxxxxxx> wrote:
> > 
> > Check usage of __arg_untrusted parameters of primitive type:
> > - passing of {trusted, untrusted, map value, scalar value, values with
> >   variable offset} to untrusted `void *` or `char *` is ok;
> > - varifier represents such parameters as rdonly_untrusted_mem(sz=0).
> > 
> > Signed-off-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
> > ---
> 
> LGTM, but can we also exercise BTF_KIND_ENUM{,64}? Since you
> explicitly handle both of them. I guess char * covers BTF_KIND_INT, so
> we don't need more cases (but up to you).

Sure, will add.

[...]





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux