diff options
author | Joseph Qi <joseph.qi@linux.alibaba.com> | 2022-03-16 16:15:09 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-03-17 11:02:13 -0700 |
commit | 7b0b1332cfdb94489836b67d088a779699f8e47e (patch) | |
tree | de8c2748936244e4f181009872e3c67b7287467c /tools | |
parent | 8208257d2d04d4953a8cb9f1426d245a95c4fea2 (diff) | |
download | linux-stable-7b0b1332cfdb94489836b67d088a779699f8e47e.tar.gz linux-stable-7b0b1332cfdb94489836b67d088a779699f8e47e.tar.bz2 linux-stable-7b0b1332cfdb94489836b67d088a779699f8e47e.zip |
ocfs2: fix crash when initialize filecheck kobj fails
Once s_root is set, genric_shutdown_super() will be called if
fill_super() fails. That means, we will call ocfs2_dismount_volume()
twice in such case, which can lead to kernel crash.
Fix this issue by initializing filecheck kobj before setting s_root.
Link: https://lkml.kernel.org/r/20220310081930.86305-1-joseph.qi@linux.alibaba.com
Fixes: 5f483c4abb50 ("ocfs2: add kobject for online file check")
Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions