Damien Le Moal 26202928fa block: Limit zone array allocation size
Limit the size of the struct blk_zone array used in
blk_revalidate_disk_zones() to avoid memory allocation failures leading
to disk revalidation failure. Also further reduce the likelyhood of
such failures by using kvcalloc() (that is vmalloc()) instead of
allocating contiguous pages with alloc_pages().

Fixes: 515ce6061312 ("scsi: sd_zbc: Fix sd_zbc_report_zones() buffer allocation")
Fixes: e76239a3748c ("block: add a report_zones method")
Cc: stable@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-07-11 20:04:40 -06:00
..
2019-07-09 10:45:06 -07:00
2019-07-10 09:00:57 -06:00
2019-05-07 18:14:36 -07:00
2019-07-09 10:45:06 -07:00
2019-07-02 21:03:27 -06:00
2019-05-07 18:14:36 -07:00
2019-07-02 21:03:27 -06:00
2019-06-20 10:29:22 -06:00
2019-06-15 01:46:09 -06:00
2018-11-07 13:42:32 -07:00