Re: [PATCH] rnull: serialize configfs updates with power changes

From: Andreas Hindborg

Date: Tue Oct 20 2026 - 11:04:15 EST


"Jiale Yao" <yaojiale02@xxxxxxx> writes:

> From: Jiale Yao <jiale.yao@xxxxxxxxxxx>
>
> The configuration stores check whether the device is powered before
> parsing the new value, then take the mutex again to update the field.
> A concurrent power-on can complete between these lock acquisitions,
> allowing a live device configuration to be changed.
>
> Parse the input before taking the mutex, then check powered and update
> the configuration while holding the same lock.
>
> Fixes: d969d504bc13 ("rnull: enable configuration via `configfs`")
> Signed-off-by: Jiale Yao <yaojiale02@xxxxxxx>

I think all of these were fixed last cycle [1].

Best regards,
Andreas Hindborg


[1] https://lore.kernel.org/all/20260908200845.405112-1-qingxiao@xxxxxxxx/