android_kernel_xiaomi_sm8350/include
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: 515ce60613 ("scsi: sd_zbc: Fix sd_zbc_report_zones() buffer allocation")
Fixes: e76239a374 ("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
..
acpi ACPI updates for 5.3-rc1 2019-07-09 10:21:39 -07:00
asm-generic Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2019-07-08 16:12:03 -07:00
clocksource
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2019-07-08 20:57:08 -07:00
drm
dt-bindings
keys request_key improvements 2019-07-08 19:19:37 -07:00
kvm
linux block: Limit zone array allocation size 2019-07-11 20:04:40 -06:00
math-emu
media media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
memory
misc
net Keyrings namespacing 2019-07-08 19:36:47 -07:00
pcmcia
ras
rdma
scsi
soc
sound ASoC: Updates for v5.3 2019-07-08 14:45:34 +02:00
target
trace for-5.3/block-20190708 2019-07-09 10:45:06 -07:00
uapi for-5.3/block-20190708 2019-07-09 10:45:06 -07:00
vdso
video fbdev changes for v5.3: 2019-07-09 09:55:45 -07:00
xen