Re: [PATCH v4] block: add capacity validation in bdev_add_partition()

From: Jens Axboe
Date: Tue Jun 20 2023 - 14:51:11 EST



On Mon, 19 Jun 2023 09:12:14 +0000, Min Li wrote:
> In the function bdev_add_partition(),there is no check that the start
> and end sectors exceed the size of the disk before calling add_partition.
> When we call the block's ioctl interface directly to add a partition,
> and the capacity of the disk is set to 0 by driver,the command will
> continue to execute.
>
>
> [...]

Applied, thanks!

[1/1] block: add capacity validation in bdev_add_partition()
commit: 6d4e80db4ebe76c4a4b6ffb6547cb168275204ef

Best regards,
--
Jens Axboe