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: <20250415173826.6b264206@kernel.org>
Date: Tue, 15 Apr 2025 17:38:26 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Chen Yufeng <chenyufeng@....ac.cn>
Cc: krzk@...nel.org, davem@...emloft.net, edumazet@...gle.com,
 horms@...nel.org, netdev@...r.kernel.org, pabeni@...hat.com
Subject: Re: [PATCH]nfc: replace improper check device_is_registered() in
 nfc_se_io()

On Tue, 15 Apr 2025 10:54:36 +0800 Chen Yufeng wrote:
> > On 14/04/2025 16:11, Chen Yufeng wrote:  
> > > A patch similar to commit da5c0f119203 ("nfc: replace improper check device_is_registered() in netlink related functions")  
> 
> > Please wrap commit message according to Linux coding style / submission
> > process (neither too early nor over the limit):
> > https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597  
> 
> Thanks for your reply!
> I have reorganized commit message as follows.
> 
> A patch similar to commit da5c0f119203 ("nfc: replace improper check 
> device_is_registered() in netlink related functions").
> 
> The nfc_se_io() function in the NFC subsystem suffers from a race 
> condition similar to previously reported issues in other netlink-related 
> functions. The function checks device status using device_is_registered(),
> but this check can race with device unregistration despite being protected
> by device_lock.
> 
> This patch also uses bool variable dev->shutting_down instead of
> device_is_registered() to judge whether the nfc device is registered,
> which is well synchronized.

You're also missing a Fixes tag
-- 
pw-bot: cr

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ