From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DE0427CCE0 for ; Wed, 8 Apr 2026 13:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775655184; cv=none; b=Q3VoXmlPEJrJTrNM1IVP89TQnsZRxIOh6m//JghH3OchLIgoPQ5OKrXLRru7UCOX+LFvEs3JB2Jr2dhhGQxphQuwFmxT+r8tlHLkh0xTBmthMjiobtjxing1OEZflvH6/XxazyxR1Xto+VgsASubRkbJyYE1Tce1ptAaY3QcffY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775655184; c=relaxed/simple; bh=2XCgAajPHoHhwOA/V7kEl9oB1wMWXLZuDvdvaTi4Ph4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iitl5C/GQFcxc3/LNEhWkCCe3hoX3n1rmNVqrZqk1kiF75ymJM2hdSnBvt0ougdhsDRUY2BMUqKUSZdcRTGOI/1iKthr4cvPWaqXfmrGCFD0Q6uKCHBqCU4nSPF0fREcEvUr+awZZgAF1PnQa02ND7vs7QVwYxUOqe12tf7FMAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vj5YS8fw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vj5YS8fw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75779C19421; Wed, 8 Apr 2026 13:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775655183; bh=2XCgAajPHoHhwOA/V7kEl9oB1wMWXLZuDvdvaTi4Ph4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vj5YS8fwkiRY+yCUfutsVjIQaFD5pmJK2/hJ9R59ypY91I+nJnLnAvh0FeAKWcHQX ED0zp/J1mEFnQe9C4rBb1Cjg4r5xmeJMYsgTWZwrDMNGwy0o/YJz1XepiA+rQVGHC0 zcAAOpqyTOE7dIAJP8oihsPcGI4t/OP3V+NUoITA= Date: Wed, 8 Apr 2026 15:33:01 +0200 From: Greg KH To: Zxyan Zhu Cc: Mark Brown , linux-kernel@vger.kernel.org Subject: Re: [PATCH] regmap: debugfs: fix race condition in dummy name allocation Message-ID: <2026040834-runaround-glass-8ea6@gregkh> References: <20260408131155.2946395-1-zxyan0222@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260408131155.2946395-1-zxyan0222@gmail.com> 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