[dm-devel] [PATCH] block: fix an integer overflow in logical block size

Ming Lei ming.lei at redhat.com
Thu Jan 16 03:02:44 UTC 2020


On Wed, Jan 15, 2020 at 08:35:25AM -0500, Mikulas Patocka wrote:
> Logical block size has type unsigned short. That means that it can be at
> most 32768. However, there are architectures that can run with 64k pages
> (for example arm64) and on these architectures, it may be possible to
> create block devices with 64k block size.

The patch looks fine, and other drivers(loop, nbd, virtio_blk, ...) allow
user to pass customized logical block size, and the passed size can be > 32k.

Reviewed-by: Ming Lei <ming.lei at redhat.com>


Thanks,
Ming




More information about the dm-devel mailing list