Warning: Permanently added '10.128.1.175' (ED25519) to the list of known hosts. executing program [ 37.842438][ T6424] loop0: detected capacity change from 0 to 32768 [ 37.857408][ T6424] JBD2: Ignoring recovery information on journal [ 37.874122][ T6424] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 37.887684][ T6424] overlayfs: upper fs does not support tmpfile. [ 37.890908][ T6424] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 37.892571][ T6424] [ 37.893067][ T6424] ====================================================== [ 37.894660][ T6424] WARNING: possible circular locking dependency detected [ 37.896189][ T6424] 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Not tainted [ 37.897410][ T6424] ------------------------------------------------------ [ 37.898869][ T6424] syz-executor171/6424 is trying to acquire lock: [ 37.900186][ T6424] ffff0000deb02640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 37.903046][ T6424] [ 37.903046][ T6424] but task is already holding lock: [ 37.904699][ T6424] ffff0000deb05c78 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 37.906852][ T6424] [ 37.906852][ T6424] which lock already depends on the new lock. [ 37.906852][ T6424] [ 37.909122][ T6424] [ 37.909122][ T6424] the existing dependency chain (in reverse order) is: [ 37.911125][ T6424] [ 37.911125][ T6424] -> #4 (&oi->ip_xattr_sem){+.+.}-{3:3}: [ 37.912821][ T6424] down_write+0x50/0xc0 [ 37.913744][ T6424] ocfs2_xattr_set_handle+0x40c/0x824 [ 37.915006][ T6424] ocfs2_init_security_set+0xb4/0xd8 [ 37.916248][ T6424] ocfs2_mknod+0x1408/0x243c [ 37.917303][ T6424] ocfs2_mkdir+0x194/0x4e0 [ 37.918391][ T6424] vfs_mkdir+0x27c/0x410 [ 37.919451][ T6424] do_mkdirat+0x248/0x574 [ 37.920537][ T6424] __arm64_sys_mkdirat+0x8c/0xa4 [ 37.921732][ T6424] invoke_syscall+0x98/0x2b8 [ 37.922739][ T6424] el0_svc_common+0x130/0x23c [ 37.923894][ T6424] do_el0_svc+0x48/0x58 [ 37.924939][ T6424] el0_svc+0x54/0x168 [ 37.925954][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.927192][ T6424] el0t_64_sync+0x198/0x19c [ 37.928259][ T6424] [ 37.928259][ T6424] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 37.929828][ T6424] start_this_handle+0xf34/0x11c4 [ 37.930971][ T6424] jbd2__journal_start+0x298/0x544 [ 37.932140][ T6424] jbd2_journal_start+0x3c/0x4c [ 37.933375][ T6424] ocfs2_start_trans+0x3d0/0x71c [ 37.934498][ T6424] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 37.935878][ T6424] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 37.937539][ T6424] ocfs2_mknod+0xdc8/0x243c [ 37.938718][ T6424] ocfs2_mkdir+0x194/0x4e0 [ 37.939760][ T6424] vfs_mkdir+0x27c/0x410 [ 37.940842][ T6424] do_mkdirat+0x248/0x574 [ 37.941984][ T6424] __arm64_sys_mkdirat+0x8c/0xa4 [ 37.943242][ T6424] invoke_syscall+0x98/0x2b8 [ 37.944322][ T6424] el0_svc_common+0x130/0x23c [ 37.945449][ T6424] do_el0_svc+0x48/0x58 [ 37.946491][ T6424] el0_svc+0x54/0x168 [ 37.947463][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.948714][ T6424] el0t_64_sync+0x198/0x19c [ 37.949767][ T6424] [ 37.949767][ T6424] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 37.951699][ T6424] down_read+0x58/0x2fc [ 37.952738][ T6424] ocfs2_start_trans+0x3c4/0x71c [ 37.953930][ T6424] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 37.955320][ T6424] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 37.956735][ T6424] ocfs2_mknod+0xdc8/0x243c [ 37.957763][ T6424] ocfs2_mkdir+0x194/0x4e0 [ 37.958832][ T6424] vfs_mkdir+0x27c/0x410 [ 37.959805][ T6424] do_mkdirat+0x248/0x574 [ 37.960796][ T6424] __arm64_sys_mkdirat+0x8c/0xa4 [ 37.962061][ T6424] invoke_syscall+0x98/0x2b8 [ 37.963120][ T6424] el0_svc_common+0x130/0x23c [ 37.964205][ T6424] do_el0_svc+0x48/0x58 [ 37.965194][ T6424] el0_svc+0x54/0x168 [ 37.966216][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.967439][ T6424] el0t_64_sync+0x198/0x19c [ 37.968573][ T6424] [ 37.968573][ T6424] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 37.970227][ T6424] ocfs2_start_trans+0x244/0x71c [ 37.971429][ T6424] ocfs2_mknod+0xe58/0x243c [ 37.972535][ T6424] ocfs2_mkdir+0x194/0x4e0 [ 37.973618][ T6424] vfs_mkdir+0x27c/0x410 [ 37.974528][ T6424] do_mkdirat+0x248/0x574 [ 37.975588][ T6424] __arm64_sys_mkdirat+0x8c/0xa4 [ 37.976784][ T6424] invoke_syscall+0x98/0x2b8 [ 37.977816][ T6424] el0_svc_common+0x130/0x23c [ 37.978879][ T6424] do_el0_svc+0x48/0x58 [ 37.979959][ T6424] el0_svc+0x54/0x168 [ 37.980916][ T6424] el0t_64_sync_handler+0x84/0x108 [ 37.982111][ T6424] el0t_64_sync+0x198/0x19c [ 37.983231][ T6424] [ 37.983231][ T6424] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}: [ 37.985670][ T6424] __lock_acquire+0x33f8/0x77c8 [ 37.986913][ T6424] lock_acquire+0x240/0x728 [ 37.988000][ T6424] down_write+0x50/0xc0 [ 37.988951][ T6424] ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 37.990409][ T6424] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 37.991957][ T6424] ocfs2_reserve_clusters+0x3c/0x50 [ 37.993160][ T6424] ocfs2_init_xattr_set_ctxt+0x404/0x968 [ 37.994637][ T6424] ocfs2_xattr_set+0xbe0/0x1448 [ 37.995753][ T6424] ocfs2_xattr_trusted_set+0x4c/0x64 [ 37.997104][ T6424] __vfs_setxattr+0x3d8/0x400 [ 37.998298][ T6424] __vfs_setxattr_noperm+0x110/0x578 [ 37.999583][ T6424] __vfs_setxattr_locked+0x1ec/0x218 [ 38.000907][ T6424] vfs_setxattr+0x1a8/0x344 [ 38.001956][ T6424] ovl_get_workdir+0xaf8/0x142c [ 38.003125][ T6424] ovl_fill_super+0x1004/0x2e40 [ 38.004293][ T6424] get_tree_nodev+0xb4/0x144 [ 38.005424][ T6424] ovl_get_tree+0x28/0x38 [ 38.006572][ T6424] vfs_get_tree+0x90/0x28c [ 38.007719][ T6424] do_new_mount+0x278/0x900 [ 38.008812][ T6424] path_mount+0x590/0xe04 [ 38.009903][ T6424] __arm64_sys_mount+0x4d4/0x5ac [ 38.011109][ T6424] invoke_syscall+0x98/0x2b8 [ 38.012136][ T6424] el0_svc_common+0x130/0x23c [ 38.013234][ T6424] do_el0_svc+0x48/0x58 [ 38.014218][ T6424] el0_svc+0x54/0x168 [ 38.015214][ T6424] el0t_64_sync_handler+0x84/0x108 [ 38.016447][ T6424] el0t_64_sync+0x198/0x19c [ 38.017502][ T6424] [ 38.017502][ T6424] other info that might help us debug this: [ 38.017502][ T6424] [ 38.019765][ T6424] Chain exists of: [ 38.019765][ T6424] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 38.019765][ T6424] [ 38.023211][ T6424] Possible unsafe locking scenario: [ 38.023211][ T6424] [ 38.024808][ T6424] CPU0 CPU1 [ 38.025917][ T6424] ---- ---- [ 38.027097][ T6424] lock(&oi->ip_xattr_sem); [ 38.028156][ T6424] lock(jbd2_handle); [ 38.029558][ T6424] lock(&oi->ip_xattr_sem); [ 38.030949][ T6424] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 38.032562][ T6424] [ 38.032562][ T6424] *** DEADLOCK *** [ 38.032562][ T6424] [ 38.034391][ T6424] 4 locks held by syz-executor171/6424: [ 38.035660][ T6424] #0: ffff0000c2d9c0e0 (&type->s_umount_key#44/1){+.+.}-{3:3}, at: alloc_super+0x1b0/0x83c [ 38.037880][ T6424] #1: ffff0000c576c420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 38.039979][ T6424] #2: ffff0000deb05f40 (&sb->s_type->i_mutex_key#18){++++}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 38.042309][ T6424] #3: ffff0000deb05c78 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 38.044546][ T6424] [ 38.044546][ T6424] stack backtrace: [ 38.045953][ T6424] CPU: 0 UID: 0 PID: 6424 Comm: syz-executor171 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 [ 38.048139][ T6424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 38.050236][ T6424] Call trace: [ 38.050868][ T6424] show_stack+0x2c/0x3c (C) [ 38.051810][ T6424] dump_stack_lvl+0xe4/0x150 [ 38.052823][ T6424] dump_stack+0x1c/0x28 [ 38.053727][ T6424] print_circular_bug+0x154/0x1c0 [ 38.054879][ T6424] check_noncircular+0x310/0x404 [ 38.056010][ T6424] __lock_acquire+0x33f8/0x77c8 [ 38.057116][ T6424] lock_acquire+0x240/0x728 [ 38.058066][ T6424] down_write+0x50/0xc0 [ 38.058942][ T6424] ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 38.060244][ T6424] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 38.061666][ T6424] ocfs2_reserve_clusters+0x3c/0x50 [ 38.062953][ T6424] ocfs2_init_xattr_set_ctxt+0x404/0x968 [ 38.064287][ T6424] ocfs2_xattr_set+0xbe0/0x1448 [ 38.065355][ T6424] ocfs2_xattr_trusted_set+0x4c/0x64 [ 38.066540][ T6424] __vfs_setxattr+0x3d8/0x400 [ 38.067557][ T6424] __vfs_setxattr_noperm+0x110/0x578 [ 38.068624][ T6424] __vfs_setxattr_locked+0x1ec/0x218 [ 38.069819][ T6424] vfs_setxattr+0x1a8/0x344 [ 38.070821][ T6424] ovl_get_workdir+0xaf8/0x142c [ 38.071870][ T6424] ovl_fill_super+0x1004/0x2e40 [ 38.072936][ T6424] get_tree_nodev+0xb4/0x144 [ 38.073941][ T6424] ovl_get_tree+0x28/0x38 [ 38.074804][ T6424] vfs_get_tree+0x90/0x28c [ 38.075812][ T6424] do_new_mount+0x278/0x900 [ 38.076799][ T6424] path_mount+0x590/0xe04 [ 38.077758][ T6424] __arm64_sys_mount+0x4d4/0x5ac [ 38.078911][ T6424] invoke_syscall+0x98/0x2b8 [ 38.079922][ T6424] el0_svc_common+0x130/0x23c [ 38.080950][ T6424] do_el0_svc+0x48/0x58 [ 38.081826][ T6424] el0_svc+0x54/0x168 [ 38.082635][ T6424] el0t_64_sync_handler+0x84/0x108 [ 38.083786][ T6424] el0t_64_sync+0x198/0x19c