====================================================== WARNING: possible circular locking dependency detected 5.12.0-rc4-syzkaller #0 Not tainted ------------------------------------------------------ kworker/0:1H/2010 is trying to acquire lock: ffff888022b000e0 (&type->s_umount_key#61){+.+.}-{3:3}, at: freeze_super+0x44/0x3c0 fs/super.c:1664 but task is already holding lock: ffffc9000708fd78 ((work_completion)(&(&gl->gl_work)->work)){+.+.}-{0:0}, at: process_one_work+0x733/0xfd0 kernel/workqueue.c:2250 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 ((work_completion)(&(&gl->gl_work)->work)){+.+.}-{0:0}: lock_acquire+0x126/0x650 kernel/locking/lockdep.c:5510 process_one_work+0x75d/0xfd0 kernel/workqueue.c:2251 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 -> #1 ((wq_completion)glock_workqueue){+.+.}-{0:0}: lock_acquire+0x126/0x650 kernel/locking/lockdep.c:5510 flush_workqueue+0x120/0x1620 kernel/workqueue.c:2786 gfs2_gl_hash_clear+0x53/0x270 fs/gfs2/glock.c:1996 gfs2_put_super+0x7b3/0x820 fs/gfs2/super.c:688 generic_shutdown_super+0x120/0x2a0 fs/super.c:464 kill_block_super+0x79/0xd0 fs/super.c:1394 deactivate_locked_super+0xa7/0xf0 fs/super.c:335 cleanup_mnt+0x462/0x510 fs/namespace.c:1136 task_work_run+0x146/0x1c0 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x1e0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x44/0xae -> #0 (&type->s_umount_key#61){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:2936 [inline] check_prevs_add+0x339/0x5c20 kernel/locking/lockdep.c:3059 validate_chain kernel/locking/lockdep.c:3674 [inline] __lock_acquire+0x41f7/0x5e60 kernel/locking/lockdep.c:4900 lock_acquire+0x126/0x650 kernel/locking/lockdep.c:5510 down_write+0x5b/0x120 kernel/locking/rwsem.c:1406 freeze_super+0x44/0x3c0 fs/super.c:1664 freeze_go_sync+0x17b/0x3a0 fs/gfs2/glops.c:574 do_xmote+0x6b7/0x14c0 fs/gfs2/glock.c:630 glock_work_func+0x2c3/0x450 fs/gfs2/glock.c:934 process_one_work+0x789/0xfd0 kernel/workqueue.c:2275 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 other info that might help us debug this: Chain exists of: &type->s_umount_key#61 --> (wq_completion)glock_workqueue --> (work_completion)(&(&gl->gl_work)->work) Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((work_completion)(&(&gl->gl_work)->work)); lock((wq_completion)glock_workqueue); lock((work_completion)(&(&gl->gl_work)->work)); lock(&type->s_umount_key#61); *** DEADLOCK *** 2 locks held by kworker/0:1H/2010: #0: ffff8880170fe138 ((wq_completion)glock_workqueue){+.+.}-{0:0}, at: process_one_work+0x6f4/0xfd0 kernel/workqueue.c:2248 #1: ffffc9000708fd78 ((work_completion)(&(&gl->gl_work)->work)){+.+.}-{0:0}, at: process_one_work+0x733/0xfd0 kernel/workqueue.c:2250 stack backtrace: CPU: 0 PID: 2010 Comm: kworker/0:1H Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: glock_workqueue glock_work_func Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x176/0x24e lib/dump_stack.c:120 print_circular_bug+0xadf/0xd80 kernel/locking/lockdep.c:2005 check_noncircular+0x221/0x2d0 kernel/locking/lockdep.c:2127 check_prev_add kernel/locking/lockdep.c:2936 [inline] check_prevs_add+0x339/0x5c20 kernel/locking/lockdep.c:3059 validate_chain kernel/locking/lockdep.c:3674 [inline] __lock_acquire+0x41f7/0x5e60 kernel/locking/lockdep.c:4900 lock_acquire+0x126/0x650 kernel/locking/lockdep.c:5510 down_write+0x5b/0x120 kernel/locking/rwsem.c:1406 freeze_super+0x44/0x3c0 fs/super.c:1664 freeze_go_sync+0x17b/0x3a0 fs/gfs2/glops.c:574 do_xmote+0x6b7/0x14c0 fs/gfs2/glock.c:630 glock_work_func+0x2c3/0x450 fs/gfs2/glock.c:934 process_one_work+0x789/0xfd0 kernel/workqueue.c:2275 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294