[PATCH] drivers: crypto: picoxcell_crypto: Fix potential race condition bug

Jamie Iles jamie at jamieiles.com
Thu Aug 13 07:33:04 EDT 2020


On Tue, Aug 11, 2020 at 06:00:24PM +0530, madhuparnabhowmik10 at gmail.com wrote:
> From: Madhuparna Bhowmik <madhuparnabhowmik10 at gmail.com>
> 
> engine->stat_irq_thresh was initialized after device_create_file() in
> the probe function, the initialization may race with call to
> spacc_stat_irq_thresh_store() which updates engine->stat_irq_thresh,
> therefore initialize it before creating the file in probe function.
> 
> Found by Linux Driver Verification project (linuxtesting.org).
> 
> Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10 at gmail.com>

Acked-by: Jamie Iles <jamie at jamieiles.com>

Thanks!



More information about the linux-arm-kernel mailing list