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: <20250415025436.203-1-chenyufeng@iie.ac.cn>
Date: Tue, 15 Apr 2025 10:54:36 +0800
From: Chen Yufeng <chenyufeng@....ac.cn>
To: krzk@...nel.org
Cc: chenyufeng@....ac.cn,
	davem@...emloft.net,
	edumazet@...gle.com,
	horms@...nel.org,
	kuba@...nel.org,
	netdev@...r.kernel.org,
	pabeni@...hat.com
Subject: Re: Re: [PATCH]nfc: replace improper check device_is_registered() in nfc_se_io()

> 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.

--
Thanks, 

Chen Yufeng

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ