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:21:39 -07:00
2019-07-08 19:19:37 -07:00
2019-07-09 09:47:22 -07:00
2019-07-08 19:36:47 -07:00
2019-06-08 12:52:42 -07:00
2019-07-08 14:45:34 +02:00
2019-07-09 10:45:06 -07:00
2019-07-09 10:45:06 -07:00
2019-07-09 09:55:45 -07:00