====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.2.9/4443 is trying to acquire lock: ffff0000f8e04ae0 (&sdp->sd_quota_mutex){+.+.}-{3:3}, at: do_qc+0xc0/0x658 fs/gfs2/quota.c:682 but task is already holding lock: ffff0000f6dc85e8 (&ip->i_rw_mutex){++++}-{3:3}, at: sweep_bh_for_rgrps fs/gfs2/bmap.c:1529 [inline] ffff0000f6dc85e8 (&ip->i_rw_mutex){++++}-{3:3}, at: punch_hole+0x222c/0x3018 fs/gfs2/bmap.c:1854 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&ip->i_rw_mutex){++++}-{3:3}: down_read+0x64/0x300 kernel/locking/rwsem.c:1520 __gfs2_iomap_get+0x118/0x10fc fs/gfs2/bmap.c:862 gfs2_iomap_get+0xd4/0x144 fs/gfs2/bmap.c:1413 bh_get+0x1e8/0x608 fs/gfs2/quota.c:385 qdsb_get+0x1c4/0x370 fs/gfs2/quota.c:522 gfs2_quota_hold+0x16c/0x550 fs/gfs2/quota.c:608 punch_hole+0xc20/0x3018 fs/gfs2/bmap.c:1815 gfs2_file_dealloc+0x28/0x38 fs/gfs2/bmap.c:2177 evict_unlinked_inode+0x190/0x608 fs/gfs2/super.c:1400 gfs2_evict_inode+0x560/0xe5c fs/gfs2/super.c:1499 evict+0x3d8/0x824 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x728/0x7e8 fs/inode.c:1860 dentry_unlink_inode+0x360/0x438 fs/dcache.c:405 __dentry_kill+0x318/0x590 fs/dcache.c:611 dentry_kill+0xcc/0x24c fs/dcache.c:-1 dput+0x228/0x444 fs/dcache.c:918 __fput+0x480/0x7b0 fs/file_table.c:328 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1f4/0x280 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x54c/0x19ac kernel/exit.c:887 do_group_exit+0x198/0x238 kernel/exit.c:1030 get_signal+0x11f4/0x133c kernel/signal.c:2884 do_signal arch/arm64/kernel/signal.c:1095 [inline] do_notify_resume+0x2a8/0x2c84 arch/arm64/kernel/signal.c:1148 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xbc/0x14c arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0x90/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 -> #0 (&sdp->sd_quota_mutex){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3504/0x7280 kernel/locking/lockdep.c:5171 lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 __mutex_lock_common+0x1a0/0x1f3c kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 do_qc+0xc0/0x658 fs/gfs2/quota.c:682 gfs2_quota_change+0x238/0x718 fs/gfs2/quota.c:1295 punch_hole+0x2ac0/0x3018 fs/gfs2/bmap.c:1955 gfs2_file_dealloc+0x28/0x38 fs/gfs2/bmap.c:2177 evict_unlinked_inode+0x190/0x608 fs/gfs2/super.c:1400 gfs2_evict_inode+0x560/0xe5c fs/gfs2/super.c:1499 evict+0x3d8/0x824 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x728/0x7e8 fs/inode.c:1860 dentry_unlink_inode+0x360/0x438 fs/dcache.c:405 __dentry_kill+0x318/0x590 fs/dcache.c:611 dentry_kill+0xcc/0x24c fs/dcache.c:-1 dput+0x228/0x444 fs/dcache.c:918 __fput+0x480/0x7b0 fs/file_table.c:328 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1f4/0x280 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x54c/0x19ac kernel/exit.c:887 do_group_exit+0x198/0x238 kernel/exit.c:1030 get_signal+0x11f4/0x133c kernel/signal.c:2884 do_signal arch/arm64/kernel/signal.c:1095 [inline] do_notify_resume+0x2a8/0x2c84 arch/arm64/kernel/signal.c:1148 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xbc/0x14c arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0x90/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ip->i_rw_mutex); lock(&sdp->sd_quota_mutex); lock(&ip->i_rw_mutex); lock(&sdp->sd_quota_mutex); *** DEADLOCK *** 3 locks held by syz.2.9/4443: #0: ffff0000ce6c2650 (sb_internal#3){.+.+}-{0:0}, at: gfs2_trans_begin+0xa8/0x114 fs/gfs2/trans.c:118 #1: ffff0000f8e05058 (&sdp->sd_log_flush_lock){.+.+}-{3:3}, at: __gfs2_trans_begin+0x50c/0x884 fs/gfs2/trans.c:87 #2: ffff0000f6dc85e8 (&ip->i_rw_mutex){++++}-{3:3}, at: sweep_bh_for_rgrps fs/gfs2/bmap.c:1529 [inline] #2: ffff0000f6dc85e8 (&ip->i_rw_mutex){++++}-{3:3}, at: punch_hole+0x222c/0x3018 fs/gfs2/bmap.c:1854 stack backtrace: CPU: 0 PID: 4443 Comm: syz.2.9 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 print_circular_bug+0x148/0x1b0 kernel/locking/lockdep.c:2088 check_noncircular+0x290/0x370 kernel/locking/lockdep.c:2215 check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3504/0x7280 kernel/locking/lockdep.c:5171 lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 __mutex_lock_common+0x1a0/0x1f3c kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 do_qc+0xc0/0x658 fs/gfs2/quota.c:682 gfs2_quota_change+0x238/0x718 fs/gfs2/quota.c:1295 punch_hole+0x2ac0/0x3018 fs/gfs2/bmap.c:1955 gfs2_file_dealloc+0x28/0x38 fs/gfs2/bmap.c:2177 evict_unlinked_inode+0x190/0x608 fs/gfs2/super.c:1400 gfs2_evict_inode+0x560/0xe5c fs/gfs2/super.c:1499 evict+0x3d8/0x824 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x728/0x7e8 fs/inode.c:1860 dentry_unlink_inode+0x360/0x438 fs/dcache.c:405 __dentry_kill+0x318/0x590 fs/dcache.c:611 dentry_kill+0xcc/0x24c fs/dcache.c:-1 dput+0x228/0x444 fs/dcache.c:918 __fput+0x480/0x7b0 fs/file_table.c:328 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1f4/0x280 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x54c/0x19ac kernel/exit.c:887 do_group_exit+0x198/0x238 kernel/exit.c:1030 get_signal+0x11f4/0x133c kernel/signal.c:2884 do_signal arch/arm64/kernel/signal.c:1095 [inline] do_notify_resume+0x2a8/0x2c84 arch/arm64/kernel/signal.c:1148 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xbc/0x14c arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0x90/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 gfs2: fsid=syz:syz.0: original: gfs2_quota_sync+0x2cc/0x4e8 fs/gfs2/quota.c:1329 gfs2: fsid=syz:syz.0: pid: 4443 gfs2: fsid=syz:syz.0: lock type: 8 req lock state : 1 gfs2: fsid=syz:syz.0: new: gfs2_quota_sync+0x2cc/0x4e8 fs/gfs2/quota.c:1329 gfs2: fsid=syz:syz.0: pid: 4443 gfs2: fsid=syz:syz.0: lock type: 8 req lock state : 1 gfs2: fsid=syz:syz.0: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:6 m:20 p:0 gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:4443 [syz.2.9] gfs2_quota_sync+0x2cc/0x4e8 fs/gfs2/quota.c:1329 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1560! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4443 Comm: syz.2.9 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : add_to_queue fs/gfs2/glock.c:1559 [inline] pc : gfs2_glock_nq+0xeb4/0x11c4 fs/gfs2/glock.c:1585 lr : add_to_queue fs/gfs2/glock.c:1559 [inline] lr : gfs2_glock_nq+0xeb4/0x11c4 fs/gfs2/glock.c:1585 sp : ffff800022fb7440 x29: ffff800022fb7480 x28: 0000000000000400 x27: dfff800000000000 x26: ffff0000f8ce93c0 x25: ffff0000c3b51a38 x24: ffff0000c3b51a38 x23: 0000000000000000 x22: ffff0000c3b51a92 x21: ffff0000f6dffb60 x20: ffff0000f6dffb78 x19: 0000000000000008 x18: 1fffe00033c1877e x17: 75715f3273666720 x16: ffff800011bcac18 x15: 5b20333434343a70 x14: 0000000000000001 x13: 1fffe00033c187a3 x12: 0000000000000000 x11: ff0080000a266df0 x10: 0000000000000000 x9 : 3fe920be4bc4ed00 x8 : 3fe920be4bc4ed00 x7 : 0000000000000000 x6 : 0000000000000001 x5 : ffff800022fb6a58 x4 : 0000000000000008 x3 : 0000000000000030 x2 : 0000000000000008 x1 : 0000000000000000 x0 : ffff7000045f6e38 Call trace: add_to_queue fs/gfs2/glock.c:1559 [inline] gfs2_glock_nq+0xeb4/0x11c4 fs/gfs2/glock.c:1585 gfs2_glock_nq_init fs/gfs2/glock.h:255 [inline] do_sync+0x370/0xa68 fs/gfs2/quota.c:921 gfs2_quota_sync+0x2cc/0x4e8 fs/gfs2/quota.c:1329 gfs2_sync_fs+0x50/0xc8 fs/gfs2/super.c:664 sync_filesystem+0xe8/0x218 fs/sync.c:56 generic_shutdown_super+0x74/0x32c fs/super.c:474 kill_block_super+0x78/0xe0 fs/super.c:1481 gfs2_kill_sb+0xc4/0xd8 fs/gfs2/ops_fstype.c:-1 deactivate_locked_super+0xb4/0x128 fs/super.c:332 deactivate_super+0xe4/0x104 fs/super.c:363 cleanup_mnt+0x3a8/0x430 fs/namespace.c:1191 __cleanup_mnt+0x20/0x30 fs/namespace.c:1198 task_work_run+0x1f4/0x280 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x54c/0x19ac kernel/exit.c:887 do_group_exit+0x198/0x238 kernel/exit.c:1030 get_signal+0x11f4/0x133c kernel/signal.c:2884 do_signal arch/arm64/kernel/signal.c:1095 [inline] do_notify_resume+0x2a8/0x2c84 arch/arm64/kernel/signal.c:1148 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xbc/0x14c arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0x90/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: aa1f03e0 aa1503e1 52800022 97ffe35b (d4210000) ---[ end trace 0000000000000000 ]---