Warning: Permanently added '10.128.1.96' (ED25519) to the list of known hosts. executing program [ 46.896952][ T4020] loop0: detected capacity change from 0 to 32768 [ 46.938278][ T4020] ======================================================= [ 46.938278][ T4020] WARNING: The mand mount option has been deprecated and [ 46.938278][ T4020] and is ignored by this kernel. Remove the mand [ 46.938278][ T4020] option from the mount to silence this warning. [ 46.938278][ T4020] ======================================================= [ 46.978024][ T4020] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 46.987057][ T4020] [ 46.987659][ T4020] ====================================================== [ 46.989166][ T4020] WARNING: possible circular locking dependency detected [ 46.990522][ T4020] 5.15.173-syzkaller #0 Not tainted [ 46.991537][ T4020] ------------------------------------------------------ [ 46.992921][ T4020] syz-executor498/4020 is trying to acquire lock: [ 46.994198][ T4020] ffff0000e2096d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x164/0x416c [ 46.997002][ T4020] [ 46.997002][ T4020] but task is already holding lock: [ 46.998532][ T4020] ffff0000e209bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 47.000574][ T4020] [ 47.000574][ T4020] which lock already depends on the new lock. [ 47.000574][ T4020] [ 47.002748][ T4020] [ 47.002748][ T4020] the existing dependency chain (in reverse order) is: [ 47.004608][ T4020] [ 47.004608][ T4020] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 47.006354][ T4020] down_read+0xc0/0x398 [ 47.007386][ T4020] ocfs2_init_acl+0x2d0/0x778 [ 47.008485][ T4020] ocfs2_mknod+0x1558/0x24f8 [ 47.009520][ T4020] ocfs2_create+0x184/0x4c8 [ 47.010661][ T4020] path_openat+0xf18/0x26cc [ 47.011774][ T4020] do_filp_open+0x1a8/0x3b4 [ 47.012895][ T4020] do_sys_openat2+0x128/0x3e0 [ 47.014109][ T4020] __arm64_sys_openat+0x1f0/0x240 [ 47.015217][ T4020] invoke_syscall+0x98/0x2b8 [ 47.016391][ T4020] el0_svc_common+0x138/0x258 [ 47.017408][ T4020] do_el0_svc+0x58/0x14c [ 47.018405][ T4020] el0_svc+0x7c/0x1f0 [ 47.019391][ T4020] el0t_64_sync_handler+0x84/0xe4 [ 47.020497][ T4020] el0t_64_sync+0x1a0/0x1a4 [ 47.021491][ T4020] [ 47.021491][ T4020] -> #4 (jbd2_handle){++++}-{0:0}: [ 47.023017][ T4020] start_this_handle+0xfc0/0x12a4 [ 47.024220][ T4020] jbd2__journal_start+0x29c/0x7b4 [ 47.025429][ T4020] jbd2_journal_start+0x3c/0x4c [ 47.026645][ T4020] ocfs2_start_trans+0x468/0x804 [ 47.027929][ T4020] ocfs2_mknod+0xe68/0x24f8 [ 47.029076][ T4020] ocfs2_create+0x184/0x4c8 [ 47.030155][ T4020] path_openat+0xf18/0x26cc [ 47.031195][ T4020] do_filp_open+0x1a8/0x3b4 [ 47.032184][ T4020] do_sys_openat2+0x128/0x3e0 [ 47.033396][ T4020] __arm64_sys_openat+0x1f0/0x240 [ 47.034471][ T4020] invoke_syscall+0x98/0x2b8 [ 47.035618][ T4020] el0_svc_common+0x138/0x258 [ 47.036685][ T4020] do_el0_svc+0x58/0x14c [ 47.037616][ T4020] el0_svc+0x7c/0x1f0 [ 47.038570][ T4020] el0t_64_sync_handler+0x84/0xe4 [ 47.039692][ T4020] el0t_64_sync+0x1a0/0x1a4 [ 47.040678][ T4020] [ 47.040678][ T4020] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 47.042594][ T4020] down_read+0xc0/0x398 [ 47.043543][ T4020] ocfs2_start_trans+0x45c/0x804 [ 47.044824][ T4020] ocfs2_mknod+0xe68/0x24f8 [ 47.045869][ T4020] ocfs2_create+0x184/0x4c8 [ 47.046975][ T4020] path_openat+0xf18/0x26cc [ 47.048065][ T4020] do_filp_open+0x1a8/0x3b4 [ 47.049121][ T4020] do_sys_openat2+0x128/0x3e0 [ 47.050258][ T4020] __arm64_sys_openat+0x1f0/0x240 [ 47.051453][ T4020] invoke_syscall+0x98/0x2b8 [ 47.052639][ T4020] el0_svc_common+0x138/0x258 [ 47.053720][ T4020] do_el0_svc+0x58/0x14c [ 47.054660][ T4020] el0_svc+0x7c/0x1f0 [ 47.055567][ T4020] el0t_64_sync_handler+0x84/0xe4 [ 47.056638][ T4020] el0t_64_sync+0x1a0/0x1a4 [ 47.057671][ T4020] [ 47.057671][ T4020] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 47.059351][ T4020] ocfs2_start_trans+0x2dc/0x804 [ 47.060543][ T4020] ocfs2_mknod+0xe68/0x24f8 [ 47.061738][ T4020] ocfs2_create+0x184/0x4c8 [ 47.062840][ T4020] path_openat+0xf18/0x26cc [ 47.063846][ T4020] do_filp_open+0x1a8/0x3b4 [ 47.064853][ T4020] do_sys_openat2+0x128/0x3e0 [ 47.065949][ T4020] __arm64_sys_openat+0x1f0/0x240 [ 47.067225][ T4020] invoke_syscall+0x98/0x2b8 [ 47.068376][ T4020] el0_svc_common+0x138/0x258 [ 47.069436][ T4020] do_el0_svc+0x58/0x14c [ 47.070461][ T4020] el0_svc+0x7c/0x1f0 [ 47.071471][ T4020] el0t_64_sync_handler+0x84/0xe4 [ 47.072643][ T4020] el0t_64_sync+0x1a0/0x1a4 [ 47.073715][ T4020] [ 47.073715][ T4020] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 47.076056][ T4020] down_write+0xbc/0x12c [ 47.076993][ T4020] ocfs2_reserve_local_alloc_bits+0xfc/0x2474 [ 47.078406][ T4020] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 47.079849][ T4020] ocfs2_reserve_clusters+0x3c/0x50 [ 47.081019][ T4020] ocfs2_mknod+0xe08/0x24f8 [ 47.082076][ T4020] ocfs2_create+0x184/0x4c8 [ 47.083161][ T4020] path_openat+0xf18/0x26cc [ 47.084209][ T4020] do_filp_open+0x1a8/0x3b4 [ 47.085394][ T4020] do_sys_openat2+0x128/0x3e0 [ 47.086510][ T4020] __arm64_sys_openat+0x1f0/0x240 [ 47.087724][ T4020] invoke_syscall+0x98/0x2b8 [ 47.088870][ T4020] el0_svc_common+0x138/0x258 [ 47.090010][ T4020] do_el0_svc+0x58/0x14c [ 47.091059][ T4020] el0_svc+0x7c/0x1f0 [ 47.092072][ T4020] el0t_64_sync_handler+0x84/0xe4 [ 47.093258][ T4020] el0t_64_sync+0x1a0/0x1a4 [ 47.094309][ T4020] [ 47.094309][ T4020] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 47.096622][ T4020] __lock_acquire+0x32d4/0x7638 [ 47.097760][ T4020] lock_acquire+0x240/0x77c [ 47.098848][ T4020] down_write+0xbc/0x12c [ 47.099916][ T4020] ocfs2_reserve_suballoc_bits+0x164/0x416c [ 47.101257][ T4020] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 47.102815][ T4020] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 47.104143][ T4020] ocfs2_xattr_set+0xc08/0x1478 [ 47.105345][ T4020] ocfs2_xattr_security_set+0x4c/0x64 [ 47.106524][ T4020] __vfs_setxattr+0x388/0x3a4 [ 47.107700][ T4020] __vfs_setxattr_noperm+0x110/0x528 [ 47.108912][ T4020] __vfs_setxattr_locked+0x1ec/0x218 [ 47.110246][ T4020] vfs_setxattr+0x1a8/0x344 [ 47.111313][ T4020] setxattr+0x250/0x2b4 [ 47.112299][ T4020] path_setxattr+0x17c/0x258 [ 47.113294][ T4020] __arm64_sys_setxattr+0xbc/0xd8 [ 47.114565][ T4020] invoke_syscall+0x98/0x2b8 [ 47.115841][ T4020] el0_svc_common+0x138/0x258 [ 47.116993][ T4020] do_el0_svc+0x58/0x14c [ 47.118313][ T4020] el0_svc+0x7c/0x1f0 [ 47.119421][ T4020] el0t_64_sync_handler+0x84/0xe4 [ 47.120777][ T4020] el0t_64_sync+0x1a0/0x1a4 [ 47.121847][ T4020] [ 47.121847][ T4020] other info that might help us debug this: [ 47.121847][ T4020] [ 47.124014][ T4020] Chain exists of: [ 47.124014][ T4020] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 47.124014][ T4020] [ 47.127458][ T4020] Possible unsafe locking scenario: [ 47.127458][ T4020] [ 47.129045][ T4020] CPU0 CPU1 [ 47.130198][ T4020] ---- ---- [ 47.131425][ T4020] lock(&oi->ip_xattr_sem); [ 47.132332][ T4020] lock(jbd2_handle); [ 47.133738][ T4020] lock(&oi->ip_xattr_sem); [ 47.135225][ T4020] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 47.136879][ T4020] [ 47.136879][ T4020] *** DEADLOCK *** [ 47.136879][ T4020] [ 47.138593][ T4020] 3 locks held by syz-executor498/4020: [ 47.139834][ T4020] #0: ffff0000cd1a2460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 47.141822][ T4020] #1: ffff0000e209c2c8 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 47.144020][ T4020] #2: ffff0000e209bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 47.146180][ T4020] [ 47.146180][ T4020] stack backtrace: [ 47.147364][ T4020] CPU: 0 PID: 4020 Comm: syz-executor498 Not tainted 5.15.173-syzkaller #0 [ 47.149136][ T4020] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 47.151167][ T4020] Call trace: [ 47.151811][ T4020] dump_backtrace+0x0/0x530 [ 47.152831][ T4020] show_stack+0x2c/0x3c [ 47.153775][ T4020] dump_stack_lvl+0x108/0x170 [ 47.154783][ T4020] dump_stack+0x1c/0x58 [ 47.155653][ T4020] print_circular_bug+0x150/0x1b8 [ 47.156771][ T4020] check_noncircular+0x2cc/0x378 [ 47.157850][ T4020] __lock_acquire+0x32d4/0x7638 [ 47.158971][ T4020] lock_acquire+0x240/0x77c [ 47.159918][ T4020] down_write+0xbc/0x12c [ 47.160791][ T4020] ocfs2_reserve_suballoc_bits+0x164/0x416c [ 47.162125][ T4020] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 47.163646][ T4020] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 47.164953][ T4020] ocfs2_xattr_set+0xc08/0x1478 [ 47.166061][ T4020] ocfs2_xattr_security_set+0x4c/0x64 [ 47.167129][ T4020] __vfs_setxattr+0x388/0x3a4 [ 47.168073][ T4020] __vfs_setxattr_noperm+0x110/0x528 [ 47.169180][ T4020] __vfs_setxattr_locked+0x1ec/0x218 [ 47.170310][ T4020] vfs_setxattr+0x1a8/0x344 [ 47.171220][ T4020] setxattr+0x250/0x2b4 [ 47.172116][ T4020] path_setxattr+0x17c/0x258 [ 47.173052][ T4020] __arm64_sys_setxattr+0xbc/0xd8 [ 47.174092][ T4020] invoke_syscall+0x98/0x2b8 [ 47.175007][ T4020] el0_svc_common+0x138/0x258 [ 47.175942][ T4020] do_el0_svc+0x58/0x14c [ 47.176921][ T4020] el0_svc+0x7c/0x1f0 [