EXT4-fs (loop3): mounted filesystem without journal. Quota mode: writeback. ext4 filesystem being mounted at /90/file1 supports timestamps until 2038-01-19 (0x7fffffff) ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.3.473/6153 is trying to acquire lock: ffff8880501c00a8 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_commit+0x5a/0x410 fs/quota/dquot.c:535 but task is already holding lock: ffff8880500bc8c0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_map_blocks+0x914/0x1a90 fs/ext4/inode.c:675 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #5 (&ei->i_data_sem){++++}-{3:3}: down_read+0x42/0x2d0 kernel/locking/rwsem.c:1520 ext4_map_blocks+0x338/0x1a90 fs/ext4/inode.c:607 ext4_append+0x22d/0x560 fs/ext4/namei.c:75 ext4_init_new_dir+0x2b8/0x550 fs/ext4/namei.c:3031 ext4_mkdir+0x4c3/0xc90 fs/ext4/namei.c:3077 vfs_mkdir+0x386/0x570 fs/namei.c:4161 do_mkdirat+0x1d8/0x440 fs/namei.c:4186 __do_sys_mkdir fs/namei.c:4206 [inline] __se_sys_mkdir fs/namei.c:4204 [inline] __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4204 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #4 (jbd2_handle){++++}-{0:0}: wait_transaction_locked+0x1bf/0x270 fs/jbd2/transaction.c:177 add_transaction_credits fs/jbd2/transaction.c:241 [inline] start_this_handle+0x7e7/0x2240 fs/jbd2/transaction.c:422 jbd2__journal_restart+0x235/0x6c0 fs/jbd2/transaction.c:815 ocfs2_extend_trans+0x2fc/0x800 fs/ocfs2/journal.c:469 ocfs2_extend_rotate_transaction fs/ocfs2/alloc.c:2301 [inline] ocfs2_try_to_merge_extent+0xdb9/0x1cd0 fs/ocfs2/alloc.c:3809 ocfs2_split_extent+0x14e3/0x21e0 fs/ocfs2/alloc.c:5135 ocfs2_change_extent_flag+0xb11/0xe30 fs/ocfs2/alloc.c:5226 ocfs2_mark_extent_written+0x30f/0x600 fs/ocfs2/alloc.c:5272 ocfs2_dio_end_io_write fs/ocfs2/aops.c:2367 [inline] ocfs2_dio_end_io+0x881/0x1400 fs/ocfs2/aops.c:2451 dio_complete+0x249/0x710 fs/direct-io.c:271 __blockdev_direct_IO+0x2e15/0x34c0 fs/direct-io.c:1320 ocfs2_direct_IO+0x233/0x2a0 fs/ocfs2/aops.c:2488 generic_file_direct_write+0x112/0x330 mm/filemap.c:3801 __generic_file_write_iter+0x15f/0x2a0 mm/filemap.c:3959 ocfs2_file_write_iter+0x1540/0x1f90 fs/ocfs2/file.c:2500 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x638/0xb10 fs/read_write.c:861 iter_file_splice_write+0x6be/0xcf0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:951 splice_direct_to_actor+0x4b8/0xbd0 fs/splice.c:897 do_splice_direct+0x1ce/0x2f0 fs/splice.c:1003 do_sendfile+0x51b/0xe20 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: down_read+0x42/0x2d0 kernel/locking/rwsem.c:1520 ocfs2_start_trans+0x3a4/0x6f0 fs/ocfs2/journal.c:384 ocfs2_modify_bh+0xe0/0x4c0 fs/ocfs2/quota_local.c:101 ocfs2_local_read_info+0xdba/0x12d0 fs/ocfs2/quota_local.c:788 dquot_load_quota_sb+0x72f/0xa80 fs/quota/dquot.c:2495 dquot_load_quota_inode+0x2d3/0x5c0 fs/quota/dquot.c:2532 ocfs2_enable_quotas+0x1c0/0x4a0 fs/ocfs2/super.c:927 ocfs2_fill_super+0x4126/0x5050 fs/ocfs2/super.c:1140 mount_bdev+0x28a/0x3c0 fs/super.c:1454 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa50 fs/namespace.c:3108 do_mount fs/namespace.c:3482 [inline] __do_sys_mount fs/namespace.c:3690 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3667 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #2 (sb_internal#2){.+.+}-{0:0}: percpu_down_read include/linux/percpu-rwsem.h:51 [inline] __sb_start_write include/linux/fs.h:1899 [inline] sb_start_intwrite include/linux/fs.h:2021 [inline] ocfs2_start_trans+0x2a5/0x6f0 fs/ocfs2/journal.c:382 ocfs2_acquire_dquot+0x69a/0xb80 fs/ocfs2/quota_global.c:848 dqget+0x713/0xbb0 fs/quota/dquot.c:1013 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1542 ocfs2_get_init_inode+0x144/0x1b0 fs/ocfs2/namei.c:202 ocfs2_mknod+0xbd1/0x2500 fs/ocfs2/namei.c:310 ocfs2_create+0x1b6/0x4b0 fs/ocfs2/namei.c:675 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3835 do_filp_open+0x1ee/0x420 fs/namei.c:3865 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #1 (&ocfs2_quota_ip_alloc_sem_key){++++}-{3:3}: down_write+0x36/0x60 kernel/locking/rwsem.c:1573 ocfs2_create_local_dquot+0x19a/0x1900 fs/ocfs2/quota_local.c:1254 ocfs2_acquire_dquot+0x7e6/0xb80 fs/ocfs2/quota_global.c:871 dqget+0x713/0xbb0 fs/quota/dquot.c:1013 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1542 ocfs2_get_init_inode+0x144/0x1b0 fs/ocfs2/namei.c:202 ocfs2_mknod+0xbd1/0x2500 fs/ocfs2/namei.c:310 ocfs2_create+0x1b6/0x4b0 fs/ocfs2/namei.c:675 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3835 do_filp_open+0x1ee/0x420 fs/namei.c:3865 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #0 (&dquot->dq_lock){+.+.}-{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+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xb40 kernel/locking/mutex.c:747 dquot_commit+0x5a/0x410 fs/quota/dquot.c:535 ext4_write_dquot+0x1f0/0x360 fs/ext4/super.c:6853 mark_dquot_dirty fs/quota/dquot.c:400 [inline] mark_all_dquot_dirty+0xf9/0x400 fs/quota/dquot.c:440 __dquot_alloc_space+0x5f6/0xe50 fs/quota/dquot.c:1777 dquot_alloc_space_nodirty include/linux/quotaops.h:293 [inline] dquot_alloc_space include/linux/quotaops.h:306 [inline] dquot_alloc_block include/linux/quotaops.h:330 [inline] ext4_mb_new_blocks+0xf55/0x44d0 fs/ext4/mballoc.c:5755 ext4_ext_map_blocks+0x17d9/0x6420 fs/ext4/extents.c:4369 ext4_map_blocks+0x9d7/0x1a90 fs/ext4/inode.c:682 _ext4_get_block+0x1e7/0x540 fs/ext4/inode.c:825 ext4_block_write_begin+0x63b/0x12f0 fs/ext4/inode.c:1127 ext4_write_begin+0x623/0xf40 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x408/0x920 fs/ext4/inode.c:3006 generic_perform_write+0x2fa/0x5c0 mm/filemap.c:3876 ext4_buffered_write_iter+0x11a/0x380 fs/ext4/file.c:292 ext4_file_write_iter+0x1e3/0x17d0 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2273 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x482/0x9a0 fs/read_write.c:584 ksys_write+0x14d/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Chain exists of: &dquot->dq_lock --> jbd2_handle --> &ei->i_data_sem Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ei->i_data_sem); lock(jbd2_handle); lock(&ei->i_data_sem); lock(&dquot->dq_lock); *** DEADLOCK *** 5 locks held by syz.3.473/6153: #0: ffff88807d7be868 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2ae/0x360 fs/file.c:1038 #1: ffff888043bbc460 (sb_writers#4){.+.+}-{0:0}, at: vfs_write+0x270/0x9a0 fs/read_write.c:580 #2: ffff8880500bca38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:766 [inline] #2: ffff8880500bca38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xa1/0x380 fs/ext4/file.c:279 #3: ffff8880500bc8c0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_map_blocks+0x914/0x1a90 fs/ext4/inode.c:675 #4: ffffffff8dc75a28 (dquot_srcu){....}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #4: ffffffff8dc75a28 (dquot_srcu){....}-{0:0}, at: srcu_read_lock include/linux/srcu.h:165 [inline] #4: ffffffff8dc75a28 (dquot_srcu){....}-{0:0}, at: __dquot_alloc_space+0x16e/0xe50 fs/quota/dquot.c:1741 stack backtrace: CPU: 1 PID: 6153 Comm: syz.3.473 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 check_noncircular+0x2f8/0x400 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+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xb40 kernel/locking/mutex.c:747 dquot_commit+0x5a/0x410 fs/quota/dquot.c:535 ext4_write_dquot+0x1f0/0x360 fs/ext4/super.c:6853 mark_dquot_dirty fs/quota/dquot.c:400 [inline] mark_all_dquot_dirty+0xf9/0x400 fs/quota/dquot.c:440 __dquot_alloc_space+0x5f6/0xe50 fs/quota/dquot.c:1777 dquot_alloc_space_nodirty include/linux/quotaops.h:293 [inline] dquot_alloc_space include/linux/quotaops.h:306 [inline] dquot_alloc_block include/linux/quotaops.h:330 [inline] ext4_mb_new_blocks+0xf55/0x44d0 fs/ext4/mballoc.c:5755 ext4_ext_map_blocks+0x17d9/0x6420 fs/ext4/extents.c:4369 ext4_map_blocks+0x9d7/0x1a90 fs/ext4/inode.c:682 _ext4_get_block+0x1e7/0x540 fs/ext4/inode.c:825 ext4_block_write_begin+0x63b/0x12f0 fs/ext4/inode.c:1127 ext4_write_begin+0x623/0xf40 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x408/0x920 fs/ext4/inode.c:3006 generic_perform_write+0x2fa/0x5c0 mm/filemap.c:3876 ext4_buffered_write_iter+0x11a/0x380 fs/ext4/file.c:292 ext4_file_write_iter+0x1e3/0x17d0 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2273 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x482/0x9a0 fs/read_write.c:584 ksys_write+0x14d/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f3e337a9b59 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:00007f3e319f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3e33a35fa0 RCX: 00007f3e337a9b59 RDX: 0000000000001064 RSI: 0000200000000a40 RDI: 0000000000000005 RBP: 00007f3e3383a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3e33a36038 R14: 00007f3e33a35fa0 R15: 00007ffddb51a6b8