Warning: Permanently added '10.128.0.145' (ED25519) to the list of known hosts. executing program [ 61.179431][ T4162] loop0: detected capacity change from 0 to 32768 [ 61.279110][ T4162] JBD2: Ignoring recovery information on journal [ 61.313526][ T4162] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 61.331713][ T4162] [ 61.334060][ T4162] ====================================================== [ 61.341061][ T4162] WARNING: possible circular locking dependency detected [ 61.348059][ T4162] 5.15.175-syzkaller #0 Not tainted [ 61.353234][ T4162] ------------------------------------------------------ [ 61.360229][ T4162] syz-executor236/4162 is trying to acquire lock: [ 61.366618][ T4162] ffff88807450ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 61.379854][ T4162] [ 61.379854][ T4162] but task is already holding lock: [ 61.387197][ T4162] ffff888074513ff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 61.396662][ T4162] [ 61.396662][ T4162] which lock already depends on the new lock. [ 61.396662][ T4162] [ 61.407038][ T4162] [ 61.407038][ T4162] the existing dependency chain (in reverse order) is: [ 61.416026][ T4162] [ 61.416026][ T4162] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 61.423823][ T4162] lock_acquire+0x1db/0x4f0 [ 61.428849][ T4162] down_read+0x45/0x2e0 [ 61.433540][ T4162] ocfs2_init_acl+0x398/0x930 [ 61.438723][ T4162] ocfs2_mknod+0x1e8f/0x2cd0 [ 61.443817][ T4162] ocfs2_create+0x194/0x430 [ 61.448819][ T4162] path_openat+0x130a/0x2f20 [ 61.453912][ T4162] do_filp_open+0x21c/0x460 [ 61.458917][ T4162] do_sys_openat2+0x13b/0x4f0 [ 61.464098][ T4162] __x64_sys_openat+0x243/0x290 [ 61.469452][ T4162] do_syscall_64+0x3b/0xb0 [ 61.474375][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 61.480778][ T4162] [ 61.480778][ T4162] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 61.488067][ T4162] lock_acquire+0x1db/0x4f0 [ 61.493072][ T4162] start_this_handle+0x12e1/0x1570 [ 61.498684][ T4162] jbd2__journal_start+0x2d1/0x5c0 [ 61.504301][ T4162] jbd2_journal_start+0x25/0x30 [ 61.509695][ T4162] ocfs2_start_trans+0x3c2/0x6f0 [ 61.515141][ T4162] ocfs2_mknod+0x15bb/0x2cd0 [ 61.520236][ T4162] ocfs2_create+0x194/0x430 [ 61.525242][ T4162] path_openat+0x130a/0x2f20 [ 61.530352][ T4162] do_filp_open+0x21c/0x460 [ 61.535386][ T4162] do_sys_openat2+0x13b/0x4f0 [ 61.540570][ T4162] __x64_sys_openat+0x243/0x290 [ 61.545925][ T4162] do_syscall_64+0x3b/0xb0 [ 61.550846][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 61.557246][ T4162] [ 61.557246][ T4162] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 61.565760][ T4162] lock_acquire+0x1db/0x4f0 [ 61.570767][ T4162] down_read+0x45/0x2e0 [ 61.575426][ T4162] ocfs2_start_trans+0x3b7/0x6f0 [ 61.580870][ T4162] ocfs2_mknod+0x15bb/0x2cd0 [ 61.585964][ T4162] ocfs2_create+0x194/0x430 [ 61.590971][ T4162] path_openat+0x130a/0x2f20 [ 61.596063][ T4162] do_filp_open+0x21c/0x460 [ 61.601067][ T4162] do_sys_openat2+0x13b/0x4f0 [ 61.606265][ T4162] __x64_sys_openat+0x243/0x290 [ 61.611619][ T4162] do_syscall_64+0x3b/0xb0 [ 61.616568][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 61.622983][ T4162] [ 61.622983][ T4162] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 61.630447][ T4162] lock_acquire+0x1db/0x4f0 [ 61.635474][ T4162] ocfs2_start_trans+0x2b2/0x6f0 [ 61.640947][ T4162] ocfs2_mknod+0x15bb/0x2cd0 [ 61.646040][ T4162] ocfs2_create+0x194/0x430 [ 61.651046][ T4162] path_openat+0x130a/0x2f20 [ 61.656137][ T4162] do_filp_open+0x21c/0x460 [ 61.661144][ T4162] do_sys_openat2+0x13b/0x4f0 [ 61.666327][ T4162] __x64_sys_openat+0x243/0x290 [ 61.671683][ T4162] do_syscall_64+0x3b/0xb0 [ 61.676775][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 61.683175][ T4162] [ 61.683175][ T4162] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 61.693673][ T4162] lock_acquire+0x1db/0x4f0 [ 61.698721][ T4162] down_write+0x38/0x60 [ 61.703402][ T4162] ocfs2_reserve_local_alloc_bits+0x12e/0x27a0 [ 61.710094][ T4162] ocfs2_reserve_clusters_with_limit+0x1b4/0xb50 [ 61.716939][ T4162] ocfs2_mknod+0x1535/0x2cd0 [ 61.722077][ T4162] ocfs2_create+0x194/0x430 [ 61.727119][ T4162] path_openat+0x130a/0x2f20 [ 61.732227][ T4162] do_filp_open+0x21c/0x460 [ 61.737246][ T4162] do_sys_openat2+0x13b/0x4f0 [ 61.742432][ T4162] __x64_sys_openat+0x243/0x290 [ 61.747795][ T4162] do_syscall_64+0x3b/0xb0 [ 61.752719][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 61.759121][ T4162] [ 61.759121][ T4162] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 61.769725][ T4162] validate_chain+0x1649/0x5930 [ 61.775096][ T4162] __lock_acquire+0x1295/0x1ff0 [ 61.780463][ T4162] lock_acquire+0x1db/0x4f0 [ 61.785473][ T4162] down_write+0x38/0x60 [ 61.790135][ T4162] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 61.796534][ T4162] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 61.803369][ T4162] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 61.809505][ T4162] ocfs2_xattr_set+0xf46/0x1930 [ 61.814862][ T4162] __vfs_setxattr+0x3e7/0x420 [ 61.820042][ T4162] __vfs_setxattr_noperm+0x12a/0x5e0 [ 61.825835][ T4162] vfs_setxattr+0x21d/0x420 [ 61.830842][ T4162] setxattr+0x27e/0x2e0 [ 61.835503][ T4162] path_setxattr+0x1bc/0x2a0 [ 61.840601][ T4162] __x64_sys_lsetxattr+0xb4/0xd0 [ 61.846043][ T4162] do_syscall_64+0x3b/0xb0 [ 61.850964][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 61.857384][ T4162] [ 61.857384][ T4162] other info that might help us debug this: [ 61.857384][ T4162] [ 61.867608][ T4162] Chain exists of: [ 61.867608][ T4162] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 61.867608][ T4162] [ 61.883670][ T4162] Possible unsafe locking scenario: [ 61.883670][ T4162] [ 61.891100][ T4162] CPU0 CPU1 [ 61.896450][ T4162] ---- ---- [ 61.901796][ T4162] lock(&oi->ip_xattr_sem); [ 61.906367][ T4162] lock(jbd2_handle); [ 61.912936][ T4162] lock(&oi->ip_xattr_sem); [ 61.920043][ T4162] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 61.927337][ T4162] [ 61.927337][ T4162] *** DEADLOCK *** [ 61.927337][ T4162] [ 61.935465][ T4162] 3 locks held by syz-executor236/4162: [ 61.941006][ T4162] #0: ffff88802a786460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 61.950144][ T4162] #1: ffff8880745142c8 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x1dd/0x420 [ 61.960573][ T4162] #2: ffff888074513ff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 61.970470][ T4162] [ 61.970470][ T4162] stack backtrace: [ 61.976350][ T4162] CPU: 0 PID: 4162 Comm: syz-executor236 Not tainted 5.15.175-syzkaller #0 [ 61.984934][ T4162] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 61.994994][ T4162] Call Trace: [ 61.998275][ T4162] [ 62.001208][ T4162] dump_stack_lvl+0x1e3/0x2d0 [ 62.005884][ T4162] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 62.011507][ T4162] ? print_circular_bug+0x12b/0x1a0 [ 62.016692][ T4162] check_noncircular+0x2f8/0x3b0 [ 62.021618][ T4162] ? add_chain_block+0x850/0x850 [ 62.026538][ T4162] ? lockdep_lock+0x11f/0x2a0 [ 62.031202][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 62.036210][ T4162] validate_chain+0x1649/0x5930 [ 62.041072][ T4162] ? mark_lock+0x98/0x340 [ 62.045392][ T4162] ? reacquire_held_locks+0x660/0x660 [ 62.050769][ T4162] ? ocfs2_get_system_file_inode+0x1e0/0x7b0 [ 62.056737][ T4162] ? __lock_acquire+0x1ff0/0x1ff0 [ 62.061766][ T4162] ? mark_lock+0x98/0x340 [ 62.066077][ T4162] __lock_acquire+0x1295/0x1ff0 [ 62.071031][ T4162] lock_acquire+0x1db/0x4f0 [ 62.075520][ T4162] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 62.081573][ T4162] ? read_lock_is_recursive+0x10/0x10 [ 62.086929][ T4162] ? __might_sleep+0xc0/0xc0 [ 62.091511][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 62.096527][ T4162] down_write+0x38/0x60 [ 62.100672][ T4162] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 62.106723][ T4162] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 62.112607][ T4162] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 62.118587][ T4162] ? print_irqtrace_events+0x210/0x210 [ 62.124027][ T4162] ? do_raw_spin_unlock+0x137/0x8b0 [ 62.129212][ T4162] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 62.135104][ T4162] ? lockdep_hardirqs_on+0x94/0x130 [ 62.140288][ T4162] ? ocfs2_block_group_search+0x490/0x490 [ 62.145995][ T4162] ? stack_trace_save+0x113/0x1c0 [ 62.151008][ T4162] ? stack_trace_snprint+0xe0/0xe0 [ 62.156105][ T4162] ? stack_depot_save+0x3db/0x440 [ 62.161129][ T4162] ? ____kasan_kmalloc+0xd1/0xf0 [ 62.166050][ T4162] ? ____kasan_kmalloc+0xba/0xf0 [ 62.170973][ T4162] ? kmem_cache_alloc_trace+0x143/0x290 [ 62.176504][ T4162] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 62.182991][ T4162] ? ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 62.188783][ T4162] ? ocfs2_xattr_set+0xf46/0x1930 [ 62.193807][ T4162] ? __vfs_setxattr+0x3e7/0x420 [ 62.198646][ T4162] ? __vfs_setxattr_noperm+0x12a/0x5e0 [ 62.204093][ T4162] ? vfs_setxattr+0x21d/0x420 [ 62.208759][ T4162] ? setxattr+0x27e/0x2e0 [ 62.213075][ T4162] ? path_setxattr+0x1bc/0x2a0 [ 62.217825][ T4162] ? __x64_sys_lsetxattr+0xb4/0xd0 [ 62.223068][ T4162] ? do_syscall_64+0x3b/0xb0 [ 62.227641][ T4162] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.233709][ T4162] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 62.240204][ T4162] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 62.246545][ T4162] ? ocfs2_init_steal_slots+0x150/0x150 [ 62.252094][ T4162] ? ocfs2_xattr_block_set+0x32a0/0x32a0 [ 62.257714][ T4162] ? ocfs2_xattr_set+0xef8/0x1930 [ 62.262741][ T4162] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 62.268358][ T4162] ? ocfs2_prepare_refcount_xattr+0x1220/0x1220 [ 62.274582][ T4162] ? up_write+0x19d/0x580 [ 62.278916][ T4162] ? ocfs2_remove_btree_range+0x18a0/0x18a0 [ 62.284791][ T4162] ? __up_read+0x690/0x690 [ 62.289193][ T4162] ? ocfs2_xattr_set+0x4d1/0x1930 [ 62.294204][ T4162] ocfs2_xattr_set+0xf46/0x1930 [ 62.299041][ T4162] ? __ocfs2_xattr_set_handle+0x1060/0x1060 [ 62.304930][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 62.309952][ T4162] ? aa_get_newest_label+0xf9/0x6c0 [ 62.315153][ T4162] ? posix_xattr_acl+0xa5/0xd0 [ 62.319904][ T4162] ? evm_protect_xattr+0x33b/0xa70 [ 62.325003][ T4162] ? ocfs2_xattr_trusted_get+0x40/0x40 [ 62.330444][ T4162] __vfs_setxattr+0x3e7/0x420 [ 62.335127][ T4162] __vfs_setxattr_noperm+0x12a/0x5e0 [ 62.340398][ T4162] vfs_setxattr+0x21d/0x420 [ 62.344894][ T4162] ? asm_exc_page_fault+0x22/0x30 [ 62.349907][ T4162] ? xattr_permission+0x4f0/0x4f0 [ 62.354928][ T4162] ? copy_user_enhanced_fast_string+0xe/0x40 [ 62.360926][ T4162] ? _copy_from_user+0x10f/0x170 [ 62.365862][ T4162] setxattr+0x27e/0x2e0 [ 62.370006][ T4162] ? path_setxattr+0x2a0/0x2a0 [ 62.374760][ T4162] ? preempt_count_add+0x8f/0x180 [ 62.379770][ T4162] ? __mnt_want_write+0x1e6/0x260 [ 62.384785][ T4162] path_setxattr+0x1bc/0x2a0 [ 62.389360][ T4162] ? simple_xattr_list_add+0xf0/0xf0 [ 62.394632][ T4162] ? syscall_enter_from_user_mode+0x2e/0x240 [ 62.400601][ T4162] __x64_sys_lsetxattr+0xb4/0xd0 [ 62.405527][ T4162] do_syscall_64+0x3b/0xb0 [ 62.409927][ T4162] ? clear_bhb_loop+0x15/0x70 [ 62.414601][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.420480][ T4162] RIP: 0033:0x7f15f30c4a79 [ 62.425144][ T4162] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 62.444848][ T4162] RSP: 002b:00007ffcc0457388 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd [ 62.453260][ T4162] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f15f30c4a79 [ 62.461220][ T4162] RDX: 0000000020000040 RSI: 00000000200000c0 RDI: 0000000020000100 [ 62.469177][ T4162] RBP: 00007f15f310d05e R08: 0000000000000000 R09: 0000000000000000 [ 62.477134][ T4162] R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000001 [ 62.485085][ T4162] R13: 00007ffcc0457568 R14: 0000000000000001 R15: 0000000000000001 [ 62.493044][ T4162] [ 62.502636][ T4162] OCFS2: ERROR (device loop0): int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *, handle_t *, u32, u32, struct ocfs2_suballoc_result *): Chain allocator dinode 23 has 4294967295 used bits but only 16777215 total [ 62.524010][ T4162] On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. [ 62.533830][ T4162] OCFS2: File system is now read-only. [ 62.539392][ T4162] (syz-executor236,4162,1):ocfs2_claim_suballoc_bits:1983 ERROR: status = -30 [ 62.548288][ T4162] (syz-executor236,4162,1):__ocfs2_claim_clusters:2355 ERROR: status = -30 [ 62.556916][ T4162] (syz-executor236,4162,1):__ocfs2_claim_clusters:2363 ERROR: status = -30 [ 62.565523][ T4162] (syz-executor236,4162,1):ocfs2_block_group_alloc_contig:433 ERROR: status = -30 [ 62.574744][ T4162] (syz-executor236,4162,1):ocfs2_block_group_alloc:705 ERROR: status = -30 [ 62.583423][ T4162] (syz-executor236,4162,1):ocfs2_block_group_alloc:758 ERROR: status = -30 [ 62.592050][ T4162] (syz-executor236,4162,1):ocfs2_reserve_suballoc_bits:833 ERROR: status = -30 [ 62.601008][ T4162] (syz-executor236,4162,1):ocfs2_reserve_suballoc_bits:850 ERROR: status = -30 [ 62.609993][ T4162] (syz-executor236,4162,1):ocfs2_reserve_new_metadata_blocks:990 ERROR: status = -30 [ 62.619489][ T4162] (syz-executor236,4162,1):ocfs2_reserve_new_metadata_blocks:1013 ERROR: status = -30 [ 62.629093][ T4162] (syz-executor236,4162,1):ocfs2_init_xattr_set_ctxt:3284 ERROR: status = -30