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: <20230721150212.h4vg6ueugifnfss6@skbuf>
Date: Fri, 21 Jul 2023 18:02:12 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: Asmaa Mnebhi <asmaa@...dia.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
	pabeni@...hat.com, netdev@...r.kernel.org,
	sridhar.samudrala@...el.com, maciej.fijalkowski@...el.com,
	davthompson@...dia.com
Subject: Re: [PATCH net v4 1/1] mlxbf_gige: Fix kernel panic at shutdown

Hi Asmaa,

On Fri, Jul 21, 2023 at 10:19:56AM -0400, Asmaa Mnebhi wrote:
> There is a race condition happening during shutdown due to pending
> napi transactions. Since mlxbf_gige_poll is still running, it tries
> to access a NULL pointer and as a result causes a kernel panic.
> To fix this during shutdown, invoke mlxbf_gige_remove to disable and
> dequeue napi.
> 
> Fixes: f92e1869d74e ("Add Mellanox BlueField Gigabit Ethernet driver")
> Signed-off-by: Asmaa Mnebhi <asmaa@...dia.com>
> ---

What is the race condition; what does the stack trace of the NPD look like?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ