android_kernel_samsung_univ.../drivers/block/zram
Johannes Thumshirn ca6d40bb08 zram: set physical queue limits to avoid array out of bounds accesses
[ Upstream commit 0bc315381fe9ed9fb91db8b0e82171b645ac008f ]

zram can handle at most SECTORS_PER_PAGE sectors in a bio's bvec. When using
the NVMe over Fabrics loopback target which potentially sends a huge bulk of
pages attached to the bio's bvec this results in a kernel panic because of
array out of bounds accesses in zram_decompress_page().

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-16 10:33:53 +01:00
..
Kconfig
Makefile
zcomp_lz4.c zram: try vmalloc() after kmalloc() 2016-02-17 12:31:05 -08:00
zcomp_lz4.h
zcomp_lzo.c zram: try vmalloc() after kmalloc() 2016-02-17 12:31:05 -08:00
zcomp_lzo.h
zcomp.c
zcomp.h
zram_drv.c zram: set physical queue limits to avoid array out of bounds accesses 2017-12-16 10:33:53 +01:00
zram_drv.h