Warning: Permanently added '10.128.10.35' (ED25519) to the list of known hosts. executing program [ 36.848472][ T6424] loop0: detected capacity change from 0 to 32768 [ 36.853295][ T6424] ======================================================= [ 36.853295][ T6424] WARNING: The mand mount option has been deprecated and [ 36.853295][ T6424] and is ignored by this kernel. Remove the mand [ 36.853295][ T6424] option from the mount to silence this warning. [ 36.853295][ T6424] ======================================================= [ 36.881247][ T6424] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 36.889754][ T6424] [ 36.890317][ T6424] ====================================================== [ 36.891673][ T6424] WARNING: possible circular locking dependency detected [ 36.893060][ T6424] 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Not tainted [ 36.894292][ T6424] ------------------------------------------------------ [ 36.895698][ T6424] syz-executor616/6424 is trying to acquire lock: [ 36.896938][ T6424] ffff0000de132640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 36.899585][ T6424] [ 36.899585][ T6424] but task is already holding lock: [ 36.901049][ T6424] ffff0000de133ff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 36.903016][ T6424] [ 36.903016][ T6424] which lock already depends on the new lock. [ 36.903016][ T6424] [ 36.905175][ T6424] [ 36.905175][ T6424] the existing dependency chain (in reverse order) is: [ 36.906982][ T6424] [ 36.906982][ T6424] -> #4 (&oi->ip_xattr_sem){++++}-{3:3}: [ 36.908578][ T6424] down_read+0x58/0x2fc [ 36.909509][ T6424] ocfs2_init_acl+0x2c8/0x764 [ 36.910538][ T6424] ocfs2_mknod+0x1388/0x243c [ 36.911597][ T6424] ocfs2_create+0x194/0x4e0 [ 36.912597][ T6424] path_openat+0x13e4/0x2b14 [ 36.913610][ T6424] do_filp_open+0x1bc/0x3cc [ 36.914622][ T6424] do_sys_openat2+0x124/0x1b8 [ 36.915661][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 36.916751][ T6424] invoke_syscall+0x98/0x2b8 [ 36.917734][ T6424] el0_svc_common+0x130/0x23c [ 36.918812][ T6424] do_el0_svc+0x48/0x58 [ 36.919734][ T6424] el0_svc+0x54/0x168 [ 36.920624][ T6424] el0t_64_sync_handler+0x84/0x108 [ 36.921746][ T6424] el0t_64_sync+0x198/0x19c [ 36.922737][ T6424] [ 36.922737][ T6424] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 36.924189][ T6424] start_this_handle+0xf34/0x11c4 [ 36.925322][ T6424] jbd2__journal_start+0x298/0x544 [ 36.926487][ T6424] jbd2_journal_start+0x3c/0x4c [ 36.927678][ T6424] ocfs2_start_trans+0x3d0/0x71c [ 36.928773][ T6424] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 36.930032][ T6424] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 36.931399][ T6424] ocfs2_mknod+0xdc8/0x243c [ 36.932397][ T6424] ocfs2_create+0x194/0x4e0 [ 36.933405][ T6424] path_openat+0x13e4/0x2b14 [ 36.934425][ T6424] do_filp_open+0x1bc/0x3cc [ 36.935423][ T6424] do_sys_openat2+0x124/0x1b8 [ 36.936474][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 36.937606][ T6424] invoke_syscall+0x98/0x2b8 [ 36.938661][ T6424] el0_svc_common+0x130/0x23c [ 36.939701][ T6424] do_el0_svc+0x48/0x58 [ 36.940718][ T6424] el0_svc+0x54/0x168 [ 36.941609][ T6424] el0t_64_sync_handler+0x84/0x108 [ 36.942729][ T6424] el0t_64_sync+0x198/0x19c [ 36.943765][ T6424] [ 36.943765][ T6424] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 36.945549][ T6424] down_read+0x58/0x2fc [ 36.946527][ T6424] ocfs2_start_trans+0x3c4/0x71c [ 36.947616][ T6424] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 36.948869][ T6424] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 36.950224][ T6424] ocfs2_mknod+0xdc8/0x243c [ 36.951209][ T6424] ocfs2_create+0x194/0x4e0 [ 36.952203][ T6424] path_openat+0x13e4/0x2b14 [ 36.953200][ T6424] do_filp_open+0x1bc/0x3cc [ 36.954165][ T6424] do_sys_openat2+0x124/0x1b8 [ 36.955244][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 36.956350][ T6424] invoke_syscall+0x98/0x2b8 [ 36.957454][ T6424] el0_svc_common+0x130/0x23c [ 36.958501][ T6424] do_el0_svc+0x48/0x58 [ 36.959519][ T6424] el0_svc+0x54/0x168 [ 36.960495][ T6424] el0t_64_sync_handler+0x84/0x108 [ 36.961737][ T6424] el0t_64_sync+0x198/0x19c [ 36.962832][ T6424] [ 36.962832][ T6424] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 36.964413][ T6424] ocfs2_start_trans+0x244/0x71c [ 36.965598][ T6424] ocfs2_mknod+0xe58/0x243c [ 36.966691][ T6424] ocfs2_create+0x194/0x4e0 [ 36.967708][ T6424] path_openat+0x13e4/0x2b14 [ 36.968774][ T6424] do_filp_open+0x1bc/0x3cc [ 36.969769][ T6424] do_sys_openat2+0x124/0x1b8 [ 36.970786][ T6424] __arm64_sys_openat+0x1f0/0x240 [ 36.971866][ T6424] invoke_syscall+0x98/0x2b8 [ 36.972933][ T6424] el0_svc_common+0x130/0x23c [ 36.974055][ T6424] do_el0_svc+0x48/0x58 [ 36.975007][ T6424] el0_svc+0x54/0x168 [ 36.975932][ T6424] el0t_64_sync_handler+0x84/0x108 [ 36.977135][ T6424] el0t_64_sync+0x198/0x19c [ 36.978253][ T6424] [ 36.978253][ T6424] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}: [ 36.980602][ T6424] __lock_acquire+0x33f8/0x77c8 [ 36.981816][ T6424] lock_acquire+0x240/0x728 [ 36.982919][ T6424] down_write+0x50/0xc0 [ 36.983881][ T6424] ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 36.985273][ T6424] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 36.986681][ T6424] ocfs2_reserve_clusters+0x3c/0x50 [ 36.987884][ T6424] ocfs2_init_xattr_set_ctxt+0x404/0x968 [ 36.989187][ T6424] ocfs2_xattr_set+0xbe0/0x1448 [ 36.990304][ T6424] ocfs2_xattr_trusted_set+0x4c/0x64 [ 36.991457][ T6424] __vfs_setxattr+0x3d8/0x400 [ 36.992527][ T6424] __vfs_setxattr_noperm+0x110/0x578 [ 36.993696][ T6424] __vfs_setxattr_locked+0x1ec/0x218 [ 36.994960][ T6424] vfs_setxattr+0x1a8/0x344 [ 36.996066][ T6424] path_setxattr+0x30c/0x428 [ 36.997223][ T6424] __arm64_sys_lsetxattr+0xbc/0xd8 [ 36.998400][ T6424] invoke_syscall+0x98/0x2b8 [ 36.999391][ T6424] el0_svc_common+0x130/0x23c [ 37.000564][ T6424] do_el0_svc+0x48/0x58 [ 37.001684][ T6424] el0_svc+0x54/0x168 [ 37.002603][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.003779][ T6424] el0t_64_sync+0x198/0x19c [ 37.004815][ T6424] [ 37.004815][ T6424] other info that might help us debug this: [ 37.004815][ T6424] [ 37.007085][ T6424] Chain exists of: [ 37.007085][ T6424] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 37.007085][ T6424] [ 37.010383][ T6424] Possible unsafe locking scenario: [ 37.010383][ T6424] [ 37.011992][ T6424] CPU0 CPU1 [ 37.013126][ T6424] ---- ---- [ 37.014323][ T6424] lock(&oi->ip_xattr_sem); [ 37.015444][ T6424] lock(jbd2_handle); [ 37.016768][ T6424] lock(&oi->ip_xattr_sem); [ 37.018310][ T6424] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 37.019968][ T6424] [ 37.019968][ T6424] *** DEADLOCK *** [ 37.019968][ T6424] [ 37.021737][ T6424] 3 locks held by syz-executor616/6424: [ 37.022922][ T6424] #0: ffff0000d9286420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 37.024869][ T6424] #1: ffff0000de1342c0 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 37.027213][ T6424] #2: ffff0000de133ff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 37.029305][ T6424] [ 37.029305][ T6424] stack backtrace: [ 37.030561][ T6424] CPU: 0 UID: 0 PID: 6424 Comm: syz-executor616 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 [ 37.032731][ T6424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 37.034789][ T6424] Call trace: [ 37.035591][ T6424] show_stack+0x2c/0x3c (C) [ 37.036505][ T6424] dump_stack_lvl+0xe4/0x150 [ 37.037505][ T6424] dump_stack+0x1c/0x28 [ 37.038472][ T6424] print_circular_bug+0x154/0x1c0 [ 37.039515][ T6424] check_noncircular+0x310/0x404 [ 37.040633][ T6424] __lock_acquire+0x33f8/0x77c8 [ 37.041736][ T6424] lock_acquire+0x240/0x728 [ 37.042589][ T6424] down_write+0x50/0xc0 [ 37.043528][ T6424] ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 37.044779][ T6424] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 37.046215][ T6424] ocfs2_reserve_clusters+0x3c/0x50 [ 37.047330][ T6424] ocfs2_init_xattr_set_ctxt+0x404/0x968 [ 37.048497][ T6424] ocfs2_xattr_set+0xbe0/0x1448 [ 37.049508][ T6424] ocfs2_xattr_trusted_set+0x4c/0x64 [ 37.050728][ T6424] __vfs_setxattr+0x3d8/0x400 [ 37.051827][ T6424] __vfs_setxattr_noperm+0x110/0x578 [ 37.052854][ T6424] __vfs_setxattr_locked+0x1ec/0x218 [ 37.054091][ T6424] vfs_setxattr+0x1a8/0x344 [ 37.055128][ T6424] path_setxattr+0x30c/0x428 [ 37.056132][ T6424] __arm64_sys_lsetxattr+0xbc/0xd8 [ 37.057171][ T6424] invoke_syscall+0x98/0x2b8 [ 37.058148][ T6424] el0_svc_common+0x130/0x23c [ 37.059188][ T6424] do_el0_svc+0x48/0x58 [ 37.060109][ T6424] el0_svc+0x54/0x168 [ 37.060981][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.062064][ T6424] el0t_64_sync+0x198/0x19c