JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,7) on (node local, slot 0) with ordered data mode. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.7.500/6583 is trying to acquire lock: ffff0000e8c30650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_duplicate_inline_data+0x134/0x458 fs/ocfs2/refcounttree.c:3968 but task is already holding lock: ffff0000f85e22e0 (&ocfs2_file_ip_alloc_sem_key/1){+.+.}-{3:3}, at: ocfs2_remap_file_range+0x358/0x640 fs/ocfs2/file.c:2725 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&ocfs2_file_ip_alloc_sem_key/1){+.+.}-{3:3}: down_write_nested+0x64/0x94 kernel/locking/rwsem.c:1689 ocfs2_xattr_set_handle+0x2d8/0x64c fs/ocfs2/xattr.c:3591 ocfs2_set_acl+0x384/0x4cc fs/ocfs2/acl.c:249 ocfs2_init_acl+0x1c4/0x390 fs/ocfs2/acl.c:426 ocfs2_mknod+0x1248/0x212c fs/ocfs2/namei.c:409 ocfs2_mkdir+0x19c/0x51c fs/ocfs2/namei.c:658 vfs_mkdir+0x314/0x4d8 fs/namei.c:4161 ovl_do_mkdir fs/overlayfs/overlayfs.h:186 [inline] ovl_mkdir_real+0xa8/0x204 fs/overlayfs/dir.c:146 ovl_workdir_create+0x2c8/0x66c fs/overlayfs/super.c:799 ovl_make_workdir fs/overlayfs/super.c:1396 [inline] ovl_get_workdir+0x31c/0x1084 fs/overlayfs/super.c:1546 ovl_fill_super+0x17d0/0x3938 fs/overlayfs/super.c:2102 mount_nodev+0x68/0x108 fs/super.c:1500 ovl_mount+0x3c/0x50 fs/overlayfs/super.c:2193 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 -> #1 (&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_shutdown_local_alloc+0x1a0/0x858 fs/ocfs2/localalloc.c:416 ocfs2_dismount_volume+0x1fc/0x964 fs/ocfs2/super.c:1892 ocfs2_put_super+0x108/0x390 fs/ocfs2/super.c:1618 generic_shutdown_super+0x138/0x32c fs/super.c:501 kill_block_super+0x78/0xe0 fs/super.c:1481 deactivate_locked_super+0xb4/0x128 fs/super.c:332 deactivate_super+0xe4/0x104 fs/super.c:363 cleanup_mnt+0x3a8/0x430 fs/namespace.c:1191 __cleanup_mnt+0x20/0x30 fs/namespace.c:1198 task_work_run+0x1f4/0x280 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x20f8/0x2c84 arch/arm64/kernel/signal.c:1166 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:143 [inline] el0_svc+0x9c/0x12c arch/arm64/kernel/entry-common.c:639 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 (sb_internal#3){.+.+}-{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 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_duplicate_inline_data+0x134/0x458 fs/ocfs2/refcounttree.c:3968 ocfs2_reflink_remap_blocks+0x3c8/0x1684 fs/ocfs2/refcounttree.c:4661 ocfs2_remap_file_range+0x3f8/0x640 fs/ocfs2/file.c:2733 vfs_copy_file_range+0xc8c/0x1138 fs/read_write.c:1520 __do_sys_copy_file_range fs/read_write.c:1598 [inline] __se_sys_copy_file_range fs/read_write.c:1561 [inline] __arm64_sys_copy_file_range+0x4e0/0x800 fs/read_write.c:1561 __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: sb_internal#3 --> &journal->j_trans_barrier --> &ocfs2_file_ip_alloc_sem_key/1 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ocfs2_file_ip_alloc_sem_key/1); lock(&journal->j_trans_barrier); lock(&ocfs2_file_ip_alloc_sem_key/1); rlock(sb_internal#3); *** DEADLOCK *** 5 locks held by syz.7.500/6583: #0: ffff0000e8c30460 (sb_writers#16){.+.+}-{0:0}, at: vfs_copy_file_range+0x6f4/0x1138 fs/read_write.c:1504 #1: ffff0000f85e2648 (&sb->s_type->i_mutex_key#27){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:766 [inline] #1: ffff0000f85e2648 (&sb->s_type->i_mutex_key#27){+.+.}-{3:3}, at: lock_two_nondirectories+0xd0/0x128 fs/inode.c:1217 #2: ffff0000f85e42c8 (&sb->s_type->i_mutex_key#27/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:801 [inline] #2: ffff0000f85e42c8 (&sb->s_type->i_mutex_key#27/4){+.+.}-{3:3}, at: lock_two_nondirectories+0xb8/0x128 fs/inode.c:1219 #3: ffff0000f85e3f60 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_remap_file_range+0x340/0x640 fs/ocfs2/file.c:2723 #4: ffff0000f85e22e0 (&ocfs2_file_ip_alloc_sem_key/1){+.+.}-{3:3}, at: ocfs2_remap_file_range+0x358/0x640 fs/ocfs2/file.c:2725 stack backtrace: CPU: 1 PID: 6583 Comm: syz.7.500 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 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_duplicate_inline_data+0x134/0x458 fs/ocfs2/refcounttree.c:3968 ocfs2_reflink_remap_blocks+0x3c8/0x1684 fs/ocfs2/refcounttree.c:4661 ocfs2_remap_file_range+0x3f8/0x640 fs/ocfs2/file.c:2733 vfs_copy_file_range+0xc8c/0x1138 fs/read_write.c:1520 __do_sys_copy_file_range fs/read_write.c:1598 [inline] __se_sys_copy_file_range fs/read_write.c:1561 [inline] __arm64_sys_copy_file_range+0x4e0/0x800 fs/read_write.c:1561 __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