EXT4-fs: Ignoring removed nomblk_io_submit option EXT4-fs: inline encryption not supported ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.2.321/5639 is trying to acquire lock: ffff0000f578a268 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_commit+0x54/0x1c8 fs/quota/dquot.c:535 but task is already holding lock: ffff0000f57c70e0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_truncate+0x7d8/0x1090 fs/ext4/inode.c:4297 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #5 (&ei->i_data_sem){++++}-{3:3}: down_write+0x5c/0x88 kernel/locking/rwsem.c:1573 ext4_map_blocks+0x720/0x160c fs/ext4/inode.c:674 mpage_map_one_extent fs/ext4/inode.c:2436 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2489 [inline] ext4_writepages+0xdbc/0x28fc fs/ext4/inode.c:2857 do_writepages+0x2c4/0x50c mm/page-writeback.c:2491 __writeback_single_inode+0x164/0x157c fs/fs-writeback.c:1673 writeback_sb_inodes+0x870/0x1470 fs/fs-writeback.c:1964 __writeback_inodes_wb+0x104/0x370 fs/fs-writeback.c:2035 wb_writeback+0x420/0xfdc fs/fs-writeback.c:2140 wb_check_background_flush fs/fs-writeback.c:2206 [inline] wb_do_writeback fs/fs-writeback.c:2294 [inline] wb_workfn+0xb40/0xe18 fs/fs-writeback.c:2321 process_one_work+0x7e4/0x13bc kernel/workqueue.c:2292 worker_thread+0x8cc/0xfe8 kernel/workqueue.c:2439 kthread+0x254/0x2e0 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 -> #4 (jbd2_handle){++++}-{0:0}: wait_transaction_locked+0x184/0x23c fs/jbd2/transaction.c:177 add_transaction_credits+0x104/0xaf0 fs/jbd2/transaction.c:-1 start_this_handle+0x4dc/0x125c fs/jbd2/transaction.c:422 jbd2__journal_restart+0x1c8/0x678 fs/jbd2/transaction.c:815 jbd2_journal_restart+0x30/0x40 fs/jbd2/transaction.c:827 ocfs2_extend_trans+0x2d8/0x864 fs/ocfs2/journal.c:459 ocfs2_extend_rotate_transaction fs/ocfs2/alloc.c:2297 [inline] ocfs2_try_to_merge_extent+0xb54/0x17e0 fs/ocfs2/alloc.c:3805 ocfs2_split_extent+0x149c/0x1b84 fs/ocfs2/alloc.c:5131 ocfs2_change_extent_flag+0x8a0/0xb60 fs/ocfs2/alloc.c:5222 ocfs2_mark_extent_written+0x2e4/0x630 fs/ocfs2/alloc.c:5268 ocfs2_dio_end_io_write fs/ocfs2/aops.c:2367 [inline] ocfs2_dio_end_io+0x6a8/0x1098 fs/ocfs2/aops.c:2451 dio_complete+0x218/0x640 fs/direct-io.c:271 __blockdev_direct_IO+0x27f0/0x31e0 fs/direct-io.c:1320 ocfs2_direct_IO+0x208/0x278 fs/ocfs2/aops.c:2488 generic_file_direct_write+0x104/0x2b4 mm/filemap.c:3787 __generic_file_write_iter+0x144/0x250 mm/filemap.c:3945 ocfs2_file_write_iter+0x13ac/0x1cd0 fs/ocfs2/file.c:2469 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x520/0x93c fs/read_write.c:861 vfs_iter_write+0x88/0xac fs/read_write.c:902 iter_file_splice_write+0x528/0xa38 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe4/0x138 fs/splice.c:950 splice_direct_to_actor+0x3ec/0x9e4 fs/splice.c:896 do_splice_direct+0x168/0x25c fs/splice.c:1002 do_sendfile+0x460/0xc8c fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __arm64_sys_sendfile64+0x138/0x374 fs/read_write.c:1309 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: down_read+0x64/0x300 kernel/locking/rwsem.c:1520 ocfs2_start_trans+0x38c/0x6f4 fs/ocfs2/journal.c:374 ocfs2_mknod+0xd2c/0x218c fs/ocfs2/namei.c:361 ocfs2_create+0x19c/0x51c fs/ocfs2/namei.c:674 lookup_open fs/namei.c:3490 [inline] open_last_lookups fs/namei.c:3558 [inline] path_openat+0xda8/0x27a0 fs/namei.c:3788 do_filp_open+0x198/0x38c fs/namei.c:3818 do_sys_openat2+0x134/0x3fc 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] __arm64_sys_openat+0x11c/0x150 fs/open.c:1347 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 -> #2 (sb_internal#3){.+.+}-{0:0}: percpu_down_read include/linux/percpu-rwsem.h:51 [inline] __sb_start_write include/linux/fs.h:1891 [inline] sb_start_intwrite include/linux/fs.h:2013 [inline] ocfs2_start_trans+0x20c/0x6f4 fs/ocfs2/journal.c:372 ocfs2_acquire_dquot+0x5d0/0xab0 fs/ocfs2/quota_global.c:848 dqget+0x638/0xa98 fs/quota/dquot.c:1013 dquot_set_dqblk+0x40/0xe34 fs/quota/dquot.c:2858 quota_setquota+0x41c/0x4cc fs/quota/quota.c:310 do_quotactl+0x65c/0x738 fs/quota/quota.c:802 __do_sys_quotactl fs/quota/quota.c:960 [inline] __se_sys_quotactl fs/quota/quota.c:916 [inline] __arm64_sys_quotactl+0x2dc/0x77c fs/quota/quota.c:916 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 -> #1 (&ocfs2_quota_ip_alloc_sem_key){++++}-{3:3}: down_write+0x5c/0x88 kernel/locking/rwsem.c:1573 ocfs2_create_local_dquot+0x140/0x1444 fs/ocfs2/quota_local.c:1224 ocfs2_acquire_dquot+0x6dc/0xab0 fs/ocfs2/quota_global.c:871 dqget+0x638/0xa98 fs/quota/dquot.c:1013 dquot_set_dqblk+0x40/0xe34 fs/quota/dquot.c:2858 quota_setquota+0x41c/0x4cc fs/quota/quota.c:310 do_quotactl+0x65c/0x738 fs/quota/quota.c:802 __do_sys_quotactl fs/quota/quota.c:960 [inline] __se_sys_quotactl fs/quota/quota.c:916 [inline] __arm64_sys_quotactl+0x2dc/0x77c fs/quota/quota.c:916 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 -> #0 (&dquot->dq_lock){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3095 [inline] check_prevs_add kernel/locking/lockdep.c:3214 [inline] validate_chain kernel/locking/lockdep.c:3830 [inline] __lock_acquire+0x2808/0x6634 kernel/locking/lockdep.c:5063 lock_acquire+0x20c/0x638 kernel/locking/lockdep.c:5676 __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 dquot_commit+0x54/0x1c8 fs/quota/dquot.c:535 ext4_write_dquot+0x1b4/0x320 fs/ext4/super.c:6817 ext4_mark_dquot_dirty+0xe8/0x150 fs/ext4/super.c:6894 mark_dquot_dirty fs/quota/dquot.c:400 [inline] mark_all_dquot_dirty+0x1f8/0x424 fs/quota/dquot.c:440 __dquot_free_space+0x768/0xaa4 fs/quota/dquot.c:1967 dquot_free_space_nodirty include/linux/quotaops.h:372 [inline] dquot_free_space include/linux/quotaops.h:377 [inline] dquot_free_block include/linux/quotaops.h:388 [inline] ext4_mb_clear_bb fs/ext4/mballoc.c:6153 [inline] ext4_free_blocks+0x18dc/0x2468 fs/ext4/mballoc.c:6283 ext4_remove_blocks fs/ext4/extents.c:2541 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2707 [inline] ext4_ext_remove_space+0x1618/0x3b98 fs/ext4/extents.c:2955 ext4_ext_truncate+0x170/0x218 fs/ext4/extents.c:4491 ext4_truncate+0xa00/0x1090 fs/ext4/inode.c:4302 ext4_evict_inode+0xbd0/0x1264 fs/ext4/inode.c:288 evict+0x3d8/0x824 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x728/0x7e8 fs/inode.c:1860 ext4_process_orphan+0x24c/0x2c0 fs/ext4/orphan.c:358 ext4_orphan_cleanup+0x964/0x1090 fs/ext4/orphan.c:472 __ext4_fill_super fs/ext4/super.c:5574 [inline] ext4_fill_super+0x5af8/0x63bc fs/ext4/super.c:5693 get_tree_bdev+0x35c/0x54c fs/super.c:1366 ext4_get_tree+0x28/0x38 fs/ext4/super.c:5723 vfs_get_tree+0x90/0x278 fs/super.c:1573 do_new_mount+0x228/0x804 fs/namespace.c:3078 path_mount+0x5ac/0xe6c fs/namespace.c:3408 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount fs/namespace.c:3606 [inline] __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3606 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 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 *** 4 locks held by syz.2.321/5639: #0: ffff0000d4baa0e0 (&type->s_umount_key#26/1){+.+.}-{3:3}, at: alloc_super+0x1a0/0x840 fs/super.c:228 #1: ffff0000d4baa650 (sb_internal){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1891 [inline] #1: ffff0000d4baa650 (sb_internal){.+.+}-{0:0}, at: sb_start_intwrite include/linux/fs.h:2013 [inline] #1: ffff0000d4baa650 (sb_internal){.+.+}-{0:0}, at: ext4_evict_inode+0x3e0/0x1264 fs/ext4/inode.c:242 #2: ffff0000f57c70e0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_truncate+0x7d8/0x1090 fs/ext4/inode.c:4297 #3: ffff80001568caa8 (dquot_srcu){....}-{0:0}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:349 stack backtrace: CPU: 0 PID: 5639 Comm: syz.2.321 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/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:2048 check_noncircular+0x264/0x2f8 kernel/locking/lockdep.c:2170 check_prev_add kernel/locking/lockdep.c:3095 [inline] check_prevs_add kernel/locking/lockdep.c:3214 [inline] validate_chain kernel/locking/lockdep.c:3830 [inline] __lock_acquire+0x2808/0x6634 kernel/locking/lockdep.c:5063 lock_acquire+0x20c/0x638 kernel/locking/lockdep.c:5676 __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 dquot_commit+0x54/0x1c8 fs/quota/dquot.c:535 ext4_write_dquot+0x1b4/0x320 fs/ext4/super.c:6817 ext4_mark_dquot_dirty+0xe8/0x150 fs/ext4/super.c:6894 mark_dquot_dirty fs/quota/dquot.c:400 [inline] mark_all_dquot_dirty+0x1f8/0x424 fs/quota/dquot.c:440 __dquot_free_space+0x768/0xaa4 fs/quota/dquot.c:1967 dquot_free_space_nodirty include/linux/quotaops.h:372 [inline] dquot_free_space include/linux/quotaops.h:377 [inline] dquot_free_block include/linux/quotaops.h:388 [inline] ext4_mb_clear_bb fs/ext4/mballoc.c:6153 [inline] ext4_free_blocks+0x18dc/0x2468 fs/ext4/mballoc.c:6283 ext4_remove_blocks fs/ext4/extents.c:2541 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2707 [inline] ext4_ext_remove_space+0x1618/0x3b98 fs/ext4/extents.c:2955 ext4_ext_truncate+0x170/0x218 fs/ext4/extents.c:4491 ext4_truncate+0xa00/0x1090 fs/ext4/inode.c:4302 ext4_evict_inode+0xbd0/0x1264 fs/ext4/inode.c:288 evict+0x3d8/0x824 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x728/0x7e8 fs/inode.c:1860 ext4_process_orphan+0x24c/0x2c0 fs/ext4/orphan.c:358 ext4_orphan_cleanup+0x964/0x1090 fs/ext4/orphan.c:472 __ext4_fill_super fs/ext4/super.c:5574 [inline] ext4_fill_super+0x5af8/0x63bc fs/ext4/super.c:5693 get_tree_bdev+0x35c/0x54c fs/super.c:1366 ext4_get_tree+0x28/0x38 fs/ext4/super.c:5723 vfs_get_tree+0x90/0x278 fs/super.c:1573 do_new_mount+0x228/0x804 fs/namespace.c:3078 path_mount+0x5ac/0xe6c fs/namespace.c:3408 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount fs/namespace.c:3606 [inline] __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3606 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 EXT4-fs (loop2): 1 orphan inode deleted EXT4-fs (loop2): mounted filesystem without journal. Quota mode: writeback.