Warning: Permanently added '10.128.1.157' (ED25519) to the list of known hosts. executing program [ 38.966709][ T4290] loop0: detected capacity change from 0 to 32768 [ 38.970749][ T4290] ======================================================= [ 38.970749][ T4290] WARNING: The mand mount option has been deprecated and [ 38.970749][ T4290] and is ignored by this kernel. Remove the mand [ 38.970749][ T4290] option from the mount to silence this warning. [ 38.970749][ T4290] ======================================================= [ 38.998022][ T4290] JBD2: Ignoring recovery information on journal [ 39.034286][ T4290] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 39.043378][ T4290] [ 39.044123][ T4290] ====================================================== [ 39.046034][ T4290] WARNING: possible circular locking dependency detected [ 39.048064][ T4290] 6.1.130-syzkaller #0 Not tainted [ 39.049446][ T4290] ------------------------------------------------------ [ 39.051375][ T4290] syz-executor106/4290 is trying to acquire lock: [ 39.053047][ T4290] ffff0000e166ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 39.056676][ T4290] [ 39.056676][ T4290] but task is already holding lock: [ 39.058723][ T4290] ffff0000e16e86f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 39.061370][ T4290] [ 39.061370][ T4290] which lock already depends on the new lock. [ 39.061370][ T4290] [ 39.064191][ T4290] [ 39.064191][ T4290] the existing dependency chain (in reverse order) is: [ 39.066594][ T4290] [ 39.066594][ T4290] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 39.068659][ T4290] down_read+0x64/0x308 [ 39.069953][ T4290] ocfs2_init_acl+0x2c8/0x764 [ 39.071356][ T4290] ocfs2_mknod+0x1574/0x2560 [ 39.072751][ T4290] ocfs2_create+0x1a8/0x560 [ 39.074121][ T4290] path_openat+0xeac/0x2548 [ 39.075487][ T4290] do_filp_open+0x1bc/0x3cc [ 39.076820][ T4290] do_sys_openat2+0x128/0x3e0 [ 39.078278][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 39.079797][ T4290] invoke_syscall+0x98/0x2bc [ 39.081266][ T4290] el0_svc_common+0x138/0x258 [ 39.082705][ T4290] do_el0_svc+0x58/0x13c [ 39.084007][ T4290] el0_svc+0x58/0x168 [ 39.085194][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 39.086660][ T4290] el0t_64_sync+0x18c/0x190 [ 39.087995][ T4290] [ 39.087995][ T4290] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 39.089956][ T4290] start_this_handle+0x1140/0x13ac [ 39.091467][ T4290] jbd2__journal_start+0x298/0x544 [ 39.092955][ T4290] jbd2_journal_start+0x3c/0x4c [ 39.094408][ T4290] ocfs2_start_trans+0x3e8/0x73c [ 39.095888][ T4290] ocfs2_mknod+0xe64/0x2560 [ 39.097209][ T4290] ocfs2_create+0x1a8/0x560 [ 39.098533][ T4290] path_openat+0xeac/0x2548 [ 39.099929][ T4290] do_filp_open+0x1bc/0x3cc [ 39.101300][ T4290] do_sys_openat2+0x128/0x3e0 [ 39.102624][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 39.104104][ T4290] invoke_syscall+0x98/0x2bc [ 39.105411][ T4290] el0_svc_common+0x138/0x258 [ 39.106801][ T4290] do_el0_svc+0x58/0x13c [ 39.108097][ T4290] el0_svc+0x58/0x168 [ 39.109329][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 39.110807][ T4290] el0t_64_sync+0x18c/0x190 [ 39.112188][ T4290] [ 39.112188][ T4290] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 39.114488][ T4290] down_read+0x64/0x308 [ 39.115723][ T4290] ocfs2_start_trans+0x3dc/0x73c [ 39.117265][ T4290] ocfs2_mknod+0xe64/0x2560 [ 39.118590][ T4290] ocfs2_create+0x1a8/0x560 [ 39.119965][ T4290] path_openat+0xeac/0x2548 [ 39.121288][ T4290] do_filp_open+0x1bc/0x3cc [ 39.122674][ T4290] do_sys_openat2+0x128/0x3e0 [ 39.124126][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 39.125606][ T4290] invoke_syscall+0x98/0x2bc [ 39.127012][ T4290] el0_svc_common+0x138/0x258 [ 39.128386][ T4290] do_el0_svc+0x58/0x13c [ 39.129658][ T4290] el0_svc+0x58/0x168 [ 39.130868][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 39.132360][ T4290] el0t_64_sync+0x18c/0x190 [ 39.133748][ T4290] [ 39.133748][ T4290] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 39.135781][ T4290] ocfs2_start_trans+0x260/0x73c [ 39.137230][ T4290] ocfs2_mknod+0xe64/0x2560 [ 39.138585][ T4290] ocfs2_create+0x1a8/0x560 [ 39.139924][ T4290] path_openat+0xeac/0x2548 [ 39.141294][ T4290] do_filp_open+0x1bc/0x3cc [ 39.142721][ T4290] do_sys_openat2+0x128/0x3e0 [ 39.144094][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 39.145561][ T4290] invoke_syscall+0x98/0x2bc [ 39.146919][ T4290] el0_svc_common+0x138/0x258 [ 39.148328][ T4290] do_el0_svc+0x58/0x13c [ 39.149565][ T4290] el0_svc+0x58/0x168 [ 39.150801][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 39.152295][ T4290] el0t_64_sync+0x18c/0x190 [ 39.153648][ T4290] [ 39.153648][ T4290] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 39.156460][ T4290] down_write+0x5c/0x88 [ 39.157756][ T4290] ocfs2_reserve_local_alloc_bits+0xfc/0x2610 [ 39.159524][ T4290] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 39.161387][ T4290] ocfs2_reserve_clusters+0x3c/0x50 [ 39.162959][ T4290] ocfs2_mknod+0xe04/0x2560 [ 39.164297][ T4290] ocfs2_create+0x1a8/0x560 [ 39.165642][ T4290] path_openat+0xeac/0x2548 [ 39.167036][ T4290] do_filp_open+0x1bc/0x3cc [ 39.168473][ T4290] do_sys_openat2+0x128/0x3e0 [ 39.169824][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 39.171284][ T4290] invoke_syscall+0x98/0x2bc [ 39.172653][ T4290] el0_svc_common+0x138/0x258 [ 39.174067][ T4290] do_el0_svc+0x58/0x13c [ 39.175359][ T4290] el0_svc+0x58/0x168 [ 39.176558][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 39.178089][ T4290] el0t_64_sync+0x18c/0x190 [ 39.179406][ T4290] [ 39.179406][ T4290] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 39.182230][ T4290] __lock_acquire+0x3338/0x7680 [ 39.183686][ T4290] lock_acquire+0x26c/0x7cc [ 39.184994][ T4290] down_write+0x5c/0x88 [ 39.186330][ T4290] ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 39.188125][ T4290] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 39.189969][ T4290] ocfs2_init_xattr_set_ctxt+0x3b0/0x9f8 [ 39.191593][ T4290] ocfs2_xattr_set+0xc08/0x1478 [ 39.193065][ T4290] ocfs2_xattr_trusted_set+0x4c/0x64 [ 39.194596][ T4290] __vfs_setxattr+0x388/0x3a4 [ 39.196013][ T4290] __vfs_setxattr_noperm+0x110/0x528 [ 39.197533][ T4290] __vfs_setxattr_locked+0x1ec/0x218 [ 39.199097][ T4290] vfs_setxattr+0x1a8/0x344 [ 39.200415][ T4290] setxattr+0x230/0x294 [ 39.201662][ T4290] path_setxattr+0x17c/0x258 [ 39.203004][ T4290] __arm64_sys_lsetxattr+0xbc/0xd8 [ 39.204507][ T4290] invoke_syscall+0x98/0x2bc [ 39.205994][ T4290] el0_svc_common+0x138/0x258 [ 39.207364][ T4290] do_el0_svc+0x58/0x13c [ 39.208649][ T4290] el0_svc+0x58/0x168 [ 39.209836][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 39.211334][ T4290] el0t_64_sync+0x18c/0x190 [ 39.212639][ T4290] [ 39.212639][ T4290] other info that might help us debug this: [ 39.212639][ T4290] [ 39.215489][ T4290] Chain exists of: [ 39.215489][ T4290] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 39.215489][ T4290] [ 39.219786][ T4290] Possible unsafe locking scenario: [ 39.219786][ T4290] [ 39.221744][ T4290] CPU0 CPU1 [ 39.223208][ T4290] ---- ---- [ 39.224621][ T4290] lock(&oi->ip_xattr_sem); [ 39.225875][ T4290] lock(jbd2_handle); [ 39.227682][ T4290] lock(&oi->ip_xattr_sem); [ 39.229601][ T4290] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 39.231571][ T4290] [ 39.231571][ T4290] *** DEADLOCK *** [ 39.231571][ T4290] [ 39.233711][ T4290] 3 locks held by syz-executor106/4290: [ 39.235277][ T4290] #0: ffff0000d99bc460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 39.237749][ T4290] #1: ffff0000e16e89c8 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 39.240556][ T4290] #2: ffff0000e16e86f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 39.243265][ T4290] [ 39.243265][ T4290] stack backtrace: [ 39.244892][ T4290] CPU: 1 PID: 4290 Comm: syz-executor106 Not tainted 6.1.130-syzkaller #0 [ 39.247227][ T4290] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 39.249947][ T4290] Call trace: [ 39.250828][ T4290] dump_backtrace+0x1c8/0x1f4 [ 39.252060][ T4290] show_stack+0x2c/0x3c [ 39.253179][ T4290] dump_stack_lvl+0x108/0x170 [ 39.254402][ T4290] dump_stack+0x1c/0x58 [ 39.255519][ T4290] print_circular_bug+0x150/0x1b8 [ 39.256870][ T4290] check_noncircular+0x2cc/0x378 [ 39.258181][ T4290] __lock_acquire+0x3338/0x7680 [ 39.259487][ T4290] lock_acquire+0x26c/0x7cc [ 39.260693][ T4290] down_write+0x5c/0x88 [ 39.261784][ T4290] ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 39.263433][ T4290] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 39.265223][ T4290] ocfs2_init_xattr_set_ctxt+0x3b0/0x9f8 [ 39.266763][ T4290] ocfs2_xattr_set+0xc08/0x1478 [ 39.268060][ T4290] ocfs2_xattr_trusted_set+0x4c/0x64 [ 39.269278][ T4290] __vfs_setxattr+0x388/0x3a4 [ 39.270362][ T4290] __vfs_setxattr_noperm+0x110/0x528 [ 39.271571][ T4290] __vfs_setxattr_locked+0x1ec/0x218 [ 39.272768][ T4290] vfs_setxattr+0x1a8/0x344 [ 39.273997][ T4290] setxattr+0x230/0x294 [ 39.275061][ T4290] path_setxattr+0x17c/0x258 [ 39.276264][ T4290] __arm64_sys_lsetxattr+0xbc/0xd8 [ 39.277595][ T4290] invoke_syscall+0x98/0x2bc [ 39.278904][ T4290] el0_svc_common+0x138/0x258 [ 39.280143][ T4290] do_el0_svc+0x58/0x13c [ 39.281320][ T4290] el0_svc+0x58/0x168 [ 39.282378][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 39.283757][ T4290] el0t_64_sync+0x18c/0x190