linux/fs/f2fs
Chao Yu 50e1f8d221 f2fs: avoid to access NULL pointer in issue_flush_thread
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=75861

Denis 2014-05-10 11:28:59 UTC reported:
"F2FS-fs (mmcblk0p28): mounting..
 Unable to handle kernel NULL pointer dereference at virtual address 00000018
 ...
 [<c0a2f678>] (_raw_spin_lock+0x3c/0x70) from [<c03a0330>] (issue_flush_thread+0x50/0x17c)
 [<c03a0330>] (issue_flush_thread+0x50/0x17c) from [<c01b4064>] (kthread+0x98/0xa4)
 [<c01b4064>] (kthread+0x98/0xa4) from [<c0108060>] (kernel_thread_exit+0x0/0x8)"

This patch assign cmd_control_info in sm_info before issue_flush_thread is being
created, so this make sure that issue flush thread will have no chance to access
invalid info in fcc.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Reviewed-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2014-07-09 05:59:55 -07:00
..
acl.c
acl.h
checkpoint.c f2fs updates for v3.16 2014-06-09 19:11:44 -07:00
data.c f2fs: fix to report newly allocate region as extent 2014-06-23 10:05:07 +09:00
debug.c
dir.c f2fs: fix error path in init_inode_metadata 2014-07-09 05:58:50 -07:00
f2fs.h f2fs: check lower bound nid value in check_nid_range 2014-07-09 05:58:08 -07:00
file.c f2fs: fix not to allocate unnecessary blocks during fallocate 2014-06-23 10:05:08 +09:00
gc.c
gc.h
hash.c
inline.c
inode.c f2fs: check lower bound nid value in check_nid_range 2014-07-09 05:58:08 -07:00
Kconfig
Makefile
namei.c f2fs: do checkpoint for the renamed inode 2014-07-09 05:59:31 -07:00
node.c f2fs: check bdi->dirty_exceeded when trying to skip data writes 2014-07-09 05:59:45 -07:00
node.h
recovery.c f2fs: avoid not to call remove_dirty_inode 2014-06-07 03:18:36 +09:00
segment.c f2fs: avoid to access NULL pointer in issue_flush_thread 2014-07-09 05:59:55 -07:00
segment.h
super.c f2fs: check lower bound nid value in check_nid_range 2014-07-09 05:58:08 -07:00
xattr.c
xattr.h