Warning: Permanently added '10.128.0.147' (ED25519) to the list of known hosts. executing program [ 41.375934][ T6411] loop0: detected capacity change from 0 to 32768 [ 41.379122][ T6411] ======================================================= [ 41.379122][ T6411] WARNING: The mand mount option has been deprecated and [ 41.379122][ T6411] and is ignored by this kernel. Remove the mand [ 41.379122][ T6411] option from the mount to silence this warning. [ 41.379122][ T6411] ======================================================= [ 41.405209][ T6411] JBD2: Ignoring recovery information on journal [ 41.427338][ T6411] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 41.437349][ T6411] [ 41.437838][ T6411] ====================================================== [ 41.439246][ T6411] WARNING: possible circular locking dependency detected [ 41.440674][ T6411] 6.13.0-rc7-syzkaller-g1950a0af2d55 #0 Not tainted [ 41.441959][ T6411] ------------------------------------------------------ [ 41.443471][ T6411] syz-executor131/6411 is trying to acquire lock: [ 41.444765][ T6411] ffff0000df743f60 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb4/0x2f0 [ 41.447162][ T6411] [ 41.447162][ T6411] but task is already holding lock: [ 41.448582][ T6411] ffff0000df743ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa8/0x2f0 [ 41.450845][ T6411] [ 41.450845][ T6411] which lock already depends on the new lock. [ 41.450845][ T6411] [ 41.452871][ T6411] [ 41.452871][ T6411] the existing dependency chain (in reverse order) is: [ 41.454619][ T6411] [ 41.454619][ T6411] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 41.456342][ T6411] down_write+0x50/0xc0 [ 41.457413][ T6411] ocfs2_xattr_set_handle+0x40c/0x824 [ 41.458632][ T6411] ocfs2_init_security_set+0xb4/0xd8 [ 41.459852][ T6411] ocfs2_mknod+0x1408/0x2438 [ 41.460840][ T6411] ocfs2_create+0x194/0x4d4 [ 41.462013][ T6411] path_openat+0x13e4/0x2b14 [ 41.463033][ T6411] do_filp_open+0x1e8/0x404 [ 41.463986][ T6411] do_sys_openat2+0x124/0x1b8 [ 41.465087][ T6411] __arm64_sys_openat+0x1f0/0x240 [ 41.466266][ T6411] invoke_syscall+0x98/0x2b8 [ 41.467291][ T6411] el0_svc_common+0x130/0x23c [ 41.468277][ T6411] do_el0_svc+0x48/0x58 [ 41.469245][ T6411] el0_svc+0x54/0x168 [ 41.470148][ T6411] el0t_64_sync_handler+0x84/0x108 [ 41.471297][ T6411] el0t_64_sync+0x198/0x19c [ 41.472286][ T6411] [ 41.472286][ T6411] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 41.473775][ T6411] start_this_handle+0xf34/0x11c4 [ 41.475007][ T6411] jbd2__journal_start+0x298/0x544 [ 41.476144][ T6411] jbd2_journal_start+0x3c/0x4c [ 41.477441][ T6411] ocfs2_start_trans+0x3d0/0x71c [ 41.478503][ T6411] ocfs2_reserve_suballoc_bits+0x840/0x4254 [ 41.479845][ T6411] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 41.481301][ T6411] ocfs2_mknod+0xdc8/0x2438 [ 41.482391][ T6411] ocfs2_create+0x194/0x4d4 [ 41.483558][ T6411] path_openat+0x13e4/0x2b14 [ 41.484631][ T6411] do_filp_open+0x1e8/0x404 [ 41.485699][ T6411] do_sys_openat2+0x124/0x1b8 [ 41.486769][ T6411] __arm64_sys_openat+0x1f0/0x240 [ 41.487948][ T6411] invoke_syscall+0x98/0x2b8 [ 41.488950][ T6411] el0_svc_common+0x130/0x23c [ 41.490116][ T6411] do_el0_svc+0x48/0x58 [ 41.491007][ T6411] el0_svc+0x54/0x168 [ 41.491999][ T6411] el0t_64_sync_handler+0x84/0x108 [ 41.493090][ T6411] el0t_64_sync+0x198/0x19c [ 41.494160][ T6411] [ 41.494160][ T6411] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 41.495942][ T6411] down_read+0x58/0x2fc [ 41.496881][ T6411] ocfs2_start_trans+0x3c4/0x71c [ 41.497946][ T6411] ocfs2_reserve_suballoc_bits+0x840/0x4254 [ 41.499253][ T6411] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 41.500678][ T6411] ocfs2_mknod+0xdc8/0x2438 [ 41.501666][ T6411] ocfs2_create+0x194/0x4d4 [ 41.502604][ T6411] path_openat+0x13e4/0x2b14 [ 41.503616][ T6411] do_filp_open+0x1e8/0x404 [ 41.504585][ T6411] do_sys_openat2+0x124/0x1b8 [ 41.505637][ T6411] __arm64_sys_openat+0x1f0/0x240 [ 41.506882][ T6411] invoke_syscall+0x98/0x2b8 [ 41.508026][ T6411] el0_svc_common+0x130/0x23c [ 41.509182][ T6411] do_el0_svc+0x48/0x58 [ 41.510072][ T6411] el0_svc+0x54/0x168 [ 41.511115][ T6411] el0t_64_sync_handler+0x84/0x108 [ 41.512238][ T6411] el0t_64_sync+0x198/0x19c [ 41.513270][ T6411] [ 41.513270][ T6411] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 41.515001][ T6411] ocfs2_start_trans+0x244/0x71c [ 41.516096][ T6411] ocfs2_truncate_file+0x600/0x14b4 [ 41.517232][ T6411] ocfs2_setattr+0x1328/0x19e4 [ 41.518314][ T6411] notify_change+0x9f0/0xca0 [ 41.519364][ T6411] do_truncate+0x1c0/0x28c [ 41.520418][ T6411] path_openat+0x2494/0x2b14 [ 41.521420][ T6411] do_filp_open+0x1e8/0x404 [ 41.522368][ T6411] do_sys_openat2+0x124/0x1b8 [ 41.523500][ T6411] __arm64_sys_openat+0x1f0/0x240 [ 41.524611][ T6411] invoke_syscall+0x98/0x2b8 [ 41.525587][ T6411] el0_svc_common+0x130/0x23c [ 41.526775][ T6411] do_el0_svc+0x48/0x58 [ 41.527766][ T6411] el0_svc+0x54/0x168 [ 41.528783][ T6411] el0t_64_sync_handler+0x84/0x108 [ 41.529942][ T6411] el0t_64_sync+0x198/0x19c [ 41.531050][ T6411] [ 41.531050][ T6411] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 41.532602][ T6411] __lock_acquire+0x34f0/0x7904 [ 41.533713][ T6411] lock_acquire+0x23c/0x724 [ 41.534705][ T6411] down_write+0x50/0xc0 [ 41.535825][ T6411] ocfs2_try_remove_refcount_tree+0xb4/0x2f0 [ 41.537246][ T6411] ocfs2_truncate_file+0xcec/0x14b4 [ 41.538536][ T6411] ocfs2_setattr+0x1328/0x19e4 [ 41.539734][ T6411] notify_change+0x9f0/0xca0 [ 41.540735][ T6411] do_truncate+0x1c0/0x28c [ 41.541865][ T6411] path_openat+0x2494/0x2b14 [ 41.542939][ T6411] do_filp_open+0x1e8/0x404 [ 41.544085][ T6411] do_sys_openat2+0x124/0x1b8 [ 41.545193][ T6411] __arm64_sys_openat+0x1f0/0x240 [ 41.546335][ T6411] invoke_syscall+0x98/0x2b8 [ 41.547374][ T6411] el0_svc_common+0x130/0x23c [ 41.548570][ T6411] do_el0_svc+0x48/0x58 [ 41.549403][ T6411] el0_svc+0x54/0x168 [ 41.550358][ T6411] el0t_64_sync_handler+0x84/0x108 [ 41.551473][ T6411] el0t_64_sync+0x198/0x19c [ 41.552507][ T6411] [ 41.552507][ T6411] other info that might help us debug this: [ 41.552507][ T6411] [ 41.554523][ T6411] Chain exists of: [ 41.554523][ T6411] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 41.554523][ T6411] [ 41.557066][ T6411] Possible unsafe locking scenario: [ 41.557066][ T6411] [ 41.558579][ T6411] CPU0 CPU1 [ 41.559637][ T6411] ---- ---- [ 41.560815][ T6411] lock(&oi->ip_xattr_sem); [ 41.561777][ T6411] lock(jbd2_handle); [ 41.563182][ T6411] lock(&oi->ip_xattr_sem); [ 41.564653][ T6411] lock(&oi->ip_alloc_sem); [ 41.565617][ T6411] [ 41.565617][ T6411] *** DEADLOCK *** [ 41.565617][ T6411] [ 41.567188][ T6411] 3 locks held by syz-executor131/6411: [ 41.568325][ T6411] #0: ffff0000db430420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 41.570288][ T6411] #1: ffff0000df7442c0 (&sb->s_type->i_mutex_key#16){+.+.}-{4:4}, at: do_truncate+0x1ac/0x28c [ 41.572502][ T6411] #2: ffff0000df743ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa8/0x2f0 [ 41.574868][ T6411] [ 41.574868][ T6411] stack backtrace: [ 41.576149][ T6411] CPU: 0 UID: 0 PID: 6411 Comm: syz-executor131 Not tainted 6.13.0-rc7-syzkaller-g1950a0af2d55 #0 [ 41.578428][ T6411] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 41.580384][ T6411] Call trace: [ 41.580993][ T6411] show_stack+0x2c/0x3c (C) [ 41.581845][ T6411] dump_stack_lvl+0xe4/0x150 [ 41.582763][ T6411] dump_stack+0x1c/0x28 [ 41.583716][ T6411] print_circular_bug+0x154/0x1c0 [ 41.584852][ T6411] check_noncircular+0x310/0x404 [ 41.585937][ T6411] __lock_acquire+0x34f0/0x7904 [ 41.586893][ T6411] lock_acquire+0x23c/0x724 [ 41.587823][ T6411] down_write+0x50/0xc0 [ 41.588719][ T6411] ocfs2_try_remove_refcount_tree+0xb4/0x2f0 [ 41.589936][ T6411] ocfs2_truncate_file+0xcec/0x14b4 [ 41.591093][ T6411] ocfs2_setattr+0x1328/0x19e4 [ 41.592096][ T6411] notify_change+0x9f0/0xca0 [ 41.592985][ T6411] do_truncate+0x1c0/0x28c [ 41.593836][ T6411] path_openat+0x2494/0x2b14 [ 41.594779][ T6411] do_filp_open+0x1e8/0x404 [ 41.595631][ T6411] do_sys_openat2+0x124/0x1b8 [ 41.596723][ T6411] __arm64_sys_openat+0x1f0/0x240 [ 41.597766][ T6411] invoke_syscall+0x98/0x2b8 [ 41.598824][ T6411] el0_svc_common+0x130/0x23c [ 41.599805][ T6411] do_el0_svc+0x48/0x58 [ 41.600643][ T6411] el0_svc+0x54/0x168 [ 41.601450][ T6411] el0t_64_sync_handler+0x84/0x108 [ 41.602663][ T6411] el0t_64_sync+0x198/0x19c