[dm-devel] [PATCH] dm-zoned: Fix overflow when converting zone ID to sectors

Bart Van Assche Bart.VanAssche at wdc.com
Mon Jul 10 16:25:57 UTC 2017


On Mon, 2017-07-03 at 15:44 +0900, Damien Le Moal wrote:
> A zone ID is a 32 bits unsigned int which can overflow when doing the
> bit shifts calculations in dmz_start_sect(). With a 256 MB zone size
> drive, the overflow happens for a zone ID >= 8192.

Does the data from this example apply to a sector size of 512 bytes only?
Should this be mentioned in the patch description?

Anyway,

Reviewed-by: Bart Van Assche <bart.vanassche at wdc.com>





More information about the dm-devel mailing list