====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz-executor/4335 is trying to acquire lock: ffff0000c69f4990 (jbd2_handle){++++}-{0:0}, at: wait_transaction_locked+0x15c/0x23c fs/jbd2/transaction.c:176 but task is already holding lock: ffff0000f23314e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x38c/0x6f4 fs/ocfs2/journal.c:384 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #4 (&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 -> #3 (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 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/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 (&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 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/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 (&dquot->dq_lock){+.+.}-{3:3}: __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 fs/quota/dquot.c:1604 [inline] dquot_file_open+0x90/0xc8 fs/quota/dquot.c:2253 ext4_file_open+0x21c/0x540 fs/ext4/file.c:876 do_dentry_open+0x738/0xf8c fs/open.c:882 vfs_open+0x7c/0x90 fs/open.c:1015 do_open fs/namei.c:3677 [inline] path_openat+0x1fc0/0x27a0 fs/namei.c:3838 do_filp_open+0x198/0x38c fs/namei.c:3865 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/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 (jbd2_handle){++++}-{0:0}: 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 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_remove_btree_range+0x6b0/0x12e8 fs/ocfs2/alloc.c:5756 ocfs2_commit_truncate+0x880/0x1980 fs/ocfs2/alloc.c:7357 ocfs2_truncate_for_delete fs/ocfs2/inode.c:676 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:843 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1133 [inline] ocfs2_evict_inode+0x1610/0x3e08 fs/ocfs2/inode.c:1273 evict+0x3d8/0x81c fs/inode.c:702 iput_final fs/inode.c:1843 [inline] iput+0x728/0x7e8 fs/inode.c:1869 do_unlinkat+0x35c/0x504 fs/namei.c:4452 __do_sys_unlinkat fs/namei.c:4488 [inline] __se_sys_unlinkat fs/namei.c:4481 [inline] __arm64_sys_unlinkat+0xe0/0xfc fs/namei.c:4481 __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: jbd2_handle --> sb_internal#3 --> &journal->j_trans_barrier Possible unsafe locking scenario: CPU0 CPU1 ---- ---- rlock(&journal->j_trans_barrier); lock(sb_internal#3); lock(&journal->j_trans_barrier); lock(jbd2_handle); *** DEADLOCK *** 7 locks held by syz-executor/4335: #0: ffff0000e388c460 (sb_writers#28){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000ccfe4ab0 (&osb->nfs_sync_rwlock){.+.+}-{3:3}, at: ocfs2_nfs_sync_lock+0x11c/0x338 fs/ocfs2/dlmglue.c:2879 #2: ffff0000e0cd6d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:766 [inline] #2: ffff0000e0cd6d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:829 [inline] #2: ffff0000e0cd6d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1133 [inline] #2: ffff0000e0cd6d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]){+.+.}-{3:3}, at: ocfs2_evict_inode+0x141c/0x3e08 fs/ocfs2/inode.c:1273 #3: ffff0000d2e8b098 (&new->rf_sem){+.+.}-{3:3}, at: __ocfs2_lock_refcount_tree fs/ocfs2/refcounttree.c:459 [inline] #3: ffff0000d2e8b098 (&new->rf_sem){+.+.}-{3:3}, at: ocfs2_lock_refcount_tree+0x134/0x8ac fs/ocfs2/refcounttree.c:492 #4: ffff0000e0043488 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:766 [inline] #4: ffff0000e0043488 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_remove_btree_range+0x56c/0x12e8 fs/ocfs2/alloc.c:5746 #5: ffff0000e388c650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_remove_btree_range+0x6b0/0x12e8 fs/ocfs2/alloc.c:5756 #6: ffff0000f23314e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x38c/0x6f4 fs/ocfs2/journal.c:384 stack backtrace: CPU: 0 PID: 4335 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 dump_backtrace(regs = 0000000000000000 tsk = 0000000000000000) 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 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_remove_btree_range+0x6b0/0x12e8 fs/ocfs2/alloc.c:5756 ocfs2_commit_truncate+0x880/0x1980 fs/ocfs2/alloc.c:7357 ocfs2_truncate_for_delete fs/ocfs2/inode.c:676 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:843 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1133 [inline] ocfs2_evict_inode+0x1610/0x3e08 fs/ocfs2/inode.c:1273 evict+0x3d8/0x81c fs/inode.c:702 iput_final fs/inode.c:1843 [inline] iput+0x728/0x7e8 fs/inode.c:1869 do_unlinkat+0x35c/0x504 fs/namei.c:4452 __do_sys_unlinkat fs/namei.c:4488 [inline] __se_sys_unlinkat fs/namei.c:4481 [inline] __arm64_sys_unlinkat+0xe0/0xfc fs/namei.c:4481 __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 kernfs check: removing kernfs fix: removing kernfs set: removing kernfs filecheck: removing kobject: 'filecheck' (000000008ee8c4bb): kobject_cleanup, parent 0000000000000000 kobject: 'filecheck' (000000008ee8c4bb): calling ktype release kobject: 'filecheck': free name kernfs loop0: removing kobject: 'loop0' (0000000031008c36): kobject_cleanup, parent 0000000000000000 kobject: 'loop0' (0000000031008c36): calling ktype release kobject: 'loop0' (0000000031008c36): kset_release kobject: 'loop0': free name ocfs2: Unmounting device (7,0) on (node local) kernfs backing_file: removing kernfs offset: removing kernfs sizelimit: removing kernfs autoclear: removing kernfs partscan: removing kernfs dio: removing kernfs loop: removing kobject: 'loop0' (00000000ea212af6): kobject_uevent_env kobject: 'loop0' (00000000ea212af6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop0' (00000000ea212af6): kobject_uevent_env kobject: 'loop0' (00000000ea212af6): fill_kobj_path: path = '/devices/virtual/block/loop0' device: '9p-10': device_unregister kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs subsystem: removing kernfs 9p-10: removing kernfs uevent: removing kernfs read_ahead_kb: removing kernfs min_ratio: removing kernfs max_ratio: removing kernfs stable_pages_required: removing PM: Removing info for No Bus:9p-10 kobject: '9p-10' (00000000f36fdb94): kobject_uevent_env kobject: '9p-10' (00000000f36fdb94): fill_kobj_path: path = '/devices/virtual/bdi/9p-10' kernfs 9p-10: removing kobject: '9p-10' (00000000f36fdb94): kobject_cleanup, parent 0000000000000000 kobject: '9p-10' (00000000f36fdb94): calling ktype release device: '9p-10': device_create_release kobject: '9p-10': free name kernfs 9p-fcall-cache-2: removing kobject: '9p-fcall-cache-2' (00000000baef82ee): kobject_cleanup, parent 0000000000000000 kobject: '9p-fcall-cache-2' (00000000baef82ee): calling ktype release kobject: '9p-fcall-cache-2': free name kernfs delayed_allocation_blocks: removing kernfs session_write_kbytes: removing kernfs lifetime_write_kbytes: removing kernfs reserved_clusters: removing kernfs sra_exceeded_retry_limit: removing kernfs inode_readahead_blks: removing kernfs inode_goal: removing kernfs mb_stats: removing kernfs mb_max_to_scan: removing kernfs mb_min_to_scan: removing kernfs mb_order2_req: removing kernfs mb_stream_req: removing kernfs mb_group_prealloc: removing kernfs mb_max_inode_prealloc: removing kernfs mb_max_linear_groups: removing kernfs max_writeback_mb_bump: removing kernfs extent_max_zeroout_kb: removing kernfs trigger_fs_error: removing kernfs err_ratelimit_interval_ms: removing kernfs err_ratelimit_burst: removing kernfs warning_ratelimit_interval_ms: removing kernfs warning_ratelimit_burst: removing kernfs msg_ratelimit_interval_ms: removing kernfs msg_ratelimit_burst: removing kernfs errors_count: removing kernfs warning_count: removing kernfs msg_count: removing kernfs first_error_ino: removing kernfs last_error_ino: removing kernfs first_error_block: removing kernfs last_error_block: removing kernfs first_error_line: removing kernfs last_error_line: removing kernfs first_error_func: removing kernfs last_error_func: removing kernfs first_error_errcode: removing kernfs last_error_errcode: removing kernfs first_error_time: removing kernfs last_error_time: removing kernfs journal_task: removing kernfs mb_prefetch: removing kernfs mb_prefetch_limit: removing kernfs last_trim_minblks: removing kernfs loop0: removing EXT4-fs (loop0): unmounting filesystem. kobject: 'loop0' (000000006488ad3c): kobject_cleanup, parent 0000000000000000 kobject: 'loop0' (000000006488ad3c): calling ktype release kobject: 'loop0': free name kernfs backing_file: removing kernfs offset: removing kernfs sizelimit: removing kernfs autoclear: removing kernfs partscan: removing kernfs dio: removing kernfs loop: removing kobject: 'loop0' (00000000ea212af6): kobject_uevent_env kobject: 'loop0' (00000000ea212af6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop0' (00000000ea212af6): kobject_uevent_env kobject: 'loop0' (00000000ea212af6): fill_kobj_path: path = '/devices/virtual/block/loop0'