Re: [PATCH v6 bpf-next 1/3] bpf: Add bpf_copy_from_user_task() helper

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

 



On Fri, 21 Jan 2022 at 19:53, Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote:
>
> "On error dst buffer is zeroed out."? This is an explicit guarantee.
>

I appreciate that existing helpers already do this and it's good to
follow suit for consistency, but what is the rationale behind zeroing
memory on failure? Can't this step be skipped for performance and
leave it up to the callee to perform if they need it?



[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