[dm-devel] [RFC PATCH] dm-rq: fix double free of blk tag set in dev remove after table load fails

Benjamin Block lkml at mageta.org
Sat May 1 21:16:32 UTC 2021


On Thu, Apr 29, 2021 at 11:37:00PM +0200, Benjamin Block wrote:
> When loading a device-mapper table for a request-based mapped device,
> and the allocation/initialization of the blk-mq tag set for the device
> fails, a following device remove will cause a double free.
>
> [snip]
>
> Fix this by also setting the pointer to NULL in
> `dm_mq_init_request_queue()` after error-handling.
> 

Thanks for taking the fix so fast Mike :)




More information about the dm-devel mailing list