Re: [PATCH v0] nfc: nci: add flush_workqueue to prevent uaf

From: Krzysztof Kozlowski
Date: Wed Apr 13 2022 - 02:58:01 EST


On 12/04/2022 18:04, Lin Ma wrote:
> Our detector found a concurrent use-after-free bug when detaching an
> NCI device. The main reason for this bug is the unexpected scheduling
> between the used delayed mechanism (timer and workqueue).
>
> The race can be demonstrated below:
>

Thanks!

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

Best regards,
Krzysztof