Re: [RFC PATCH bpf-next/net v1 02/13] bpf: Compare dynptr_id in regsafe

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

 



Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> writes:

> Now that PTR_TO_MEM can be invalidated due to skb going away, we must
> take care to be more careful in regsafe regarding state pruning. While
> ref_obj_id comparison will ensure that incorrect pruning is prevented,
> since we attach ref_obj_id of skb to the PTR_TO_MEM emanating from it,
> it is nonetheless clearer to also compare the dynptr_id as well.
>
> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>
> ---

Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>

[...]




[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