linux/drivers/staging
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
..
android Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2012-12-17 15:44:47 -08:00
asus_oled
bcm
ccg
ced1401
comedi staging: comedi: comedi_test: fix race when cancelling command 2013-01-07 14:48:25 -08:00
cptm1217
crystalhd
csr
cxt1e1
dgrp
echo
et131x
frontier
ft1000
fwserial staging/fwserial: Update TODO file per reviewer comments 2013-01-07 11:16:49 -08:00
gdm72xx Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-12-12 12:22:13 -08:00
iio staging:iio:adis16260: Select adislib 2012-12-27 10:59:31 +00:00
imx-drm staging: drm/imx: fix double free bug in error path 2013-01-07 12:27:52 -08:00
keucr
line6
media Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-12-13 19:22:22 -08:00
net
nvec ARM: arm-soc: Cleanups on various subarchitectures 2012-12-12 11:51:39 -08:00
octeon
olpc_dcon
omap-thermal Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2012-12-12 07:57:13 -08:00
omapdrm staging: drm/omap: fix flags in dma buf exporting 2013-01-07 12:27:03 -08:00
ozwpan
panel
phison
quickstart
ramster
rtl8187se staging: rtl8187se: Fix failure to check pci_map_single() 2013-01-07 12:57:27 -08:00
rtl8192e staging: rtl8192e: Fix failure to check pci_map_single() 2013-01-07 12:57:27 -08:00
rtl8192u
rtl8712 staging: r8712u: Add new device ID 2013-01-07 09:50:40 -08:00
rts5139
sb105x staging: Enable parport sb105x drivers if parport is configured 2013-01-07 09:32:46 -08:00
sbe-2t3e3
sep
serqt_usb2
silicom
slicoss
sm7xxfb
speakup staging: speakup: avoid out-of-range access in synth_add() 2013-01-07 13:53:28 -08:00
ste_rmi4
tidspbridge staging: tidspbridge: use prepare/unprepare on dsp clocks 2013-01-07 15:03:56 -08:00
usbip
vme staging: vme_pio2: fix oops on module unloading 2013-01-07 13:56:24 -08:00
vt6655
vt6656
winbond
wlags49_h2
wlags49_h25
wlan-ng Staging: wlan-ng: Add missing argument 2013-01-07 09:50:40 -08:00
xgifb
zcache
zram staging: zram: fix invalid memory references during disk write 2013-01-13 19:40:02 -08:00
zsmalloc
Kconfig
Makefile
staging.c