[dm-devel] [PATCH] kpartx: hold device open until partitions have been created

Martin Wilck martin.wilck at suse.com
Thu Oct 20 09:42:27 UTC 2022


On Wed, 2022-10-19 at 12:57 -0500, Benjamin Marzinski wrote:
> kpartx was closing the whole device after it read the partition
> information off it.  This allowed a race, where the device could be
> removed and another one created with the same major:minor, after
> kpartx
> read the partition information but before it created the partition
> devices.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>

Reviewed-by: Martin Wilck <mwilck at suse.com>



More information about the dm-devel mailing list