Warning: Permanently added '10.128.0.52' (ED25519) to the list of known hosts. executing program [ 45.412549][ T4019] loop0: detected capacity change from 0 to 32768 [ 45.486475][ T4019] ======================================================= [ 45.486475][ T4019] WARNING: The mand mount option has been deprecated and [ 45.486475][ T4019] and is ignored by this kernel. Remove the mand [ 45.486475][ T4019] option from the mount to silence this warning. [ 45.486475][ T4019] ======================================================= [ 45.521768][ T4019] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 45.529770][ T4019] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 45.546398][ T4019] [ 45.547051][ T4019] ====================================================== [ 45.548804][ T4019] WARNING: possible circular locking dependency detected [ 45.550499][ T4019] 5.15.178-syzkaller #0 Not tainted [ 45.551790][ T4019] ------------------------------------------------------ [ 45.553613][ T4019] syz-executor858/4019 is trying to acquire lock: [ 45.555267][ T4019] ffff0000cb970650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_truncate_file+0x5f8/0x14dc [ 45.557729][ T4019] [ 45.557729][ T4019] but task is already holding lock: [ 45.559511][ T4019] ffff0000dea8dbe0 (&oi->ip_alloc_sem){++++}-{3:3}, at: ocfs2_truncate_file+0x344/0x14dc [ 45.562030][ T4019] [ 45.562030][ T4019] which lock already depends on the new lock. [ 45.562030][ T4019] [ 45.564676][ T4019] [ 45.564676][ T4019] the existing dependency chain (in reverse order) is: [ 45.567090][ T4019] [ 45.567090][ T4019] -> #3 (&oi->ip_alloc_sem){++++}-{3:3}: [ 45.569001][ T4019] down_read+0xc0/0x398 [ 45.570197][ T4019] ocfs2_read_virt_blocks+0x298/0x960 [ 45.571620][ T4019] ocfs2_find_entry+0x3ac/0x2450 [ 45.572952][ T4019] ocfs2_rename+0x1c68/0x34f0 [ 45.574288][ T4019] vfs_rename+0xac8/0xe04 [ 45.575523][ T4019] do_renameat2+0xa00/0x10c0 [ 45.576901][ T4019] __arm64_sys_renameat2+0xe0/0xfc [ 45.578285][ T4019] invoke_syscall+0x98/0x2b8 [ 45.579676][ T4019] el0_svc_common+0x138/0x258 [ 45.580953][ T4019] do_el0_svc+0x58/0x14c [ 45.582158][ T4019] el0_svc+0x7c/0x1f0 [ 45.583344][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 45.584772][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 45.586031][ T4019] [ 45.586031][ T4019] -> #2 (jbd2_handle){.+.+}-{0:0}: [ 45.587933][ T4019] start_this_handle+0xfc0/0x12a4 [ 45.589334][ T4019] jbd2__journal_start+0x29c/0x7b4 [ 45.590768][ T4019] jbd2_journal_start+0x3c/0x4c [ 45.592251][ T4019] ocfs2_start_trans+0x468/0x804 [ 45.593657][ T4019] ocfs2_reserve_local_alloc_bits+0x998/0x2474 [ 45.595466][ T4019] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 45.597223][ T4019] ocfs2_reserve_clusters+0x3c/0x50 [ 45.598711][ T4019] ocfs2_mknod+0xe08/0x24f8 [ 45.600032][ T4019] ocfs2_mkdir+0x184/0x4c8 [ 45.601282][ T4019] vfs_mkdir+0x334/0x4e4 [ 45.602541][ T4019] do_mkdirat+0x20c/0x610 [ 45.603807][ T4019] __arm64_sys_mkdirat+0x90/0xa8 [ 45.605231][ T4019] invoke_syscall+0x98/0x2b8 [ 45.606608][ T4019] el0_svc_common+0x138/0x258 [ 45.607950][ T4019] do_el0_svc+0x58/0x14c [ 45.609248][ T4019] el0_svc+0x7c/0x1f0 [ 45.610377][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 45.611724][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 45.613002][ T4019] [ 45.613002][ T4019] -> #1 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 45.615183][ T4019] down_read+0xc0/0x398 [ 45.616431][ T4019] ocfs2_start_trans+0x45c/0x804 [ 45.617855][ T4019] ocfs2_reserve_local_alloc_bits+0x998/0x2474 [ 45.619672][ T4019] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 45.621448][ T4019] ocfs2_reserve_clusters+0x3c/0x50 [ 45.622931][ T4019] ocfs2_mknod+0xe08/0x24f8 [ 45.624267][ T4019] ocfs2_mkdir+0x184/0x4c8 [ 45.625470][ T4019] vfs_mkdir+0x334/0x4e4 [ 45.626568][ T4019] do_mkdirat+0x20c/0x610 [ 45.627867][ T4019] __arm64_sys_mkdirat+0x90/0xa8 [ 45.629328][ T4019] invoke_syscall+0x98/0x2b8 [ 45.630665][ T4019] el0_svc_common+0x138/0x258 [ 45.632009][ T4019] do_el0_svc+0x58/0x14c [ 45.633218][ T4019] el0_svc+0x7c/0x1f0 [ 45.634371][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 45.635835][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 45.637121][ T4019] [ 45.637121][ T4019] -> #0 (sb_internal#2){.+.+}-{0:0}: [ 45.639084][ T4019] __lock_acquire+0x32d4/0x7638 [ 45.640464][ T4019] lock_acquire+0x240/0x77c [ 45.641830][ T4019] ocfs2_start_trans+0x2dc/0x804 [ 45.643203][ T4019] ocfs2_truncate_file+0x5f8/0x14dc [ 45.644584][ T4019] ocfs2_setattr+0xd78/0x1920 [ 45.645870][ T4019] notify_change+0xa34/0xcf8 [ 45.647251][ T4019] do_truncate+0x1c0/0x28c [ 45.648545][ T4019] path_openat+0x20c4/0x26cc [ 45.649867][ T4019] do_filp_open+0x1a8/0x3b4 [ 45.651166][ T4019] do_sys_openat2+0x128/0x3e0 [ 45.652477][ T4019] __arm64_sys_openat+0x1f0/0x240 [ 45.653880][ T4019] invoke_syscall+0x98/0x2b8 [ 45.655177][ T4019] el0_svc_common+0x138/0x258 [ 45.656508][ T4019] do_el0_svc+0x58/0x14c [ 45.657750][ T4019] el0_svc+0x7c/0x1f0 [ 45.658878][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 45.660326][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 45.661668][ T4019] [ 45.661668][ T4019] other info that might help us debug this: [ 45.661668][ T4019] [ 45.664275][ T4019] Chain exists of: [ 45.664275][ T4019] sb_internal#2 --> jbd2_handle --> &oi->ip_alloc_sem [ 45.664275][ T4019] [ 45.667571][ T4019] Possible unsafe locking scenario: [ 45.667571][ T4019] [ 45.669430][ T4019] CPU0 CPU1 [ 45.670795][ T4019] ---- ---- [ 45.672229][ T4019] lock(&oi->ip_alloc_sem); [ 45.673439][ T4019] lock(jbd2_handle); [ 45.675187][ T4019] lock(&oi->ip_alloc_sem); [ 45.676940][ T4019] lock(sb_internal#2); [ 45.677944][ T4019] [ 45.677944][ T4019] *** DEADLOCK *** [ 45.677944][ T4019] [ 45.679804][ T4019] 3 locks held by syz-executor858/4019: [ 45.681076][ T4019] #0: ffff0000cb970460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 45.683362][ T4019] #1: ffff0000dea8df48 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 45.686114][ T4019] #2: ffff0000dea8dbe0 (&oi->ip_alloc_sem){++++}-{3:3}, at: ocfs2_truncate_file+0x344/0x14dc [ 45.688686][ T4019] [ 45.688686][ T4019] stack backtrace: [ 45.690185][ T4019] CPU: 1 PID: 4019 Comm: syz-executor858 Not tainted 5.15.178-syzkaller #0 [ 45.692256][ T4019] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 45.694818][ T4019] Call trace: [ 45.695617][ T4019] dump_backtrace+0x0/0x530 [ 45.696818][ T4019] show_stack+0x2c/0x3c [ 45.697960][ T4019] dump_stack_lvl+0x108/0x170 [ 45.699181][ T4019] dump_stack+0x1c/0x58 [ 45.700250][ T4019] print_circular_bug+0x150/0x1b8 [ 45.701581][ T4019] check_noncircular+0x2cc/0x378 [ 45.702869][ T4019] __lock_acquire+0x32d4/0x7638 [ 45.704121][ T4019] lock_acquire+0x240/0x77c [ 45.705292][ T4019] ocfs2_start_trans+0x2dc/0x804 [ 45.706557][ T4019] ocfs2_truncate_file+0x5f8/0x14dc [ 45.707885][ T4019] ocfs2_setattr+0xd78/0x1920 [ 45.709091][ T4019] notify_change+0xa34/0xcf8 [ 45.710288][ T4019] do_truncate+0x1c0/0x28c [ 45.711470][ T4019] path_openat+0x20c4/0x26cc [ 45.712637][ T4019] do_filp_open+0x1a8/0x3b4 [ 45.713758][ T4019] do_sys_openat2+0x128/0x3e0 [ 45.715009][ T4019] __arm64_sys_openat+0x1f0/0x240 [ 45.716342][ T4019] invoke_syscall+0x98/0x2b8 [ 45.717497][ T4019] el0_svc_common+0x138/0x258 [ 45.718649][ T4019] do_el0_svc+0x58/0x14c [ 45.719640][ T4019] el0_svc+0x7c/0x1f0 [ 45.720654][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 45.721984][ T4019] el0t_64_sync+0x1a0/0x1a4