Re: [PATCH] soc: qcom: cmd-db: Fix probe race with possible ERR_PTR dereference

From: Bjorn Andersson

Date: Sun Nov 08 2026 - 15:39:28 EST



On Wed, 04 Nov 2026 16:15:51 +0100, Krzysztof Kozlowski wrote:
> cmd_db_dev_probe() stores the result of devm_memremap() directly in the
> global "cmd_db_header" variable and only afterwards validates it, which
> opens a very short window where a concurrent thread could access and
> dereference stored ERR_PTR.
>
> Theoretical (not reproduced) race condition could look like:
>
> [...]

Applied, thanks!

[1/1] soc: qcom: cmd-db: Fix probe race with possible ERR_PTR dereference
commit: 12e45556d58ffddfa34e3bdbf65646b5fab06113

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>