1
0
Fork 0
alistair23-linux/drivers/block/zram
Johannes Thumshirn 0bc315381f zram: set physical queue limits to avoid array out of bounds accesses
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>
2017-03-08 09:56:12 -07:00
..
Kconfig zram: delete custom lzo/lz4 2016-07-26 16:19:19 -07:00
Makefile zram: delete custom lzo/lz4 2016-07-26 16:19:19 -07:00
zcomp.c zram: Convert to hotplug state machine 2016-12-02 00:52:39 +01:00
zcomp.h zram: Convert to hotplug state machine 2016-12-02 00:52:39 +01:00
zram_drv.c zram: set physical queue limits to avoid array out of bounds accesses 2017-03-08 09:56:12 -07:00
zram_drv.h zram: extend zero pages to same element pages 2017-02-24 17:46:56 -08:00