Re: [PATCH] regmap: debugfs: fix race condition in dummy name allocation
From: Greg KH
Date: Wed Apr 08 2026 - 09:37:50 EST
On Wed, Apr 08, 2026 at 09:11:55PM +0800, Zxyan Zhu wrote:
> Use IDA instead of a simple counter for generating unique dummy names.
> The previous implementation used dummy_index++ which is not atomic,
> leading to potential duplicate names when multiple threads call
> regmap_debugfs_init() concurrently with name="dummy".
What code does that? Why not fix that?
Also, you did not sign off on this, so it can't be taken, sorry.
greg k-h