lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 30 Jan 2019 18:26:53 -0800
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     Jesper Dangaard Brouer <brouer@...hat.com>
Cc:     Maciej Fijalkowski <maciejromanfijalkowski@...il.com>,
        daniel@...earbox.net, ast@...nel.org, netdev@...r.kernel.org
Subject: Re: [PATCH bpf-next v4 5/7] samples/bpf: Add a "force" flag to XDP
 samples

On Wed, 30 Jan 2019 20:08:59 +0100, Jesper Dangaard Brouer wrote:
> > I'll post a v5 with libbpf_strerror() usage when bpf_set_link_xdp_fd failed in
> > samples but at this point it will only give us a standard "device or resource
> > busy" error  
> 
> That is a good first iteration improvement.  And if QA complains, I can
> quickly diagnose and explain the issue, based on this generic message,
> without digging further and wasting more time.
> 
> > , so if we need some more meaningful message that libbpf will give
> > us then I guess we need to define a new libbpf_errno entry (as well as entry in
> > libbpf_strerror_table for this new errno value) and set the errno in
> > bpf_set_link_xdp_fd in case of a failure?  
> 
> It likely require more work do provide more meaningful messages, and I
> guess it is out-of-scope for your patchset.

Perhaps we could put the error message in extack instead?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ