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: <20250516084842.26c80cb5@kernel.org>
Date: Fri, 16 May 2025 08:48:42 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Jinjian Song <jinjian.song@...ocom.com>
Cc: andrew+netdev@...n.ch, angelogioacchino.delregno@...labora.com,
 chandrashekar.devegowda@...el.com, chiranjeevi.rapolu@...ux.intel.com,
 corbet@....net, danielwinkler@...gle.com, davem@...emloft.net,
 edumazet@...gle.com, haijun.liu@...iatek.com, helgaas@...nel.org,
 horms@...nel.org, johannes@...solutions.net,
 linux-arm-kernel@...ts.infradead.org, linux-doc@...r.kernel.org,
 linux-kernel@...r.kernel.org, linux-mediatek@...ts.infradead.org,
 loic.poulain@...aro.org, m.chetan.kumar@...ux.intel.com,
 matthias.bgg@...il.com, netdev@...r.kernel.org, pabeni@...hat.com,
 ricardo.martinez@...ux.intel.com, ryazanov.s.a@...il.com
Subject: Re: [net v1] net: wwan: t7xx: Fix napi rx poll issue

On Fri, 16 May 2025 15:30:38 +0800 Jinjian Song wrote:
> It seems that a judgment is made every time ccmni_inst[x] is used in the driver,
> and the synchronization on the 2 way might have been done when NAPI triggers
> polling by napi_schedule and when WWAN trigger dellink. 

Synchronization is about ensuring that the condition validating
by the if() remains true for as long as necessary.
You need to wrap the read with READ_ONCE() and write with WRITE_ONCE().
The rest if fine because netdev unregister sync against NAPIs in flight.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ