Yi Li
75d52a1d10
ocfs2: fix panic due to ocfs2_wq is null
...
commit b918c43021
upstream.
mount.ocfs2 failed when reading ocfs2 filesystem superblock encounters
an error. ocfs2_initialize_super() returns before allocating ocfs2_wq.
ocfs2_dismount_volume() triggers the following panic.
Oct 15 16:09:27 cnwarekv-205120 kernel: On-disk corruption discovered.Please run fsck.ocfs2 once the filesystem is unmounted.
Oct 15 16:09:27 cnwarekv-205120 kernel: (mount.ocfs2,22804,44): ocfs2_read_locked_inode:537 ERROR: status = -30
Oct 15 16:09:27 cnwarekv-205120 kernel: (mount.ocfs2,22804,44): ocfs2_init_global_system_inodes:458 ERROR: status = -30
Oct 15 16:09:27 cnwarekv-205120 kernel: (mount.ocfs2,22804,44): ocfs2_init_global_system_inodes:491 ERROR: status = -30
Oct 15 16:09:27 cnwarekv-205120 kernel: (mount.ocfs2,22804,44): ocfs2_initialize_super:2313 ERROR: status = -30
Oct 15 16:09:27 cnwarekv-205120 kernel: (mount.ocfs2,22804,44): ocfs2_fill_super:1033 ERROR: status = -30
------------[ cut here ]------------
Oops: 0002 [#1 ] SMP NOPTI
CPU: 1 PID: 11753 Comm: mount.ocfs2 Tainted: G E
4.14.148-200.ckv.x86_64 #1
Hardware name: Sugon H320-G30/35N16-US, BIOS 0SSDX017 12/21/2018
task: ffff967af0520000 task.stack: ffffa5f05484000
RIP: 0010:mutex_lock+0x19/0x20
Call Trace:
flush_workqueue+0x81/0x460
ocfs2_shutdown_local_alloc+0x47/0x440 [ocfs2]
ocfs2_dismount_volume+0x84/0x400 [ocfs2]
ocfs2_fill_super+0xa4/0x1270 [ocfs2]
? ocfs2_initialize_super.isa.211+0xf20/0xf20 [ocfs2]
mount_bdev+0x17f/0x1c0
mount_fs+0x3a/0x160
Link: http://lkml.kernel.org/r/1571139611-24107-1-git-send-email-yili@winhong.com
Signed-off-by: Yi Li <yilikernel@gmail.com >
Reviewed-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 >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-29 09:15:08 +01:00
..
2019-04-05 22:29:07 +02:00
2019-10-07 18:53:18 +02:00
2016-10-10 20:16:43 -07:00
2018-05-30 07:50:23 +02:00
2016-05-12 15:52:50 -07:00
2017-11-08 10:08:32 +01:00
2016-08-02 17:31:41 -04:00
2018-07-22 14:27:35 +02:00
2016-03-25 16:37:42 -07:00
2019-02-12 19:44:58 +01:00
2019-06-22 08:17:18 +02:00
2014-04-03 16:20:55 -07:00
2018-11-21 09:26:00 +01:00
2015-04-15 15:06:57 -04:00
2018-11-10 07:42:51 -08:00
2017-10-21 17:21:36 +02:00
2019-05-21 18:48:58 +02:00
2015-09-04 16:54:41 -07:00
2017-11-24 08:33:42 +01:00
2015-02-16 17:56:04 -08:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2016-05-26 15:35:44 -07:00
2016-10-07 18:46:26 -07:00
2016-01-22 18:04:28 -05:00
2019-10-29 09:15:08 +01:00
2016-04-24 00:56:07 -04:00
2019-10-29 09:15:08 +01:00
2015-12-29 17:45:49 -08:00
2016-06-24 17:23:52 -07:00
2016-04-04 10:41:08 -07:00
2018-12-17 09:38:35 +01:00
2016-10-10 20:16:43 -07:00
2015-11-05 19:34:48 -08:00
2016-05-19 19:12:14 -07:00
2016-10-05 18:23:56 -04:00
2017-10-21 17:21:36 +02:00
2016-06-19 18:09:31 +02:00
2015-09-04 16:54:41 -07:00
2016-01-04 10:58:35 +01:00
2016-09-27 21:06:21 -04:00
2015-02-10 14:30:29 -08:00
2016-03-25 16:37:42 -07:00
2016-05-19 19:12:14 -07:00
2015-04-14 16:48:57 -07:00
2016-08-02 17:31:41 -04:00
2017-01-19 20:17:59 +01:00
2017-01-19 20:17:59 +01:00
2016-09-19 15:36:17 -07:00
2014-04-03 16:20:56 -07:00
2018-05-30 07:50:22 +02:00
2016-03-25 16:37:42 -07:00
2016-10-07 21:48:36 -04:00
2014-04-03 16:20:57 -07:00
2014-06-04 16:53:53 -07:00
2019-08-25 10:51:48 +02:00
2016-05-12 15:52:50 -07:00