Re: [PATCH bpf-next v1 4/8] bpf: attribute __arg_untrusted for global function parameters

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

 



On Fri, 2025-07-04 at 21:15 +0200, Kumar Kartikeya Dwivedi wrote:

[...]

> Yeah, so if the user specifies a type and has co-re enabled, they're
> accessing a kernel struct.
> If they're doing it without co-re, it's broken today already, or they
> know the struct is fixed in layout somehow so it's ok.
> If not, they want to access things at fixed offsets. So we can just
> use the type they're using to model untrusted derefs.
> 
> So always using prog BTF makes sense to me.

Ok, I'm switching to always using prog BTF.





[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