================================ WARNING: inconsistent lock state 6.2.0-rc1-syzkaller-dirty #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. ksoftirqd/0/15 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888073f6a048 (&qd->qd_lockref.lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff888073f6a048 (&qd->qd_lockref.lock){+.?.}-{2:2}, at: gfs2_qd_dealloc+0x1e/0xa0 fs/gfs2/quota.c:109 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] lockref_get_not_dead+0x22/0xb0 lib/lockref.c:185 qd_check_sync+0x132/0x3f0 fs/gfs2/quota.c:444 qd_fish fs/gfs2/quota.c:467 [inline] gfs2_quota_sync+0x202/0x8b0 fs/gfs2/quota.c:1313 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 irq event stamp: 299328 hardirqs last enabled at (299328): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (299328): [] _raw_spin_unlock_irqrestore+0x8b/0x120 kernel/locking/spinlock.c:194 hardirqs last disabled at (299327): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (299327): [] _raw_spin_lock_irqsave+0x8e/0x100 kernel/locking/spinlock.c:162 softirqs last enabled at (299078): [] run_ksoftirqd+0xa2/0x100 kernel/softirq.c:934 softirqs last disabled at (299083): [] run_ksoftirqd+0xa2/0x100 kernel/softirq.c:934 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&qd->qd_lockref.lock); lock(&qd->qd_lockref.lock); *** DEADLOCK *** 1 lock held by ksoftirqd/0/15: #0: ffffffff8d326d80 (rcu_callback){....}-{0:0}, at: rcu_lock_acquire+0x0/0x20 stack backtrace: CPU: 0 PID: 15 Comm: ksoftirqd/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_usage_bug+0x8b4/0xba0 kernel/locking/lockdep.c:3963 mark_lock_irq+0xa7f/0xe60 mark_lock+0x21e/0x350 kernel/locking/lockdep.c:4634 __lock_acquire+0xb7d/0x1f60 kernel/locking/lockdep.c:5009 lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] gfs2_qd_dealloc+0x1e/0xa0 fs/gfs2/quota.c:109 rcu_do_batch kernel/rcu/tree.c:2246 [inline] rcu_core+0x9c1/0x1690 kernel/rcu/tree.c:2506 __do_softirq+0x277/0x738 kernel/softirq.c:571 run_ksoftirqd+0xa2/0x100 kernel/softirq.c:934 smpboot_thread_fn+0x533/0xa10 kernel/smpboot.c:164 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308