ocfs2: Slot 0 on device (7,3) was already allocated to this node! JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,3) on (node local, slot 0) with ordered data mode. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.3.877/6903 is trying to acquire lock: ffff88805c402990 (jbd2_handle){++++}-{0:0}, at: wait_transaction_locked+0x19f/0x270 fs/jbd2/transaction.c:178 but task is already holding lock: ffff888062b590e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #5 (&journal->j_trans_barrier){.+.+}-{3:3}: down_read+0x44/0x2e0 kernel/locking/rwsem.c:1498 ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374 ocfs2_modify_bh+0xe0/0x4c0 fs/ocfs2/quota_local.c:101 ocfs2_local_read_info+0x1499/0x1820 fs/ocfs2/quota_local.c:764 dquot_load_quota_sb+0x72f/0xa80 fs/quota/dquot.c:2485 dquot_load_quota_inode+0x2d3/0x5c0 fs/quota/dquot.c:2522 ocfs2_enable_quotas+0x1c0/0x4a0 fs/ocfs2/super.c:927 ocfs2_fill_super+0x3c84/0x50a0 fs/ocfs2/super.c:1140 mount_bdev+0x28a/0x3c0 fs/super.c:1411 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1541 do_new_mount+0x247/0xa40 fs/namespace.c:3034 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #4 (sb_internal#3){.+.+}-{0:0}: percpu_down_read include/linux/percpu-rwsem.h:51 [inline] __sb_start_write include/linux/fs.h:1817 [inline] sb_start_intwrite include/linux/fs.h:1934 [inline] ocfs2_start_trans+0x2a7/0x6f0 fs/ocfs2/journal.c:372 ocfs2_acquire_dquot+0x6c0/0xb30 fs/ocfs2/quota_global.c:848 dqget+0x713/0xbb0 fs/quota/dquot.c:1010 ocfs2_setattr+0xd59/0x1b40 fs/ocfs2/file.c:1236 notify_change+0xbc6/0xee0 fs/attr.c:505 chown_common+0x4cc/0x680 fs/open.c:680 vfs_fchown fs/open.c:748 [inline] ksys_fchown+0xe2/0x150 fs/open.c:759 __do_sys_fchown fs/open.c:767 [inline] __se_sys_fchown fs/open.c:765 [inline] __x64_sys_fchown+0x76/0x80 fs/open.c:765 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #3 (&ocfs2_quota_ip_alloc_sem_key){++++}-{3:3}: down_write+0x38/0x60 kernel/locking/rwsem.c:1551 ocfs2_create_local_dquot+0x199/0x18d0 fs/ocfs2/quota_local.c:1224 ocfs2_acquire_dquot+0x822/0xb30 fs/ocfs2/quota_global.c:871 dqget+0x713/0xbb0 fs/quota/dquot.c:1010 ocfs2_setattr+0xd59/0x1b40 fs/ocfs2/file.c:1236 notify_change+0xbc6/0xee0 fs/attr.c:505 chown_common+0x4cc/0x680 fs/open.c:680 vfs_fchown fs/open.c:748 [inline] ksys_fchown+0xe2/0x150 fs/open.c:759 __do_sys_fchown fs/open.c:767 [inline] __se_sys_fchown fs/open.c:765 [inline] __x64_sys_fchown+0x76/0x80 fs/open.c:765 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #2 (&dquot->dq_lock){+.+.}-{3:3}: __mutex_lock_common+0x1e5/0x2400 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743 dquot_commit+0x5a/0x410 fs/quota/dquot.c:532 ext4_write_dquot+0x1f0/0x360 fs/ext4/super.c:6212 mark_dquot_dirty fs/quota/dquot.c:397 [inline] mark_all_dquot_dirty+0xf9/0x400 fs/quota/dquot.c:437 __dquot_alloc_space+0x5cb/0xe10 fs/quota/dquot.c:1774 dquot_alloc_space_nodirty include/linux/quotaops.h:290 [inline] dquot_alloc_space include/linux/quotaops.h:303 [inline] dquot_alloc_block include/linux/quotaops.h:327 [inline] ext4_mb_new_blocks+0xf80/0x47c0 fs/ext4/mballoc.c:5750 ext4_ext_map_blocks+0x17d1/0x63d0 fs/ext4/extents.c:4372 ext4_map_blocks+0x97f/0x1a50 fs/ext4/inode.c:675 ext4_getblk+0x176/0x670 fs/ext4/inode.c:872 ext4_bread+0x26/0x180 fs/ext4/inode.c:925 ext4_append+0x2bb/0x560 fs/ext4/namei.c:83 ext4_init_new_dir+0x2a7/0x910 fs/ext4/namei.c:3030 ext4_mkdir+0x4c3/0xc90 fs/ext4/namei.c:3076 vfs_mkdir+0x386/0x570 fs/namei.c:4116 do_mkdirat+0x1dd/0x5c0 fs/namei.c:4141 __do_sys_mkdirat fs/namei.c:4156 [inline] __se_sys_mkdirat fs/namei.c:4154 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4154 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #1 (&ei->i_data_sem){++++}-{3:3}: down_read+0x44/0x2e0 kernel/locking/rwsem.c:1498 ext4_map_blocks+0x350/0x1a50 fs/ext4/inode.c:600 ext4_append+0x22d/0x560 fs/ext4/namei.c:75 ext4_init_new_dir+0x2a7/0x910 fs/ext4/namei.c:3030 ext4_mkdir+0x4c3/0xc90 fs/ext4/namei.c:3076 vfs_mkdir+0x386/0x570 fs/namei.c:4116 do_mkdirat+0x1dd/0x5c0 fs/namei.c:4141 __do_sys_mkdir fs/namei.c:4161 [inline] __se_sys_mkdir fs/namei.c:4159 [inline] __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4159 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #0 (jbd2_handle){++++}-{0:0}: check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x2c66/0x7b50 kernel/locking/lockdep.c:5012 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 wait_transaction_locked+0x1bb/0x270 fs/jbd2/transaction.c:178 add_transaction_credits+0x104/0xcb0 fs/jbd2/transaction.c:242 start_this_handle+0x723/0x1560 fs/jbd2/transaction.c:423 jbd2__journal_start+0x2b7/0x5a0 fs/jbd2/transaction.c:521 jbd2_journal_start+0x26/0x30 fs/jbd2/transaction.c:560 ocfs2_start_trans+0x3b2/0x6f0 fs/ocfs2/journal.c:376 ocfs2_remove_inode fs/ocfs2/inode.c:697 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:851 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1112 [inline] ocfs2_evict_inode+0x153a/0x4190 fs/ocfs2/inode.c:1249 evict+0x4b6/0x8b0 fs/inode.c:647 d_delete_notify include/linux/fsnotify.h:267 [inline] vfs_rmdir+0x392/0x410 fs/namei.c:4213 do_rmdir+0x27f/0x710 fs/namei.c:4261 __do_sys_rmdir fs/namei.c:4280 [inline] __se_sys_rmdir fs/namei.c:4278 [inline] __x64_sys_rmdir+0x45/0x50 fs/namei.c:4278 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 other info that might help us debug this: Chain exists of: jbd2_handle --> sb_internal#3 --> &journal->j_trans_barrier Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&journal->j_trans_barrier); lock( sb_internal#3); lock(&journal->j_trans_barrier); lock(jbd2_handle); *** DEADLOCK *** 7 locks held by syz.3.877/6903: #0: ffff88807bc8a460 (sb_writers#20){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:386 #1: ffff888071fd5108 (&type->i_mutex_dir_key#11/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:828 [inline] #1: ffff888071fd5108 (&type->i_mutex_dir_key#11/1){+.+.}-{3:3}, at: do_rmdir+0x1b0/0x710 fs/namei.c:4248 #2: ffff8880794bcab0 (&osb->nfs_sync_rwlock){.+.+}-{3:3}, at: ocfs2_nfs_sync_lock+0x103/0x270 fs/ocfs2/dlmglue.c:2874 #3: ffff888071fd2648 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:793 [inline] #3: ffff888071fd2648 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:809 [inline] #3: ffff888071fd2648 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1112 [inline] #3: ffff888071fd2648 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: ocfs2_evict_inode+0x2302/0x4190 fs/ocfs2/inode.c:1249 #4: ffff8880588b09c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:793 [inline] #4: ffff8880588b09c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7){+.+.}-{3:3}, at: ocfs2_remove_inode fs/ocfs2/inode.c:688 [inline] #4: ffff8880588b09c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7){+.+.}-{3:3}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:851 [inline] #4: ffff8880588b09c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7){+.+.}-{3:3}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1112 [inline] #4: ffff8880588b09c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7){+.+.}-{3:3}, at: ocfs2_evict_inode+0x1453/0x4190 fs/ocfs2/inode.c:1249 #5: ffff88807bc8a650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_remove_inode fs/ocfs2/inode.c:697 [inline] #5: ffff88807bc8a650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:851 [inline] #5: ffff88807bc8a650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1112 [inline] #5: ffff88807bc8a650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_evict_inode+0x153a/0x4190 fs/ocfs2/inode.c:1249 #6: ffff888062b590e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374 stack backtrace: CPU: 1 PID: 6903 Comm: syz.3.877 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 check_noncircular+0x296/0x330 kernel/locking/lockdep.c:2133 check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x2c66/0x7b50 kernel/locking/lockdep.c:5012 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 wait_transaction_locked+0x1bb/0x270 fs/jbd2/transaction.c:178 add_transaction_credits+0x104/0xcb0 fs/jbd2/transaction.c:242 start_this_handle+0x723/0x1560 fs/jbd2/transaction.c:423 jbd2__journal_start+0x2b7/0x5a0 fs/jbd2/transaction.c:521 jbd2_journal_start+0x26/0x30 fs/jbd2/transaction.c:560 ocfs2_start_trans+0x3b2/0x6f0 fs/ocfs2/journal.c:376 ocfs2_remove_inode fs/ocfs2/inode.c:697 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:851 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1112 [inline] ocfs2_evict_inode+0x153a/0x4190 fs/ocfs2/inode.c:1249 evict+0x4b6/0x8b0 fs/inode.c:647 d_delete_notify include/linux/fsnotify.h:267 [inline] vfs_rmdir+0x392/0x410 fs/namei.c:4213 do_rmdir+0x27f/0x710 fs/namei.c:4261 __do_sys_rmdir fs/namei.c:4280 [inline] __se_sys_rmdir fs/namei.c:4278 [inline] __x64_sys_rmdir+0x45/0x50 fs/namei.c:4278 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fc1ea2ce159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc1e8526028 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007fc1ea555fa0 RCX: 00007fc1ea2ce159 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000000 RBP: 00007fc1ea365024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc1ea556038 R14: 00007fc1ea555fa0 R15: 00007ffe5b58ca48