EXT4-fs (loop9): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0 EXT4-fs (loop9): mounted filesystem with ordered data mode. Quota mode: journalled. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.9.271/6047 is trying to acquire lock: ffff0000cb62e0a8 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_acquire+0x60/0x4b8 fs/quota/dquot.c:488 but task is already holding lock: ffff0000e0770990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xfec/0x125c fs/jbd2/transaction.c:461 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #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_start+0x288/0x530 fs/jbd2/transaction.c:520 jbd2_journal_start+0x3c/0x4c fs/jbd2/transaction.c:559 ocfs2_start_trans+0x398/0x6f4 fs/ocfs2/journal.c:386 ocfs2_release_dquot+0x3d0/0xac0 fs/ocfs2/quota_global.c:749 quota_release_workfn+0x374/0x618 fs/quota/dquot.c:875 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:854 -> #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:384 ocfs2_modify_bh+0xd8/0x44c fs/ocfs2/quota_local.c:101 ocfs2_local_read_info+0xb04/0xf18 fs/ocfs2/quota_local.c:788 dquot_load_quota_sb+0x68c/0x998 fs/quota/dquot.c:2495 dquot_load_quota_inode+0x274/0x4dc fs/quota/dquot.c:2532 ocfs2_enable_quotas+0x17c/0x3c4 fs/ocfs2/super.c:927 ocfs2_fill_super+0x3310/0x41b0 fs/ocfs2/super.c:1140 mount_bdev+0x264/0x35c fs/super.c:1454 ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1195 legacy_get_tree+0xd8/0x174 fs/fs_context.c:632 vfs_get_tree+0x90/0x278 fs/super.c:1584 do_new_mount+0x228/0x818 fs/namespace.c:3108 path_mount+0x5ac/0xe6c fs/namespace.c:3469 do_mount fs/namespace.c:3482 [inline] __do_sys_mount fs/namespace.c:3690 [inline] __se_sys_mount fs/namespace.c:3667 [inline] __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3667 __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/0x12c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:656 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 -> #2 (sb_internal#3){.+.+}-{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+0x20c/0x6f4 fs/ocfs2/journal.c:382 ocfs2_acquire_dquot+0x5d0/0xab0 fs/ocfs2/quota_global.c:848 dqget+0x638/0xa98 fs/quota/dquot.c:1013 ocfs2_setattr+0xa64/0x1934 fs/ocfs2/file.c:1258 notify_change+0xb5c/0xe20 fs/attr.c:499 chown_common+0x430/0x59c fs/open.c:736 vfs_fchown fs/open.c:804 [inline] ksys_fchown+0xe0/0x158 fs/open.c:815 __do_sys_fchown fs/open.c:823 [inline] __se_sys_fchown fs/open.c:821 [inline] __arm64_sys_fchown+0x7c/0x94 fs/open.c:821 __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/0x12c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:656 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 -> #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:1254 ocfs2_acquire_dquot+0x6dc/0xab0 fs/ocfs2/quota_global.c:871 dqget+0x638/0xa98 fs/quota/dquot.c:1013 ocfs2_setattr+0xa64/0x1934 fs/ocfs2/file.c:1258 notify_change+0xb5c/0xe20 fs/attr.c:499 chown_common+0x430/0x59c fs/open.c:736 vfs_fchown fs/open.c:804 [inline] ksys_fchown+0xe0/0x158 fs/open.c:815 __do_sys_fchown fs/open.c:823 [inline] __se_sys_fchown fs/open.c:821 [inline] __arm64_sys_fchown+0x7c/0x94 fs/open.c:821 __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/0x12c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:656 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 -> #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+0x3504/0x7280 kernel/locking/lockdep.c:5171 lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 __mutex_lock_common+0x1a0/0x1f88 kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 dquot_acquire+0x60/0x4b8 fs/quota/dquot.c:488 ext4_acquire_dquot+0x270/0x420 fs/ext4/super.c:6873 dqget+0x638/0xa98 fs/quota/dquot.c:1013 __dquot_initialize+0x2e4/0xb30 fs/quota/dquot.c:1542 dquot_initialize+0x24/0x34 fs/quota/dquot.c:1604 ext4_set_acl+0x130/0x4e4 fs/ext4/acl.c:237 set_posix_acl fs/posix_acl.c:1160 [inline] posix_acl_xattr_set+0x2f8/0x394 fs/posix_acl.c:1189 __vfs_removexattr+0x364/0x380 fs/xattr.c:479 __vfs_removexattr_locked+0x1d0/0x208 fs/xattr.c:514 vfs_removexattr+0x80/0x18c fs/xattr.c:536 removexattr fs/xattr.c:878 [inline] path_removexattr+0x1b8/0x390 fs/xattr.c:892 __do_sys_removexattr fs/xattr.c:906 [inline] __se_sys_removexattr fs/xattr.c:903 [inline] __arm64_sys_removexattr+0x60/0x78 fs/xattr.c:903 __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/0x12c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:656 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 other info that might help us debug this: Chain exists of: &dquot->dq_lock --> &journal->j_trans_barrier --> jbd2_handle Possible unsafe locking scenario: CPU0 CPU1 ---- ---- rlock(jbd2_handle); lock(&journal->j_trans_barrier); lock(jbd2_handle); lock(&dquot->dq_lock); *** DEADLOCK *** 3 locks held by syz.9.271/6047: #0: ffff0000f399a460 (sb_writers#3){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000fa76f258 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:766 [inline] #1: ffff0000fa76f258 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_removexattr+0x6c/0x18c fs/xattr.c:535 #2: ffff0000e0770990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xfec/0x125c fs/jbd2/transaction.c:461 stack backtrace: CPU: 0 PID: 6047 Comm: syz.9.271 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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/0x1f88 kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 dquot_acquire+0x60/0x4b8 fs/quota/dquot.c:488 ext4_acquire_dquot+0x270/0x420 fs/ext4/super.c:6873 dqget+0x638/0xa98 fs/quota/dquot.c:1013 __dquot_initialize+0x2e4/0xb30 fs/quota/dquot.c:1542 dquot_initialize+0x24/0x34 fs/quota/dquot.c:1604 ext4_set_acl+0x130/0x4e4 fs/ext4/acl.c:237 set_posix_acl fs/posix_acl.c:1160 [inline] posix_acl_xattr_set+0x2f8/0x394 fs/posix_acl.c:1189 __vfs_removexattr+0x364/0x380 fs/xattr.c:479 __vfs_removexattr_locked+0x1d0/0x208 fs/xattr.c:514 vfs_removexattr+0x80/0x18c fs/xattr.c:536 removexattr fs/xattr.c:878 [inline] path_removexattr+0x1b8/0x390 fs/xattr.c:892 __do_sys_removexattr fs/xattr.c:906 [inline] __se_sys_removexattr fs/xattr.c:903 [inline] __arm64_sys_removexattr+0x60/0x78 fs/xattr.c:903 __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/0x12c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:656 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589