Thread (2 messages) 2 messages, 2 authors, 2018-10-31

Re: [PATCH] block: brd: associate with queue until adding disk

From: Jens Axboe <axboe@kernel.dk>
Date: 2018-10-31 14:43:27

On 10/31/18 2:40 AM, Ming Lei wrote:
brd_free() may be called in failure path on one brd instance which
disk isn't added yet, so release handler of gendisk may free the
associated request_queue early and causes the following use-after-free[1].

This patch fixes this issue by associating gendisk with request_queue
just before adding disk.
Looks good to me, thanks, applied.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help