block: fix integer overflow in __blkdev_sectors_to_bio_pages()
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 11 Sep 2017 15:46:49 +0000 (09:46 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Sep 2017 15:46:49 +0000 (09:46 -0600)
commit09c2c359be546df45be0b158ea1d3cc8ea83c876
treecd686e4707bc782debea2ad4ba6dbf8cad5b3048
parentdbec491b12b52888d120e5be8f15886b3216eb19
block: fix integer overflow in __blkdev_sectors_to_bio_pages()

Fix possible integer overflow in __blkdev_sectors_to_bio_pages if
sector_t is 32-bit.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: 615d22a51c04 ("block: Fix __blkdev_issue_zeroout loop")
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c