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 8E992346A1F for ; Mon, 12 Jan 2026 21:59:59 +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=1768255199; cv=none; b=tLqyCwx4VHXfu9Bmpvb3IEIW//VT0mF9ICMDuLcxBrkp174KNf39X6yfHM+XeRcGSs5cIxHa4uR1G0BZeUKnhXUfAwXG1mWDt57l/PwQf9VKFcWhEjZ+wO3boBKERdTItfv4Fk3JoAilVpbugt9cbMxIYznaNbfWTo4nlD9koeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768255199; c=relaxed/simple; bh=uQ959rRxDBzwhzUwUMv9/YE9i+O2WYSXCXCk0MfwoYo=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=Zna+Zjqycp0Dd2zF4sUQmig/M485bFfKypaFcGKwBtd8XIBOmtR/91jmbMmYOP2beK8sBdIyCW5qfJTdoZOf/rTD3CVjdp3JMkT+31h2Sz2YC630QgAHt0nskT9eCgEZ2NJTc+R1AG0s50YWmPKnD8llrq3qwgZihO13YUf6JvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ag0waINP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ag0waINP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A7D7C116D0; Mon, 12 Jan 2026 21:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768255199; bh=uQ959rRxDBzwhzUwUMv9/YE9i+O2WYSXCXCk0MfwoYo=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=ag0waINPAPP1mpAihZ+/vaYNNq/9RmP0EfnFvmxZzabwtqFXRk9H0wVZE2SB7Jb7+ TmwyZdril1PIJPOtLdKvlzA2C86INFbX28uXdu468Wyf7e1CZjdl8/hHv8aTLfyJXu Hu0owso3wZ1lcsTUxnsMrmFc9i5tXvtOSOV3DBar73cM04tDXJpV+SEw6N4wSghSB8 RKlFEeKeQ6DX/8c+1u4gzQK7aGc7TFry19cOLSSq8aEIvOUxtt5CZGJ0fDJcI/SVsr OJSFVZLvS44LitafF8b9vZ1U706eMdlhu+RHCc2pqS2bbIpJZQ96PnTL1Qo5I4fWtI KF4DbN5uk7uKg== From: Mark Brown To: gregkh@linuxfoundation.org, rafael@kernel.org, dakr@kernel.org, baolin.wang@linux.alibaba.com, cylee12@realtek.com, Yu-Chun Lin Cc: linux-kernel@vger.kernel.org, james.tai@realtek.com, cy.huang@realtek.com, stanley_chang@realtek.com In-Reply-To: <20260109032633.8732-1-eleanor.lin@realtek.com> References: <20260109032633.8732-1-eleanor.lin@realtek.com> Subject: Re: [PATCH v3] regmap: Fix race condition in hwspinlock irqsave routine Message-Id: <176825519710.237017.12262115379102195530.b4-ty@kernel.org> Date: Mon, 12 Jan 2026 21:59:57 +0000 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.15-dev-47773 On Fri, 09 Jan 2026 11:26:33 +0800, Yu-Chun Lin wrote: > Previously, the address of the shared member '&map->spinlock_flags' was > passed directly to 'hwspin_lock_timeout_irqsave'. This creates a race > condition where multiple contexts contending for the lock could overwrite > the shared flags variable, potentially corrupting the state for the > current lock owner. > > Fix this by using a local stack variable 'flags' to store the IRQ state > temporarily. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: Fix race condition in hwspinlock irqsave routine commit: 4b58aac989c1e3fafb1c68a733811859df388250 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark