Warning: Permanently added '10.128.0.34' (ED25519) to the list of known hosts. executing program [ 37.339125][ T6424] loop0: detected capacity change from 0 to 32768 [ 37.342698][ T6424] ======================================================= [ 37.342698][ T6424] WARNING: The mand mount option has been deprecated and [ 37.342698][ T6424] and is ignored by this kernel. Remove the mand [ 37.342698][ T6424] option from the mount to silence this warning. [ 37.342698][ T6424] ======================================================= [ 37.373462][ T6424] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 37.384316][ T6424] [ 37.384867][ T6424] ====================================================== [ 37.386332][ T6424] WARNING: possible circular locking dependency detected [ 37.387755][ T6424] 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Not tainted [ 37.389001][ T6424] ------------------------------------------------------ [ 37.390443][ T6424] syz-executor406/6424 is trying to acquire lock: [ 37.391778][ T6424] ffff0000dc69bf60 (&oi->ip_alloc_sem){+.+.}-{3:3}, at: ocfs2_try_remove_refcount_tree+0xb4/0x2f0 [ 37.393886][ T6424] [ 37.393886][ T6424] but task is already holding lock: [ 37.395399][ T6424] ffff0000dc69bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_try_remove_refcount_tree+0xa8/0x2f0 [ 37.397505][ T6424] [ 37.397505][ T6424] which lock already depends on the new lock. [ 37.397505][ T6424] [ 37.399570][ T6424] [ 37.399570][ T6424] the existing dependency chain (in reverse order) is: [ 37.401376][ T6424] [ 37.401376][ T6424] -> #4 (&oi->ip_xattr_sem){++++}-{3:3}: [ 37.402918][ T6424] down_read+0x58/0x2fc [ 37.403869][ T6424] ocfs2_init_acl+0x2c8/0x764 [ 37.404886][ T6424] ocfs2_mknod+0x1388/0x243c [ 37.405902][ T6424] ocfs2_create+0x194/0x4e0 [ 37.406931][ T6424] path_openat+0x13e4/0x2b14 [ 37.407977][ T6424] do_filp_open+0x1bc/0x3cc [ 37.408982][ T6424] do_sys_openat2+0x124/0x1b8 [ 37.410083][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 37.411175][ T6424] invoke_syscall+0x98/0x2b8 [ 37.412244][ T6424] el0_svc_common+0x130/0x23c [ 37.413326][ T6424] do_el0_svc+0x48/0x58 [ 37.414245][ T6424] el0_svc+0x54/0x168 [ 37.415125][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.416249][ T6424] el0t_64_sync+0x198/0x19c [ 37.417259][ T6424] [ 37.417259][ T6424] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 37.418755][ T6424] start_this_handle+0xf34/0x11c4 [ 37.419877][ T6424] jbd2__journal_start+0x298/0x544 [ 37.420978][ T6424] jbd2_journal_start+0x3c/0x4c [ 37.422064][ T6424] ocfs2_start_trans+0x3d0/0x71c [ 37.423179][ T6424] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 37.424452][ T6424] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 37.425841][ T6424] ocfs2_mknod+0xdc8/0x243c [ 37.426839][ T6424] ocfs2_create+0x194/0x4e0 [ 37.427811][ T6424] path_openat+0x13e4/0x2b14 [ 37.428838][ T6424] do_filp_open+0x1bc/0x3cc [ 37.429822][ T6424] do_sys_openat2+0x124/0x1b8 [ 37.430886][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 37.431976][ T6424] invoke_syscall+0x98/0x2b8 [ 37.432975][ T6424] el0_svc_common+0x130/0x23c [ 37.434027][ T6424] do_el0_svc+0x48/0x58 [ 37.434942][ T6424] el0_svc+0x54/0x168 [ 37.435821][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.436965][ T6424] el0t_64_sync+0x198/0x19c [ 37.437954][ T6424] [ 37.437954][ T6424] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 37.439668][ T6424] down_read+0x58/0x2fc [ 37.440578][ T6424] ocfs2_start_trans+0x3c4/0x71c [ 37.441677][ T6424] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 37.442940][ T6424] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 37.444266][ T6424] ocfs2_mknod+0xdc8/0x243c [ 37.445292][ T6424] ocfs2_create+0x194/0x4e0 [ 37.446320][ T6424] path_openat+0x13e4/0x2b14 [ 37.447322][ T6424] do_filp_open+0x1bc/0x3cc [ 37.448331][ T6424] do_sys_openat2+0x124/0x1b8 [ 37.449336][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 37.450447][ T6424] invoke_syscall+0x98/0x2b8 [ 37.451489][ T6424] el0_svc_common+0x130/0x23c [ 37.452549][ T6424] do_el0_svc+0x48/0x58 [ 37.453491][ T6424] el0_svc+0x54/0x168 [ 37.454398][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.455570][ T6424] el0t_64_sync+0x198/0x19c [ 37.456623][ T6424] [ 37.456623][ T6424] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 37.458128][ T6424] ocfs2_start_trans+0x244/0x71c [ 37.459247][ T6424] ocfs2_truncate_file+0x628/0x1534 [ 37.460393][ T6424] ocfs2_setattr+0x1328/0x19e8 [ 37.461425][ T6424] notify_change+0x9f0/0xca0 [ 37.462472][ T6424] do_truncate+0x1c0/0x28c [ 37.463464][ T6424] path_openat+0x2494/0x2b14 [ 37.464475][ T6424] do_filp_open+0x1bc/0x3cc [ 37.465498][ T6424] do_sys_openat2+0x124/0x1b8 [ 37.466550][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 37.467631][ T6424] invoke_syscall+0x98/0x2b8 [ 37.468642][ T6424] el0_svc_common+0x130/0x23c [ 37.469668][ T6424] do_el0_svc+0x48/0x58 [ 37.470597][ T6424] el0_svc+0x54/0x168 [ 37.471507][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.472630][ T6424] el0t_64_sync+0x198/0x19c [ 37.473646][ T6424] [ 37.473646][ T6424] -> #0 (&oi->ip_alloc_sem){+.+.}-{3:3}: [ 37.475218][ T6424] __lock_acquire+0x33f8/0x77c8 [ 37.476342][ T6424] lock_acquire+0x240/0x728 [ 37.477371][ T6424] down_write+0x50/0xc0 [ 37.478307][ T6424] ocfs2_try_remove_refcount_tree+0xb4/0x2f0 [ 37.479597][ T6424] ocfs2_truncate_file+0xd08/0x1534 [ 37.480784][ T6424] ocfs2_setattr+0x1328/0x19e8 [ 37.481865][ T6424] notify_change+0x9f0/0xca0 [ 37.482892][ T6424] do_truncate+0x1c0/0x28c [ 37.483895][ T6424] path_openat+0x2494/0x2b14 [ 37.484935][ T6424] do_filp_open+0x1bc/0x3cc [ 37.486020][ T6424] do_sys_openat2+0x124/0x1b8 [ 37.487039][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 37.488116][ T6424] invoke_syscall+0x98/0x2b8 [ 37.489136][ T6424] el0_svc_common+0x130/0x23c [ 37.490199][ T6424] do_el0_svc+0x48/0x58 [ 37.491217][ T6424] el0_svc+0x54/0x168 [ 37.492191][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.493301][ T6424] el0t_64_sync+0x198/0x19c [ 37.494335][ T6424] [ 37.494335][ T6424] other info that might help us debug this: [ 37.494335][ T6424] [ 37.496336][ T6424] Chain exists of: [ 37.496336][ T6424] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 37.496336][ T6424] [ 37.498968][ T6424] Possible unsafe locking scenario: [ 37.498968][ T6424] [ 37.500450][ T6424] CPU0 CPU1 [ 37.501512][ T6424] ---- ---- [ 37.502556][ T6424] lock(&oi->ip_xattr_sem); [ 37.503469][ T6424] lock(jbd2_handle); [ 37.504761][ T6424] lock(&oi->ip_xattr_sem); [ 37.506124][ T6424] lock(&oi->ip_alloc_sem); [ 37.507055][ T6424] [ 37.507055][ T6424] *** DEADLOCK *** [ 37.507055][ T6424] [ 37.508675][ T6424] 3 locks held by syz-executor406/6424: [ 37.509831][ T6424] #0: ffff0000c2c04420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 37.511678][ T6424] #1: ffff0000dc69c2c0 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 37.513787][ T6424] #2: ffff0000dc69bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_try_remove_refcount_tree+0xa8/0x2f0 [ 37.516029][ T6424] [ 37.516029][ T6424] stack backtrace: [ 37.517214][ T6424] CPU: 0 UID: 0 PID: 6424 Comm: syz-executor406 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 [ 37.519285][ T6424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 37.521336][ T6424] Call trace: [ 37.522082][ T6424] show_stack+0x2c/0x3c (C) [ 37.523049][ T6424] dump_stack_lvl+0xe4/0x150 [ 37.524002][ T6424] dump_stack+0x1c/0x28 [ 37.524904][ T6424] print_circular_bug+0x154/0x1c0 [ 37.525972][ T6424] check_noncircular+0x310/0x404 [ 37.526986][ T6424] __lock_acquire+0x33f8/0x77c8 [ 37.528015][ T6424] lock_acquire+0x240/0x728 [ 37.528949][ T6424] down_write+0x50/0xc0 [ 37.529790][ T6424] ocfs2_try_remove_refcount_tree+0xb4/0x2f0 [ 37.531070][ T6424] ocfs2_truncate_file+0xd08/0x1534 [ 37.532179][ T6424] ocfs2_setattr+0x1328/0x19e8 [ 37.533164][ T6424] notify_change+0x9f0/0xca0 [ 37.534083][ T6424] do_truncate+0x1c0/0x28c [ 37.535001][ T6424] path_openat+0x2494/0x2b14 [ 37.535962][ T6424] do_filp_open+0x1bc/0x3cc [ 37.536953][ T6424] do_sys_openat2+0x124/0x1b8 [ 37.537888][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 37.538925][ T6424] invoke_syscall+0x98/0x2b8 [ 37.539838][ T6424] el0_svc_common+0x130/0x23c [ 37.540761][ T6424] do_el0_svc+0x48/0x58 [ 37.541603][ T6424] el0_svc+0x54/0x168 [ 37.542380][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.543547][ T6424] el0t_64_sync+0x198/0x19c executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program