EXT4-fs (loop5): mounted filesystem without journal. Opts: nogrpid,nolazytime,nomblk_io_submit,,errors=continue. Quota mode: writeback. ext4 filesystem being mounted at /2/bus supports timestamps until 2038-01-19 (0x7fffffff) ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.5.133/4870 is trying to acquire lock: ffff888061a080a8 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_commit+0x5a/0x410 fs/quota/dquot.c:532 but task is already holding lock: ffff888024268c70 (&ei->i_data_sem){++++}-{3:3}, at: ext4_truncate+0x994/0x1190 fs/ext4/inode.c:4258 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+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:3032 ext4_mkdir+0x4c3/0xc90 fs/ext4/namei.c:3078 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 -> #4 (jbd2_handle){++++}-{0:0} : 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_restart+0x233/0x630 fs/jbd2/transaction.c:816 ocfs2_extend_trans+0x2bb/0x6f0 fs/ocfs2/journal.c:459 ocfs2_extend_rotate_transaction fs/ocfs2/alloc.c:2297 [inline] ocfs2_try_to_merge_extent+0xdb9/0x1cd0 fs/ocfs2/alloc.c:3805 ocfs2_split_extent+0x14e3/0x21e0 fs/ocfs2/alloc.c:5131 ocfs2_change_extent_flag+0xb11/0xe30 fs/ocfs2/alloc.c:5222 ocfs2_mark_extent_written+0x2f3/0x570 fs/ocfs2/alloc.c:5268 ocfs2_dio_end_io_write fs/ocfs2/aops.c:2367 [inline] ocfs2_dio_end_io+0x881/0x1400 fs/ocfs2/aops.c:2451 dio_complete+0x255/0x700 fs/direct-io.c:272 do_blockdev_direct_IO fs/direct-io.c:1336 [inline] __blockdev_direct_IO+0x2eb0/0x3b20 fs/direct-io.c:1368 ocfs2_direct_IO+0x233/0x2a0 fs/ocfs2/aops.c:2488 generic_file_direct_write+0x222/0x470 mm/filemap.c:3687 __generic_file_write_iter+0x2b2/0x4e0 mm/filemap.c:3869 ocfs2_file_write_iter+0x171a/0x1ee0 fs/ocfs2/file.c:2472 do_iter_readv_writev+0x47d/0x5f0 fs/read_write.c:-1 do_iter_write+0x1f8/0x7a0 fs/read_write.c:855 iter_file_splice_write+0x6be/0xcf0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:956 splice_direct_to_actor+0x4e8/0xc00 fs/splice.c:902 do_splice_direct+0x1d4/0x2f0 fs/splice.c:1008 do_sendfile+0x524/0xe30 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1303 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 (&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 -> #2 (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 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1539 ocfs2_get_init_inode+0x144/0x1b0 fs/ocfs2/namei.c:202 ocfs2_mknod+0x93c/0x25f0 fs/ocfs2/namei.c:311 ocfs2_create+0x192/0x420 fs/ocfs2/namei.c:681 vfs_create+0x2db/0x460 fs/namei.c:3213 do_mknodat+0x49e/0x630 fs/namei.c:4045 __do_sys_mknod fs/namei.c:4078 [inline] __se_sys_mknod fs/namei.c:4076 [inline] __x64_sys_mknod+0x8a/0xa0 fs/namei.c:4076 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 ( &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 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1539 ocfs2_get_init_inode+0x144/0x1b0 fs/ocfs2/namei.c:202 ocfs2_mknod+0x93c/0x25f0 fs/ocfs2/namei.c:311 ocfs2_create+0x192/0x420 fs/ocfs2/namei.c:681 vfs_create+0x2db/0x460 fs/namei.c:3213 do_mknodat+0x49e/0x630 fs/namei.c:4045 __do_sys_mknod fs/namei.c:4078 [inline] __se_sys_mknod fs/namei.c:4076 [inline] __x64_sys_mknod+0x8a/0xa0 fs/namei.c:4076 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 ( &dquot->dq_lock){+.+.}-{3:3}: 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:5625 __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_free_space+0x7c3/0xb80 fs/quota/dquot.c:1964 dquot_free_space_nodirty include/linux/quotaops.h:369 [inline] dquot_free_space include/linux/quotaops.h:374 [inline] dquot_free_block include/linux/quotaops.h:385 [inline] ext4_mb_clear_bb fs/ext4/mballoc.c:6164 [inline] ext4_free_blocks+0x1b1b/0x24c0 fs/ext4/mballoc.c:6294 ext4_remove_blocks fs/ext4/extents.c:2540 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2706 [inline] ext4_ext_remove_space+0x2106/0x41a0 fs/ext4/extents.c:2954 ext4_ext_truncate+0x182/0x230 fs/ext4/extents.c:4504 ext4_truncate+0xa41/0x1190 fs/ext4/inode.c:4263 ext4_setattr+0x117c/0x1b70 fs/ext4/inode.c:5620 notify_change+0xbc6/0xee0 fs/attr.c:505 do_truncate+0x1ac/0x240 fs/open.c:65 handle_truncate fs/namei.c:3316 [inline] do_open fs/namei.c:3663 [inline] path_openat+0x293b/0x2fb0 fs/namei.c:3793 do_filp_open+0x1df/0x400 fs/namei.c:3820 do_sys_openat2+0x14b/0x500 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_open fs/open.c:1279 [inline] __se_sys_open fs/open.c:1275 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1275 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: &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.5.133/4870: #0: ffff88805c948460 (sb_writers #5){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:386 #1: ffff888024268de8 (&sb->s_type->i_mutex_key#9){++++}-{3:3} , at: inode_lock include/linux/fs.h:793 [inline] , at: do_truncate+0x198/0x240 fs/open.c:63 #2: ffff888024268f88 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:838 [inline] (mapping.invalidate_lock){++++}-{3:3}, at: ext4_setattr+0xf40/0x1b70 fs/ext4/inode.c:5543 #3: ffff888024268c70 (&ei->i_data_sem){++++}-{3:3} , at: ext4_truncate+0x994/0x1190 fs/ext4/inode.c:4258 #4: ffffffff8c4418b8 (dquot_srcu ){....}-{0:0}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:312 stack backtrace: CPU: 1 PID: 4870 Comm: syz.5.133 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:5625 __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_free_space+0x7c3/0xb80 fs/quota/dquot.c:1964 dquot_free_space_nodirty include/linux/quotaops.h:369 [inline] dquot_free_space include/linux/quotaops.h:374 [inline] dquot_free_block include/linux/quotaops.h:385 [inline] ext4_mb_clear_bb fs/ext4/mballoc.c:6164 [inline] ext4_free_blocks+0x1b1b/0x24c0 fs/ext4/mballoc.c:6294 ext4_remove_blocks fs/ext4/extents.c:2540 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2706 [inline] ext4_ext_remove_space+0x2106/0x41a0 fs/ext4/extents.c:2954 ext4_ext_truncate+0x182/0x230 fs/ext4/extents.c:4504 ext4_truncate+0xa41/0x1190 fs/ext4/inode.c:4263 ext4_setattr+0x117c/0x1b70 fs/ext4/inode.c:5620 notify_change+0xbc6/0xee0 fs/attr.c:505 do_truncate+0x1ac/0x240 fs/open.c:65 handle_truncate fs/namei.c:3316 [inline] do_open fs/namei.c:3663 [inline] path_openat+0x293b/0x2fb0 fs/namei.c:3793 do_filp_open+0x1df/0x400 fs/namei.c:3820 do_sys_openat2+0x14b/0x500 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_open fs/open.c:1279 [inline] __se_sys_open fs/open.c:1275 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1275 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:0x7f12310de159 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:00007f122f336028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f1231365fa0 RCX: 00007f12310de159 RDX: 0000000000000195 RSI: 000000000004827e RDI: 0000200000000200 RBP: 00007f123117506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1231366038 R14: 00007f1231365fa0 R15: 00007fffd3ce1e28 EXT4-fs error (device loop5): ext4_map_blocks:631: inode #3: block 15: comm syz.5.133: lblock 2 mapped to illegal pblock 15 (length 1) Quota error (device loop5): qtree_write_dquot: dquota write failed EXT4-fs error (device loop5): ext4_write_dquot:6216: comm syz.5.133: Failed to commit dquot type 0 EXT4-fs error (device loop5): ext4_map_blocks:631: inode #4: block 19: comm syz.5.133: lblock 2 mapped to illegal pblock 19 (length 1) Quota error (device loop5): qtree_write_dquot: dquota write failed EXT4-fs error (device loop5): ext4_write_dquot:6216: comm syz.5.133: Failed to commit dquot type 1 EXT4-fs error (device loop5): __ext4_get_inode_loc:4334: comm syz.5.133: Invalid inode table block 34 in block_group 0 EXT4-fs error (device loop5) in ext4_reserve_inode_write:5873: Corrupt filesystem EXT4-fs error (device loop5): ext4_dirty_inode:6087: inode #15: comm syz.5.133: mark_inode_dirty error EXT4-fs error (device loop5): __ext4_get_inode_loc:4334: comm syz.5.133: Invalid inode table block 34 in block_group 0 EXT4-fs error (device loop5) in ext4_reserve_inode_write:5873: Corrupt filesystem EXT4-fs error (device loop5): __ext4_ext_dirty:183: inode #15: comm syz.5.133: mark_inode_dirty error kcov: kcov_task_exit: t = ffff888017debb80, kcov->t = ffff888017debb80 send_to_group: group=ffff8881447e4000 mask=8 marks_mask=2008 marks_ignore_mask=0 data=ffff88802adedb90 data_type=1 dir=0000000000000000 cookie=0 inotify_handle_inode_event: group=ffff8881447e4000 mark=ffff8880733987d0 mask=8 fsnotify_insert_event: group=ffff8881447e4000 event=ffff888074f23500