1
linux/drivers/staging/zram
Nitin Gupta 397c60668a staging: zram: fix invalid memory references during disk write
Fixes a bug introduced by commit c8f2f0db1 ("zram: Fix handling
of incompressible pages") which caused invalid memory references
during disk write. Invalid references could occur in two cases:
 - Incoming data expands on compression: In this case, reference was
made to kunmap()'ed bio page.
 - Partial (non PAGE_SIZE) write with incompressible data: In this
case, reference was made to a kfree()'ed buffer.

Fixes bug 50081:
https://bugzilla.kernel.org/show_bug.cgi?id=50081

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Cc: stable <stable@vger.kernel.org>
Reported-by: Mihail Kasadjikov <hamer.mk@gmail.com>
Reported-by: Tomas M <tomas@slax.org>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-13 19:40:02 -08:00
..
Kconfig
Makefile
zram_drv.c staging: zram: fix invalid memory references during disk write 2013-01-13 19:40:02 -08:00
zram_drv.h staging: zram: correct obsolete comment on max_zpage_size 2012-10-22 13:43:46 -07:00
zram_sysfs.c staging: zram: handle mem suffixes in disk size zram_sysfs parameter 2012-10-31 14:49:09 -07:00
zram.txt