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 326D7395DBB for ; Wed, 25 Feb 2026 19:07:09 +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=1772046429; cv=none; b=qVfpFht7D51EjC0jTG9qJugJIiGv8BnK2N2Gz84bQI92LBP5gFSpsO6Ht2zufsGncGW/knN1VG+U4jucUAq5HGJRS1ihHlgN4j6R1UI6RErEYSJT2gcWjowZIHRion32o1ANzUY/lfj33LPBdy4UO386kByK17XhgbrGzF1mqhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772046429; c=relaxed/simple; bh=eQljfDul8uJRYVByejhfEnDdFDvGwHzV3lFaQfoI0+0=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=NlIhpxkRNKFAlmdiTjG0e5JehwnUTbVqfKMeJ15x+5f034NPqYCv8oWcciu8rRzjPrJwiBokk9X/Ea/XfwAHVadYdO1muObM6Dw35k1ooitmn4BJ1Qf8nXZvIemT2LA3zH8VOpHPiMnmb/ygfgYOB09hSnmW00x8GSNVnh93n84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Aroc0R5c; 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="Aroc0R5c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6A51C116D0; Wed, 25 Feb 2026 19:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772046429; bh=eQljfDul8uJRYVByejhfEnDdFDvGwHzV3lFaQfoI0+0=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=Aroc0R5csmeXuZJrjKszfuqiH8vvAu7WgeNZuwNIqHOpQD4EZRLXCVXAX7cLt91FS L6ZhLtj0V5gjW9Ns00DiCbS54FQzeGv/eYkKj+OIt9RHqUf0+2pYK/g6837xApv3Yo mI8WjVYbtQdGj8oY8BK8sXcKGriRI00E2+RKtmNsBrtwSDfstsiapQGvqTMWXgZ9sZ HHHt9ka4BjRsfTlNRCDcqQAacI8flzFMhlrfeLeAtOEHV2UeHIbcf/mP5tzJdgWVvp WXvlROPbBgzbICv1UnNuqsMbqd8CloKHMtxQSk/Abd1x1KkyZdPtQ+AU6JI4vnErAo sWXafLL7cgfaQ== From: Mark Brown To: linux-kernel@vger.kernel.org, Oleksij Rempel , Andy Shevchenko Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich In-Reply-To: <20260210161058.53093-1-andriy.shevchenko@linux.intel.com> References: <20260210161058.53093-1-andriy.shevchenko@linux.intel.com> Subject: Re: [PATCH v1 0/3] regcache: Avoid accessing non-initialised cache Message-Id: <177204642769.168300.10894953047553506100.b4-ty@kernel.org> Date: Wed, 25 Feb 2026 19:07:07 +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 Tue, 10 Feb 2026 17:09:07 +0100, Andy Shevchenko wrote: > FIXME cover letter > > Some caches may not allow writes before full initialisation is done. > In particular on REGMAP_MAPLE caches when we want to populate cache > with the values (reg_defaults_raw == NULL && num_reg_defaults_raw != 0) > from HW, the NULL pointer dereference may happen. Address this by moving > the IO after cache initialisation is done. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/3] regcache: Remove duplicate check in regcache_hw_init() commit: 1fcf171178f021ef2005d47e281544624b93c5a5 [2/3] regcache: Split regcache_count_cacheable_registers() helper commit: c2bcf62ca75c541ec4297e6ff02a68ddc2e02029 [3/3] regcache: Move HW readback after cache initialisation (no commit info) 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