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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181121.161846.32682644237371562.davem@davemloft.net>
Date:   Wed, 21 Nov 2018 16:18:46 -0800 (PST)
From:   David Miller <davem@...emloft.net>
To:     lorenzo.bianconi@...hat.com
Cc:     netdev@...r.kernel.org, sgoutham@...ium.com
Subject: Re: net: thunderx: nicvf_xdp_setup error code path

From: Lorenzo Bianconi <lorenzo.bianconi@...hat.com>
Date: Tue, 20 Nov 2018 18:56:36 +0100

> Hi all,
> 
> looking at thunderx XDP support I noticed that nic->xdp_prog pointer in
> nicvf_xdp_setup is not actually set to NULL if bpf_prog_add fails but it
> is initialized with bpf_prog_add error code. xdp_prog pointer value is used in
> the driver to verify if XDP is currently enabled.
> Moreover nicvf_xdp_setup does not report to the userspace any error code in
> case of failure.
> I wrote the following patch to fix the reported issues. Please note I just
> compiled it, not actually tested since I have no thunderx nic at the moment.
> 
> @Sunil: could you please give it a whirl? If it is ok I will post a formal
> patch, thanks

Sunil did review this, so please resubmit formally.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ