Warning: Permanently added '10.128.0.139' (ED25519) to the list of known hosts. executing program [ 39.879942][ T4018] loop0: detected capacity change from 0 to 32768 [ 39.914408][ T4018] ======================================================= [ 39.914408][ T4018] WARNING: The mand mount option has been deprecated and [ 39.914408][ T4018] and is ignored by this kernel. Remove the mand [ 39.914408][ T4018] option from the mount to silence this warning. [ 39.914408][ T4018] ======================================================= [ 39.964742][ T4018] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 39.972745][ T4018] [ 39.973246][ T4018] ====================================================== [ 39.974563][ T4018] WARNING: possible circular locking dependency detected [ 39.975894][ T4018] 5.15.168-syzkaller #0 Not tainted [ 39.976977][ T4018] ------------------------------------------------------ [ 39.978379][ T4018] syz-executor343/4018 is trying to acquire lock: [ 39.979576][ T4018] ffff0000e2026d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x164/0x416c [ 39.982234][ T4018] [ 39.982234][ T4018] but task is already holding lock: [ 39.983870][ T4018] ffff0000e202bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 39.985947][ T4018] [ 39.985947][ T4018] which lock already depends on the new lock. [ 39.985947][ T4018] [ 39.988155][ T4018] [ 39.988155][ T4018] the existing dependency chain (in reverse order) is: [ 39.990055][ T4018] [ 39.990055][ T4018] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 39.991726][ T4018] down_read+0xc0/0x398 [ 39.992626][ T4018] ocfs2_init_acl+0x2d0/0x778 [ 39.993879][ T4018] ocfs2_mknod+0x1558/0x24f8 [ 39.994932][ T4018] ocfs2_create+0x184/0x4c8 [ 39.995999][ T4018] path_openat+0xf18/0x26cc [ 39.997032][ T4018] do_filp_open+0x1a8/0x3b4 [ 39.997993][ T4018] do_sys_openat2+0x128/0x3e0 [ 39.999033][ T4018] __arm64_sys_openat+0x1f0/0x240 [ 40.000190][ T4018] invoke_syscall+0x98/0x2b8 [ 40.001326][ T4018] el0_svc_common+0x138/0x258 [ 40.002340][ T4018] do_el0_svc+0x58/0x14c [ 40.003279][ T4018] el0_svc+0x7c/0x1f0 [ 40.004255][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 40.005503][ T4018] el0t_64_sync+0x1a0/0x1a4 [ 40.006552][ T4018] [ 40.006552][ T4018] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 40.008320][ T4018] start_this_handle+0xfc0/0x12a4 [ 40.009509][ T4018] jbd2__journal_start+0x29c/0x7b4 [ 40.010745][ T4018] jbd2_journal_start+0x3c/0x4c [ 40.011904][ T4018] ocfs2_start_trans+0x468/0x804 [ 40.013170][ T4018] ocfs2_mknod+0xe68/0x24f8 [ 40.014235][ T4018] ocfs2_create+0x184/0x4c8 [ 40.015260][ T4018] path_openat+0xf18/0x26cc [ 40.016338][ T4018] do_filp_open+0x1a8/0x3b4 [ 40.017444][ T4018] do_sys_openat2+0x128/0x3e0 [ 40.018494][ T4018] __arm64_sys_openat+0x1f0/0x240 [ 40.019618][ T4018] invoke_syscall+0x98/0x2b8 [ 40.020682][ T4018] el0_svc_common+0x138/0x258 [ 40.021864][ T4018] do_el0_svc+0x58/0x14c [ 40.022855][ T4018] el0_svc+0x7c/0x1f0 [ 40.023851][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 40.025000][ T4018] el0t_64_sync+0x1a0/0x1a4 [ 40.026107][ T4018] [ 40.026107][ T4018] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 40.028142][ T4018] down_read+0xc0/0x398 [ 40.029146][ T4018] ocfs2_start_trans+0x45c/0x804 [ 40.030339][ T4018] ocfs2_mknod+0xe68/0x24f8 [ 40.031370][ T4018] ocfs2_create+0x184/0x4c8 [ 40.032384][ T4018] path_openat+0xf18/0x26cc [ 40.033426][ T4018] do_filp_open+0x1a8/0x3b4 [ 40.034515][ T4018] do_sys_openat2+0x128/0x3e0 [ 40.035666][ T4018] __arm64_sys_openat+0x1f0/0x240 [ 40.036904][ T4018] invoke_syscall+0x98/0x2b8 [ 40.038041][ T4018] el0_svc_common+0x138/0x258 [ 40.039057][ T4018] do_el0_svc+0x58/0x14c [ 40.040129][ T4018] el0_svc+0x7c/0x1f0 [ 40.041064][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 40.042258][ T4018] el0t_64_sync+0x1a0/0x1a4 [ 40.043290][ T4018] [ 40.043290][ T4018] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 40.044948][ T4018] ocfs2_start_trans+0x2dc/0x804 [ 40.046067][ T4018] ocfs2_mknod+0xe68/0x24f8 [ 40.047133][ T4018] ocfs2_create+0x184/0x4c8 [ 40.048286][ T4018] path_openat+0xf18/0x26cc [ 40.049440][ T4018] do_filp_open+0x1a8/0x3b4 [ 40.050525][ T4018] do_sys_openat2+0x128/0x3e0 [ 40.051604][ T4018] __arm64_sys_openat+0x1f0/0x240 [ 40.052825][ T4018] invoke_syscall+0x98/0x2b8 [ 40.053874][ T4018] el0_svc_common+0x138/0x258 [ 40.055026][ T4018] do_el0_svc+0x58/0x14c [ 40.056151][ T4018] el0_svc+0x7c/0x1f0 [ 40.057114][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 40.058313][ T4018] el0t_64_sync+0x1a0/0x1a4 [ 40.059265][ T4018] [ 40.059265][ T4018] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 40.061509][ T4018] down_write+0xbc/0x12c [ 40.062530][ T4018] ocfs2_reserve_local_alloc_bits+0xfc/0x2474 [ 40.063923][ T4018] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 40.065378][ T4018] ocfs2_reserve_clusters+0x3c/0x50 [ 40.066554][ T4018] ocfs2_mknod+0xe08/0x24f8 [ 40.067703][ T4018] ocfs2_create+0x184/0x4c8 [ 40.068889][ T4018] path_openat+0xf18/0x26cc [ 40.070168][ T4018] do_filp_open+0x1a8/0x3b4 [ 40.071355][ T4018] do_sys_openat2+0x128/0x3e0 [ 40.072607][ T4018] __arm64_sys_openat+0x1f0/0x240 [ 40.073948][ T4018] invoke_syscall+0x98/0x2b8 [ 40.075091][ T4018] el0_svc_common+0x138/0x258 [ 40.076269][ T4018] do_el0_svc+0x58/0x14c [ 40.077306][ T4018] el0_svc+0x7c/0x1f0 [ 40.078306][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 40.079393][ T4018] el0t_64_sync+0x1a0/0x1a4 [ 40.080516][ T4018] [ 40.080516][ T4018] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 40.082692][ T4018] __lock_acquire+0x32d4/0x7638 [ 40.083960][ T4018] lock_acquire+0x240/0x77c [ 40.085035][ T4018] down_write+0xbc/0x12c [ 40.086112][ T4018] ocfs2_reserve_suballoc_bits+0x164/0x416c [ 40.087448][ T4018] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 40.088922][ T4018] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 40.090173][ T4018] ocfs2_xattr_set+0xc08/0x1478 [ 40.091363][ T4018] ocfs2_xattr_trusted_set+0x4c/0x64 [ 40.092629][ T4018] __vfs_setxattr+0x388/0x3a4 [ 40.093679][ T4018] __vfs_setxattr_noperm+0x110/0x528 [ 40.094883][ T4018] __vfs_setxattr_locked+0x1ec/0x218 [ 40.096134][ T4018] vfs_setxattr+0x1a8/0x344 [ 40.097209][ T4018] setxattr+0x250/0x2b4 [ 40.098204][ T4018] path_setxattr+0x17c/0x258 [ 40.099308][ T4018] __arm64_sys_lsetxattr+0xbc/0xd8 [ 40.100498][ T4018] invoke_syscall+0x98/0x2b8 [ 40.101586][ T4018] el0_svc_common+0x138/0x258 [ 40.102808][ T4018] do_el0_svc+0x58/0x14c [ 40.103902][ T4018] el0_svc+0x7c/0x1f0 [ 40.104976][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 40.106160][ T4018] el0t_64_sync+0x1a0/0x1a4 [ 40.107314][ T4018] [ 40.107314][ T4018] other info that might help us debug this: [ 40.107314][ T4018] [ 40.109431][ T4018] Chain exists of: [ 40.109431][ T4018] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 40.109431][ T4018] [ 40.112995][ T4018] Possible unsafe locking scenario: [ 40.112995][ T4018] [ 40.114624][ T4018] CPU0 CPU1 [ 40.115712][ T4018] ---- ---- [ 40.116846][ T4018] lock(&oi->ip_xattr_sem); [ 40.117814][ T4018] lock(jbd2_handle); [ 40.119142][ T4018] lock(&oi->ip_xattr_sem); [ 40.120659][ T4018] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 40.122350][ T4018] [ 40.122350][ T4018] *** DEADLOCK *** [ 40.122350][ T4018] [ 40.124064][ T4018] 3 locks held by syz-executor343/4018: [ 40.125291][ T4018] #0: ffff0000cbd6c460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 40.127341][ T4018] #1: ffff0000e202c2c8 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 40.129573][ T4018] #2: ffff0000e202bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 40.131619][ T4018] [ 40.131619][ T4018] stack backtrace: [ 40.132988][ T4018] CPU: 1 PID: 4018 Comm: syz-executor343 Not tainted 5.15.168-syzkaller #0 [ 40.134892][ T4018] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 40.137117][ T4018] Call trace: [ 40.137784][ T4018] dump_backtrace+0x0/0x530 [ 40.138858][ T4018] show_stack+0x2c/0x3c [ 40.139763][ T4018] dump_stack_lvl+0x108/0x170 [ 40.140800][ T4018] dump_stack+0x1c/0x58 [ 40.141712][ T4018] print_circular_bug+0x150/0x1b8 [ 40.142886][ T4018] check_noncircular+0x2cc/0x378 [ 40.143910][ T4018] __lock_acquire+0x32d4/0x7638 [ 40.145031][ T4018] lock_acquire+0x240/0x77c [ 40.146008][ T4018] down_write+0xbc/0x12c [ 40.146932][ T4018] ocfs2_reserve_suballoc_bits+0x164/0x416c [ 40.148248][ T4018] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 40.149697][ T4018] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 40.150887][ T4018] ocfs2_xattr_set+0xc08/0x1478 [ 40.151926][ T4018] ocfs2_xattr_trusted_set+0x4c/0x64 [ 40.153107][ T4018] __vfs_setxattr+0x388/0x3a4 [ 40.154201][ T4018] __vfs_setxattr_noperm+0x110/0x528 [ 40.155235][ T4018] __vfs_setxattr_locked+0x1ec/0x218 [ 40.156351][ T4018] vfs_setxattr+0x1a8/0x344 [ 40.157368][ T4018] setxattr+0x250/0x2b4 [ 40.158390][ T4018] path_setxattr+0x17c/0x258 [ 40.159414][ T4018] __arm64_sys_lsetxattr+0xbc/0xd8 [ 40.160511][ T4018] invoke_syscall+0x98/0x2b8 [ 40.161518][ T4018] el0_svc_common+0x138/0x258 [ 40.162452][ T4018] do_el0_svc+0x58/0x14c [ 40.163345][ T4018] el0_svc+0x7c/0x1f0 [ 40.164216][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 40.165343][ T4018] el0t_64_sync+0x1a0/0x1a4