============================================ WARNING: possible recursive locking detected 6.2.0-rc1-syzkaller-dirty #0 Not tainted -------------------------------------------- syz-executor.0/5529 is trying to acquire lock: ffff8880750e4ae0 (&sdp->sd_quota_mutex){+.+.}-{3:3}, at: bh_get+0x110/0x7c0 fs/gfs2/quota.c:377 but task is already holding lock: ffff8880750e4ae0 (&sdp->sd_quota_mutex){+.+.}-{3:3}, at: gfs2_quota_sync+0x9b/0x8f0 fs/gfs2/quota.c:1306 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sdp->sd_quota_mutex); lock(&sdp->sd_quota_mutex); *** DEADLOCK *** May be due to missing lock nesting notation 3 locks held by syz-executor.0/5529: #0: ffff888078f580e0 (&type->s_umount_key#50){+.+.}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362 #1: ffff8880750e4ae0 (&sdp->sd_quota_mutex){+.+.}-{3:3}, at: gfs2_quota_sync+0x9b/0x8f0 fs/gfs2/quota.c:1306 #2: ffff8880750e4b70 (&sdp->sd_quota_sync_mutex){+.+.}-{3:3}, at: gfs2_quota_sync+0xae/0x8f0 fs/gfs2/quota.c:1307 stack backtrace: CPU: 0 PID: 5529 Comm: syz-executor.0 Not tainted 6.2.0-rc1-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2990 [inline] check_deadlock kernel/locking/lockdep.c:3033 [inline] validate_chain+0x4843/0x6ae0 kernel/locking/lockdep.c:3818 __lock_acquire+0x1292/0x1f60 kernel/locking/lockdep.c:5055 lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668 __mutex_lock_common+0x1bd/0x26e0 kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 bh_get+0x110/0x7c0 fs/gfs2/quota.c:377 qd_fish fs/gfs2/quota.c:476 [inline] gfs2_quota_sync+0x325/0x8f0 fs/gfs2/quota.c:1314 gfs2_sync_fs+0x49/0xb0 fs/gfs2/super.c:650 sync_filesystem+0xe8/0x220 fs/sync.c:56 generic_shutdown_super+0x6b/0x310 fs/super.c:474 kill_block_super+0x79/0xd0 fs/super.c:1386 deactivate_locked_super+0xa7/0xf0 fs/super.c:332 cleanup_mnt+0x494/0x520 fs/namespace.c:1291 task_work_run+0x243/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fef4068d517 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffa82dfa48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fef4068d517 RDX: 00007fffa82dfb19 RSI: 000000000000000a RDI: 00007fffa82dfb10 RBP: 00007fffa82dfb10 R08: 00000000ffffffff R09: 00007fffa82df8e0 R10: 0000555555f988b3 R11: 0000000000000246 R12: 00007fef406e6b24 R13: 00007fffa82e0bd0 R14: 0000555555f98810 R15: 00007fffa82e0c10