Files
linux/drivers/staging
Jiang Liu c181b46430 zram: protect sysfs handler from invalid memory access
commit 5863e10b44 upstream.

Use zram->init_lock to protect access to zram->meta, otherwise it
may cause invalid memory access if zram->meta has been freed by
zram_reset_device().

This issue may be triggered by:
Thread 1:
while true; do cat mem_used_total; done
Thread 2:
while true; do echo 8M > disksize; echo 1 > reset; done

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-11 18:35:24 -07:00
..
2013-05-05 00:15:43 -04:00
2013-05-05 00:15:43 -04:00
2013-05-30 21:14:30 +09:00
2013-05-05 00:15:43 -04:00
2013-04-09 14:13:20 -04:00
2013-05-05 00:15:43 -04:00
2013-05-05 00:15:43 -04:00
2013-05-05 00:15:43 -04:00
2013-04-19 11:15:20 -07:00