Warning: Permanently added '10.128.1.32' (ED25519) to the list of known hosts. executing program [ 43.013797][ T4023] loop0: detected capacity change from 0 to 32768 [ 43.114520][ T4023] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 43.122428][ T4023] [ 43.123090][ T4023] ====================================================== [ 43.124962][ T4023] WARNING: possible circular locking dependency detected [ 43.126866][ T4023] 5.15.184-syzkaller #0 Not tainted [ 43.128256][ T4023] ------------------------------------------------------ [ 43.130141][ T4023] syz-executor135/4023 is trying to acquire lock: [ 43.131856][ T4023] ffff0000dfbe6d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x12c/0x3a68 [ 43.135450][ T4023] [ 43.135450][ T4023] but task is already holding lock: [ 43.137455][ T4023] ffff0000dfbe06f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x328/0xea8 [ 43.140013][ T4023] [ 43.140013][ T4023] which lock already depends on the new lock. [ 43.140013][ T4023] [ 43.142827][ T4023] [ 43.142827][ T4023] the existing dependency chain (in reverse order) is: [ 43.145299][ T4023] [ 43.145299][ T4023] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 43.147472][ T4023] down_read+0xc0/0x390 [ 43.148689][ T4023] ocfs2_init_acl+0x260/0x604 [ 43.150071][ T4023] ocfs2_mknod+0x114c/0x1e88 [ 43.151463][ T4023] ocfs2_create+0x180/0x468 [ 43.152812][ T4023] path_openat+0x1144/0x26e4 [ 43.154170][ T4023] do_filp_open+0x164/0x330 [ 43.155538][ T4023] do_sys_openat2+0x128/0x3d8 [ 43.156917][ T4023] __arm64_sys_openat+0x120/0x154 [ 43.158426][ T4023] invoke_syscall+0x98/0x2b8 [ 43.159801][ T4023] el0_svc_common+0x138/0x258 [ 43.161292][ T4023] do_el0_svc+0x58/0x14c [ 43.162540][ T4023] el0_svc+0x78/0x1e0 [ 43.163703][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 43.165186][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 43.166517][ T4023] [ 43.166517][ T4023] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 43.168532][ T4023] start_this_handle+0xef4/0x11a4 [ 43.170021][ T4023] jbd2__journal_start+0x28c/0x744 [ 43.171548][ T4023] jbd2_journal_start+0x3c/0x4c [ 43.173002][ T4023] ocfs2_start_trans+0x43c/0x794 [ 43.174489][ T4023] ocfs2_mknod+0xc60/0x1e88 [ 43.175808][ T4023] ocfs2_create+0x180/0x468 [ 43.177125][ T4023] path_openat+0x1144/0x26e4 [ 43.178509][ T4023] do_filp_open+0x164/0x330 [ 43.179857][ T4023] do_sys_openat2+0x128/0x3d8 [ 43.181234][ T4023] __arm64_sys_openat+0x120/0x154 [ 43.182697][ T4023] invoke_syscall+0x98/0x2b8 [ 43.184065][ T4023] el0_svc_common+0x138/0x258 [ 43.185472][ T4023] do_el0_svc+0x58/0x14c [ 43.186702][ T4023] el0_svc+0x78/0x1e0 [ 43.187876][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 43.189334][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 43.190669][ T4023] [ 43.190669][ T4023] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 43.192921][ T4023] down_read+0xc0/0x390 [ 43.194189][ T4023] ocfs2_start_trans+0x430/0x794 [ 43.195659][ T4023] ocfs2_mknod+0xc60/0x1e88 [ 43.196975][ T4023] ocfs2_create+0x180/0x468 [ 43.198301][ T4023] path_openat+0x1144/0x26e4 [ 43.199661][ T4023] do_filp_open+0x164/0x330 [ 43.201011][ T4023] do_sys_openat2+0x128/0x3d8 [ 43.202403][ T4023] __arm64_sys_openat+0x120/0x154 [ 43.203856][ T4023] invoke_syscall+0x98/0x2b8 [ 43.205189][ T4023] el0_svc_common+0x138/0x258 [ 43.206560][ T4023] do_el0_svc+0x58/0x14c [ 43.207806][ T4023] el0_svc+0x78/0x1e0 [ 43.208976][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 43.210505][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 43.211861][ T4023] [ 43.211861][ T4023] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 43.213931][ T4023] ocfs2_start_trans+0x2c4/0x794 [ 43.215384][ T4023] ocfs2_mknod+0xc60/0x1e88 [ 43.216705][ T4023] ocfs2_create+0x180/0x468 [ 43.218103][ T4023] path_openat+0x1144/0x26e4 [ 43.219480][ T4023] do_filp_open+0x164/0x330 [ 43.220873][ T4023] do_sys_openat2+0x128/0x3d8 [ 43.222269][ T4023] __arm64_sys_openat+0x120/0x154 [ 43.223738][ T4023] invoke_syscall+0x98/0x2b8 [ 43.225120][ T4023] el0_svc_common+0x138/0x258 [ 43.226483][ T4023] do_el0_svc+0x58/0x14c [ 43.227784][ T4023] el0_svc+0x78/0x1e0 [ 43.228977][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 43.230399][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 43.231743][ T4023] [ 43.231743][ T4023] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 43.234623][ T4023] down_write+0xbc/0x12c [ 43.235903][ T4023] ocfs2_reserve_local_alloc_bits+0xf8/0x260c [ 43.237665][ T4023] ocfs2_reserve_clusters_with_limit+0x198/0x9e0 [ 43.239541][ T4023] ocfs2_reserve_clusters+0x3c/0x50 [ 43.241015][ T4023] ocfs2_mknod+0xc10/0x1e88 [ 43.242378][ T4023] ocfs2_create+0x180/0x468 [ 43.243695][ T4023] path_openat+0x1144/0x26e4 [ 43.245062][ T4023] do_filp_open+0x164/0x330 [ 43.246406][ T4023] do_sys_openat2+0x128/0x3d8 [ 43.247767][ T4023] __arm64_sys_openat+0x120/0x154 [ 43.249287][ T4023] invoke_syscall+0x98/0x2b8 [ 43.250619][ T4023] el0_svc_common+0x138/0x258 [ 43.252002][ T4023] do_el0_svc+0x58/0x14c [ 43.253276][ T4023] el0_svc+0x78/0x1e0 [ 43.254494][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 43.255934][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 43.257289][ T4023] [ 43.257289][ T4023] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 43.260056][ T4023] __lock_acquire+0x2928/0x651c [ 43.261526][ T4023] lock_acquire+0x1f4/0x620 [ 43.262870][ T4023] down_write+0xbc/0x12c [ 43.264155][ T4023] ocfs2_reserve_suballoc_bits+0x12c/0x3a68 [ 43.265910][ T4023] ocfs2_reserve_new_metadata_blocks+0x34c/0x7d8 [ 43.267745][ T4023] ocfs2_init_xattr_set_ctxt+0x2f8/0x750 [ 43.269357][ T4023] ocfs2_xattr_set+0x928/0xea8 [ 43.270736][ T4023] ocfs2_set_acl+0x3ec/0x4a0 [ 43.272057][ T4023] ocfs2_iop_set_acl+0x174/0x240 [ 43.273579][ T4023] posix_acl_xattr_set+0x2cc/0x378 [ 43.275097][ T4023] __vfs_setxattr+0x388/0x3a4 [ 43.276470][ T4023] __vfs_setxattr_noperm+0x120/0x564 [ 43.278003][ T4023] __vfs_setxattr_locked+0x1ec/0x218 [ 43.279594][ T4023] vfs_setxattr+0x158/0x2ac [ 43.280994][ T4023] setxattr+0x248/0x2ac [ 43.282203][ T4023] __arm64_sys_fsetxattr+0x1a8/0x224 [ 43.283785][ T4023] invoke_syscall+0x98/0x2b8 [ 43.285144][ T4023] el0_svc_common+0x138/0x258 [ 43.286540][ T4023] do_el0_svc+0x58/0x14c [ 43.287793][ T4023] el0_svc+0x78/0x1e0 [ 43.288994][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 43.290497][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 43.291851][ T4023] [ 43.291851][ T4023] other info that might help us debug this: [ 43.291851][ T4023] [ 43.294541][ T4023] Chain exists of: [ 43.294541][ T4023] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 43.294541][ T4023] [ 43.298930][ T4023] Possible unsafe locking scenario: [ 43.298930][ T4023] [ 43.301011][ T4023] CPU0 CPU1 [ 43.302483][ T4023] ---- ---- [ 43.303898][ T4023] lock(&oi->ip_xattr_sem); [ 43.305142][ T4023] lock(jbd2_handle); [ 43.306935][ T4023] lock(&oi->ip_xattr_sem); [ 43.308834][ T4023] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 43.310829][ T4023] [ 43.310829][ T4023] *** DEADLOCK *** [ 43.310829][ T4023] [ 43.313045][ T4023] 3 locks held by syz-executor135/4023: [ 43.314467][ T4023] #0: ffff0000c1cee460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 43.317110][ T4023] #1: ffff0000dfbe09c8 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac [ 43.319912][ T4023] #2: ffff0000dfbe06f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x328/0xea8 [ 43.322686][ T4023] [ 43.322686][ T4023] stack backtrace: [ 43.324251][ T4023] CPU: 0 PID: 4023 Comm: syz-executor135 Not tainted 5.15.184-syzkaller #0 [ 43.326562][ T4023] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 43.329272][ T4023] Call trace: [ 43.330100][ T4023] dump_backtrace+0x0/0x43c [ 43.331299][ T4023] show_stack+0x2c/0x3c [ 43.332453][ T4023] __dump_stack+0x30/0x40 [ 43.333604][ T4023] dump_stack_lvl+0xf8/0x160 [ 43.334804][ T4023] dump_stack+0x1c/0x5c [ 43.335898][ T4023] print_circular_bug+0x148/0x1b0 [ 43.337312][ T4023] check_noncircular+0x240/0x2d4 [ 43.338709][ T4023] __lock_acquire+0x2928/0x651c [ 43.339980][ T4023] lock_acquire+0x1f4/0x620 [ 43.341258][ T4023] down_write+0xbc/0x12c [ 43.342351][ T4023] ocfs2_reserve_suballoc_bits+0x12c/0x3a68 [ 43.343952][ T4023] ocfs2_reserve_new_metadata_blocks+0x34c/0x7d8 [ 43.345619][ T4023] ocfs2_init_xattr_set_ctxt+0x2f8/0x750 [ 43.347102][ T4023] ocfs2_xattr_set+0x928/0xea8 [ 43.348369][ T4023] ocfs2_set_acl+0x3ec/0x4a0 [ 43.349627][ T4023] ocfs2_iop_set_acl+0x174/0x240 [ 43.350889][ T4023] posix_acl_xattr_set+0x2cc/0x378 [ 43.352247][ T4023] __vfs_setxattr+0x388/0x3a4 [ 43.353450][ T4023] __vfs_setxattr_noperm+0x120/0x564 [ 43.354835][ T4023] __vfs_setxattr_locked+0x1ec/0x218 [ 43.356261][ T4023] vfs_setxattr+0x158/0x2ac [ 43.357413][ T4023] setxattr+0x248/0x2ac [ 43.358478][ T4023] __arm64_sys_fsetxattr+0x1a8/0x224 [ 43.359908][ T4023] invoke_syscall+0x98/0x2b8 [ 43.361128][ T4023] el0_svc_common+0x138/0x258 [ 43.362370][ T4023] do_el0_svc+0x58/0x14c [ 43.363476][ T4023] el0_svc+0x78/0x1e0 [ 43.364509][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 43.365831][ T4023] el0t_64_sync+0x1a0/0x1a4