Re: [PATCH] regmap: debugfs: fix race condition in dummy name allocation

From: zhu xin

Date: Thu Apr 09 2026 - 02:10:59 EST


Sorry, I missed adding Cc in the previous send. Resending the correct
v2 patch below.

On Wed, Apr 08, 2026 at 09:11:55PM +0800, Greg Kroah-Hartman wrote:
> What code does that? Why not fix that?

Multiple drivers using regmap can probe in parallel, leading to
concurrent calls to regmap_debugfs_init() with name=NULL and dev=NULL.
The dummy_index is a global static variable inside regmap-debugfs.c,
not something the callers have knowledge of or control over. Using IDA
is the appropriate fix for this internal concurrency issue.

> Also, you did not sign off on this, so it can't be taken, sorry.

Apologies for missing the Signed-off-by line. Added in v2.