WSL2-Linux-Kernel/drivers/block/zram
Jérôme Glisse e153abc073 zram: pass down the bvec we need to read into in the work struct
When scheduling work item to read page we need to pass down the proper
bvec struct which points to the page to read into.  Before this patch it
uses a randomly initialized bvec (only if PAGE_SIZE != 4096) which is
wrong.

Note that without this patch on arch/kernel where PAGE_SIZE != 4096
userspace could read random memory through a zram block device (thought
userspace probably would have no control on the address being read).

Link: http://lkml.kernel.org/r/20190408183219.26377-1-jglisse@redhat.com
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-04-26 09:18:05 -07:00
..
Kconfig zram: support idle/huge page writeback 2018-12-28 12:11:49 -08:00
Makefile zram: delete custom lzo/lz4 2016-07-26 16:19:19 -07:00
zcomp.c lib/lzo: separate lzo-rle from lzo 2019-03-07 18:32:03 -08:00
zcomp.h zram: Convert to hotplug state machine 2016-12-02 00:52:39 +01:00
zram_drv.c zram: pass down the bvec we need to read into in the work struct 2019-04-26 09:18:05 -07:00
zram_drv.h zram: idle writeback fixes and cleanup 2019-01-08 17:15:10 -08:00