Re: [PATCH bpf-next] libbpf: Fix unintentional success return code in bpf_object__load

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

 



On Wed, Aug 26, 2020 at 12:56 AM Alex Gartrell <alexgartrell@xxxxxxxxx> wrote:
>
> There are code paths where EINVAL is returned directly without setting
> errno. In that case, errno could be 0, which would mask the
> failure. For example, if a careless programmer set log_level to 10000
> out of laziness, they would have to spend a long time trying to figure
> out why.
>
> Fixes: 4f33ddb4e3e2 ("libbpf: Propagate EPERM to caller on program load")
> Signed-off-by: Alex Gartrell <alexgartrell@xxxxxxxxx>

Applied. Thanks



[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