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]

 



s/callee/caller

On Sat, 22 Jan 2022 at 09:58, Gabriele <phoenix1987@xxxxxxxxx> wrote:
>
> 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?



-- 
"Egli è scritto in lingua matematica, e i caratteri son triangoli,
cerchi, ed altre figure
geometriche, senza i quali mezzi è impossibile a intenderne umanamente parola;
senza questi è un aggirarsi vanamente per un oscuro laberinto."

-- G. Galilei, Il saggiatore.




[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