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

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
..
2016-04-12 09:08:53 -07:00
2011-08-08 11:40:15 +02:00
2005-04-16 15:20:36 -07:00
2014-08-08 15:57:28 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2017-03-12 06:37:27 +01:00
2015-09-23 11:01:16 -06:00
2013-11-08 09:10:30 -07:00
2009-03-26 21:15:27 +01:00