Warning: Permanently added '10.128.0.168' (ED25519) to the list of known hosts. executing program [ 35.126060][ T6434] loop0: detected capacity change from 0 to 32768 [ 35.129773][ T6434] ======================================================= [ 35.129773][ T6434] WARNING: The mand mount option has been deprecated and [ 35.129773][ T6434] and is ignored by this kernel. Remove the mand [ 35.129773][ T6434] option from the mount to silence this warning. [ 35.129773][ T6434] ======================================================= [ 35.156177][ T6434] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 35.163225][ T6434] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 35.173380][ T6434] [ 35.174007][ T6434] ====================================================== [ 35.175826][ T6434] WARNING: possible circular locking dependency detected [ 35.177643][ T6434] 6.14.0-rc4-syzkaller-ge056da87c780 #0 Not tainted [ 35.179375][ T6434] ------------------------------------------------------ [ 35.181441][ T6434] syz-executor146/6434 is trying to acquire lock: [ 35.183166][ T6434] ffff0000de1f2640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x108/0x24f8 [ 35.186765][ T6434] [ 35.186765][ T6434] but task is already holding lock: [ 35.188854][ T6434] ffff0000de1f3ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 35.191617][ T6434] [ 35.191617][ T6434] which lock already depends on the new lock. [ 35.191617][ T6434] [ 35.194483][ T6434] [ 35.194483][ T6434] the existing dependency chain (in reverse order) is: [ 35.196953][ T6434] [ 35.196953][ T6434] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 35.199096][ T6434] down_read+0x58/0x2fc [ 35.200488][ T6434] ocfs2_init_acl+0x2c8/0x764 [ 35.201994][ T6434] ocfs2_mknod+0x1388/0x2438 [ 35.203773][ T6434] ocfs2_create+0x194/0x4d4 [ 35.205091][ T6434] path_openat+0x13ec/0x2b1c [ 35.206480][ T6434] do_filp_open+0x1e8/0x404 [ 35.207823][ T6434] do_sys_openat2+0x124/0x1b8 [ 35.209185][ T6434] __arm64_sys_openat+0x1f0/0x240 [ 35.210616][ T6434] invoke_syscall+0x98/0x2b8 [ 35.211981][ T6434] el0_svc_common+0x130/0x23c [ 35.213297][ T6434] do_el0_svc+0x48/0x58 [ 35.214536][ T6434] el0_svc+0x54/0x168 [ 35.215783][ T6434] el0t_64_sync_handler+0x84/0x108 [ 35.217329][ T6434] el0t_64_sync+0x198/0x19c [ 35.218689][ T6434] [ 35.218689][ T6434] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 35.220658][ T6434] start_this_handle+0xf34/0x11c4 [ 35.222298][ T6434] jbd2__journal_start+0x298/0x544 [ 35.223809][ T6434] jbd2_journal_start+0x3c/0x4c [ 35.225215][ T6434] ocfs2_start_trans+0x3d0/0x71c [ 35.226723][ T6434] ocfs2_reserve_suballoc_bits+0x840/0x4254 [ 35.228505][ T6434] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 35.230331][ T6434] ocfs2_mknod+0xdc8/0x2438 [ 35.231719][ T6434] ocfs2_create+0x194/0x4d4 [ 35.233108][ T6434] path_openat+0x13ec/0x2b1c [ 35.234412][ T6434] do_filp_open+0x1e8/0x404 [ 35.235752][ T6434] do_sys_openat2+0x124/0x1b8 [ 35.237188][ T6434] __arm64_sys_openat+0x1f0/0x240 [ 35.238703][ T6434] invoke_syscall+0x98/0x2b8 [ 35.240282][ T6434] el0_svc_common+0x130/0x23c [ 35.241685][ T6434] do_el0_svc+0x48/0x58 [ 35.243041][ T6434] el0_svc+0x54/0x168 [ 35.244252][ T6434] el0t_64_sync_handler+0x84/0x108 [ 35.245692][ T6434] el0t_64_sync+0x198/0x19c [ 35.247103][ T6434] [ 35.247103][ T6434] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 35.249379][ T6434] down_read+0x58/0x2fc [ 35.250678][ T6434] ocfs2_start_trans+0x3c4/0x71c [ 35.252087][ T6434] ocfs2_reserve_suballoc_bits+0x840/0x4254 [ 35.253710][ T6434] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 35.255704][ T6434] ocfs2_mknod+0xdc8/0x2438 [ 35.256997][ T6434] ocfs2_create+0x194/0x4d4 [ 35.258387][ T6434] path_openat+0x13ec/0x2b1c [ 35.259694][ T6434] do_filp_open+0x1e8/0x404 [ 35.261196][ T6434] do_sys_openat2+0x124/0x1b8 [ 35.262576][ T6434] __arm64_sys_openat+0x1f0/0x240 [ 35.264130][ T6434] invoke_syscall+0x98/0x2b8 [ 35.265583][ T6434] el0_svc_common+0x130/0x23c [ 35.267028][ T6434] do_el0_svc+0x48/0x58 [ 35.268314][ T6434] el0_svc+0x54/0x168 [ 35.269488][ T6434] el0t_64_sync_handler+0x84/0x108 [ 35.271107][ T6434] el0t_64_sync+0x198/0x19c [ 35.272449][ T6434] [ 35.272449][ T6434] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 35.274542][ T6434] ocfs2_start_trans+0x244/0x71c [ 35.276124][ T6434] ocfs2_mknod+0xe58/0x2438 [ 35.277595][ T6434] ocfs2_create+0x194/0x4d4 [ 35.278935][ T6434] path_openat+0x13ec/0x2b1c [ 35.280311][ T6434] do_filp_open+0x1e8/0x404 [ 35.281653][ T6434] do_sys_openat2+0x124/0x1b8 [ 35.283049][ T6434] __arm64_sys_openat+0x1f0/0x240 [ 35.284594][ T6434] invoke_syscall+0x98/0x2b8 [ 35.286019][ T6434] el0_svc_common+0x130/0x23c [ 35.287371][ T6434] do_el0_svc+0x48/0x58 [ 35.288624][ T6434] el0_svc+0x54/0x168 [ 35.289822][ T6434] el0t_64_sync_handler+0x84/0x108 [ 35.291236][ T6434] el0t_64_sync+0x198/0x19c [ 35.292581][ T6434] [ 35.292581][ T6434] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 35.295460][ T6434] __lock_acquire+0x34f0/0x7904 [ 35.296906][ T6434] lock_acquire+0x23c/0x724 [ 35.298194][ T6434] down_write+0x50/0xc0 [ 35.299452][ T6434] ocfs2_reserve_local_alloc_bits+0x108/0x24f8 [ 35.301250][ T6434] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 35.303093][ T6434] ocfs2_reserve_clusters+0x3c/0x50 [ 35.304643][ T6434] ocfs2_init_xattr_set_ctxt+0x428/0x978 [ 35.306371][ T6434] ocfs2_xattr_set+0xbe0/0x1448 [ 35.307785][ T6434] ocfs2_xattr_security_set+0x4c/0x64 [ 35.309318][ T6434] __vfs_setxattr+0x3d8/0x400 [ 35.310645][ T6434] __vfs_setxattr_noperm+0x110/0x578 [ 35.312263][ T6434] __vfs_setxattr_locked+0x1ec/0x218 [ 35.313919][ T6434] vfs_setxattr+0x1a8/0x344 [ 35.315296][ T6434] file_setxattr+0x1bc/0x290 [ 35.316711][ T6434] path_setxattrat+0x3b0/0x41c [ 35.318090][ T6434] __arm64_sys_fsetxattr+0xc0/0xdc [ 35.319644][ T6434] invoke_syscall+0x98/0x2b8 [ 35.321004][ T6434] el0_svc_common+0x130/0x23c [ 35.322397][ T6434] do_el0_svc+0x48/0x58 [ 35.323726][ T6434] el0_svc+0x54/0x168 [ 35.324880][ T6434] el0t_64_sync_handler+0x84/0x108 [ 35.326526][ T6434] el0t_64_sync+0x198/0x19c [ 35.327940][ T6434] [ 35.327940][ T6434] other info that might help us debug this: [ 35.327940][ T6434] [ 35.330628][ T6434] Chain exists of: [ 35.330628][ T6434] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 35.330628][ T6434] [ 35.334792][ T6434] Possible unsafe locking scenario: [ 35.334792][ T6434] [ 35.336778][ T6434] CPU0 CPU1 [ 35.338337][ T6434] ---- ---- [ 35.339743][ T6434] lock(&oi->ip_xattr_sem); [ 35.340906][ T6434] lock(jbd2_handle); [ 35.342686][ T6434] lock(&oi->ip_xattr_sem); [ 35.344751][ T6434] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 35.346773][ T6434] [ 35.346773][ T6434] *** DEADLOCK *** [ 35.346773][ T6434] [ 35.348822][ T6434] 3 locks held by syz-executor146/6434: [ 35.350216][ T6434] #0: ffff0000c62d0420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 35.352717][ T6434] #1: ffff0000de1f42c0 (&sb->s_type->i_mutex_key#16){+.+.}-{4:4}, at: vfs_setxattr+0x17c/0x344 [ 35.355478][ T6434] #2: ffff0000de1f3ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 35.358125][ T6434] [ 35.358125][ T6434] stack backtrace: [ 35.359692][ T6434] CPU: 0 UID: 0 PID: 6434 Comm: syz-executor146 Not tainted 6.14.0-rc4-syzkaller-ge056da87c780 #0 [ 35.359706][ T6434] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 35.359713][ T6434] Call trace: [ 35.359717][ T6434] show_stack+0x2c/0x3c (C) [ 35.359735][ T6434] dump_stack_lvl+0xe4/0x150 [ 35.359748][ T6434] dump_stack+0x1c/0x28 [ 35.359760][ T6434] print_circular_bug+0x154/0x1c0 [ 35.359773][ T6434] check_noncircular+0x310/0x404 [ 35.359784][ T6434] __lock_acquire+0x34f0/0x7904 [ 35.359795][ T6434] lock_acquire+0x23c/0x724 [ 35.359805][ T6434] down_write+0x50/0xc0 [ 35.359818][ T6434] ocfs2_reserve_local_alloc_bits+0x108/0x24f8 [ 35.359831][ T6434] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 35.359843][ T6434] ocfs2_reserve_clusters+0x3c/0x50 [ 35.359853][ T6434] ocfs2_init_xattr_set_ctxt+0x428/0x978 [ 35.359865][ T6434] ocfs2_xattr_set+0xbe0/0x1448 [ 35.359875][ T6434] ocfs2_xattr_security_set+0x4c/0x64 [ 35.359887][ T6434] __vfs_setxattr+0x3d8/0x400 [ 35.359898][ T6434] __vfs_setxattr_noperm+0x110/0x578 [ 35.359909][ T6434] __vfs_setxattr_locked+0x1ec/0x218 [ 35.359919][ T6434] vfs_setxattr+0x1a8/0x344 [ 35.359929][ T6434] file_setxattr+0x1bc/0x290 [ 35.359939][ T6434] path_setxattrat+0x3b0/0x41c [ 35.359950][ T6434] __arm64_sys_fsetxattr+0xc0/0xdc [ 35.359961][ T6434] invoke_syscall+0x98/0x2b8 [ 35.359973][ T6434] el0_svc_common+0x130/0x23c [ 35.359985][ T6434] do_el0_svc+0x48/0x58 [ 35.359997][ T6434] el0_svc+0x54/0x168 [ 35.360006][ T6434] el0t_64_sync_handler+0x84/0x108 [ 35.360015][ T6434] el0t_64_sync+0x198/0x19c