Re: [PATCH] soc: qcom: cmd-db: Fix probe race with possible ERR_PTR dereference
From: Konrad Dybcio
Date: Thu Nov 05 2026 - 03:20:58 EST
On 11/4/26 4:15 PM, 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:
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad