[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1426f1f4-4193-e107-4191-251888bc0952@kernel.dk>
Date: Tue, 15 Aug 2017 12:51:05 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Anton Volkov <avolkov@...ras.ru>, tom.leiming@...il.com
Cc: osandov@...com, linux-kernel@...r.kernel.org,
linux-block@...r.kernel.org, ldv-project@...uxtesting.org,
khoroshilov@...ras.ru
Subject: Re: [PATCH] loop: fix to a race condition due to the early
registration of device
On 08/07/2017 06:37 AM, Anton Volkov wrote:
> The early device registration made possible a race leading to allocations
> of disks with wrong minors.
>
> This patch moves the device registration further down the loop_init
> function to make the race infeasible.
>
> Found by Linux Driver Verification project (linuxtesting.org).
Added for 4.14, thanks.
--
Jens Axboe
Powered by blists - more mailing lists