Warning: Permanently added '10.128.0.86' (ED25519) to the list of known hosts. executing program [ 62.230018][ T4166] loop0: detected capacity change from 0 to 32768 [ 62.355761][ T4166] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 62.372833][ T4166] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 62.408323][ T4166] [ 62.410695][ T4166] ====================================================== [ 62.417718][ T4166] WARNING: possible circular locking dependency detected [ 62.424841][ T4166] 5.15.182-syzkaller #0 Not tainted [ 62.430137][ T4166] ------------------------------------------------------ [ 62.437317][ T4166] syz-executor160/4166 is trying to acquire lock: [ 62.443738][ T4166] ffff88806f5209c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 62.457594][ T4166] [ 62.457594][ T4166] but task is already holding lock: [ 62.464976][ T4166] ffff88806f521538 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x40c/0x11e0 [ 62.474737][ T4166] [ 62.474737][ T4166] which lock already depends on the new lock. [ 62.474737][ T4166] [ 62.485157][ T4166] [ 62.485157][ T4166] the existing dependency chain (in reverse order) is: [ 62.494158][ T4166] [ 62.494158][ T4166] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 62.502052][ T4166] down_read+0x44/0x2e0 [ 62.506764][ T4166] ocfs2_init_acl+0x2fb/0x720 [ 62.512108][ T4166] ocfs2_mknod+0x142f/0x22b0 [ 62.517310][ T4166] ocfs2_mkdir+0x192/0x410 [ 62.522247][ T4166] vfs_mkdir+0x387/0x570 [ 62.527012][ T4166] do_mkdirat+0x1d7/0x5a0 [ 62.531865][ T4166] __x64_sys_mkdir+0x6a/0x80 [ 62.536975][ T4166] do_syscall_64+0x4c/0xa0 [ 62.541904][ T4166] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.548417][ T4166] [ 62.548417][ T4166] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 62.555699][ T4166] start_this_handle+0x1338/0x15a0 [ 62.561458][ T4166] jbd2__journal_start+0x2b7/0x5a0 [ 62.567114][ T4166] jbd2_journal_start+0x26/0x30 [ 62.572497][ T4166] ocfs2_start_trans+0x374/0x6c0 [ 62.577954][ T4166] ocfs2_mknod+0xe2f/0x22b0 [ 62.582987][ T4166] ocfs2_mkdir+0x192/0x410 [ 62.587923][ T4166] vfs_mkdir+0x387/0x570 [ 62.592686][ T4166] do_mkdirat+0x1d7/0x5a0 [ 62.597635][ T4166] __x64_sys_mkdir+0x6a/0x80 [ 62.602739][ T4166] do_syscall_64+0x4c/0xa0 [ 62.607672][ T4166] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.614087][ T4166] [ 62.614087][ T4166] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 62.622697][ T4166] down_read+0x44/0x2e0 [ 62.627365][ T4166] ocfs2_start_trans+0x368/0x6c0 [ 62.632813][ T4166] ocfs2_mknod+0xe2f/0x22b0 [ 62.637848][ T4166] ocfs2_mkdir+0x192/0x410 [ 62.642812][ T4166] vfs_mkdir+0x387/0x570 [ 62.647569][ T4166] do_mkdirat+0x1d7/0x5a0 [ 62.652410][ T4166] __x64_sys_mkdir+0x6a/0x80 [ 62.657536][ T4166] do_syscall_64+0x4c/0xa0 [ 62.662462][ T4166] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.668889][ T4166] [ 62.668889][ T4166] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 62.676449][ T4166] ocfs2_start_trans+0x269/0x6c0 [ 62.681910][ T4166] ocfs2_mknod+0xe2f/0x22b0 [ 62.686934][ T4166] ocfs2_mkdir+0x192/0x410 [ 62.691979][ T4166] vfs_mkdir+0x387/0x570 [ 62.696774][ T4166] do_mkdirat+0x1d7/0x5a0 [ 62.701632][ T4166] __x64_sys_mkdir+0x6a/0x80 [ 62.706755][ T4166] do_syscall_64+0x4c/0xa0 [ 62.711777][ T4166] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.718198][ T4166] [ 62.718198][ T4166] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 62.728973][ T4166] down_write+0x38/0x60 [ 62.733763][ T4166] ocfs2_reserve_local_alloc_bits+0x122/0x24c0 [ 62.740562][ T4166] ocfs2_reserve_clusters_with_limit+0x1bb/0xba0 [ 62.747550][ T4166] ocfs2_mknod+0xddd/0x22b0 [ 62.752620][ T4166] ocfs2_mkdir+0x192/0x410 [ 62.757911][ T4166] vfs_mkdir+0x387/0x570 [ 62.762865][ T4166] do_mkdirat+0x1d7/0x5a0 [ 62.767803][ T4166] __x64_sys_mkdir+0x6a/0x80 [ 62.773061][ T4166] do_syscall_64+0x4c/0xa0 [ 62.777999][ T4166] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.784427][ T4166] [ 62.784427][ T4166] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 62.794939][ T4166] __lock_acquire+0x2c33/0x7c60 [ 62.800311][ T4166] lock_acquire+0x197/0x3f0 [ 62.805328][ T4166] down_write+0x38/0x60 [ 62.810089][ T4166] ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 62.816494][ T4166] ocfs2_reserve_new_metadata_blocks+0x400/0x940 [ 62.823601][ T4166] ocfs2_init_xattr_set_ctxt+0x2e1/0x6c0 [ 62.830568][ T4166] ocfs2_xattr_set+0xb69/0x11e0 [ 62.836292][ T4166] ocfs2_set_acl+0x4e1/0x590 [ 62.841451][ T4166] ocfs2_iop_set_acl+0x16f/0x270 [ 62.847393][ T4166] posix_acl_xattr_set+0x36f/0x3e0 [ 62.853234][ T4166] __vfs_setxattr+0x3e0/0x420 [ 62.858434][ T4166] __vfs_setxattr_noperm+0x129/0x5e0 [ 62.864412][ T4166] vfs_setxattr+0x168/0x2f0 [ 62.869552][ T4166] setxattr+0x2da/0x300 [ 62.874218][ T4166] __se_sys_fsetxattr+0x15e/0x1d0 [ 62.879806][ T4166] do_syscall_64+0x4c/0xa0 [ 62.884766][ T4166] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 62.891204][ T4166] [ 62.891204][ T4166] other info that might help us debug this: [ 62.891204][ T4166] [ 62.901696][ T4166] Chain exists of: [ 62.901696][ T4166] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 62.901696][ T4166] [ 62.918097][ T4166] Possible unsafe locking scenario: [ 62.918097][ T4166] [ 62.925801][ T4166] CPU0 CPU1 [ 62.931196][ T4166] ---- ---- [ 62.936779][ T4166] lock(&oi->ip_xattr_sem); [ 62.941372][ T4166] lock(jbd2_handle); [ 62.948057][ T4166] lock(&oi->ip_xattr_sem); [ 62.955176][ T4166] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 62.962853][ T4166] [ 62.962853][ T4166] *** DEADLOCK *** [ 62.962853][ T4166] [ 62.970991][ T4166] 3 locks held by syz-executor160/4166: [ 62.976537][ T4166] #0: ffff8880740bc460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5c/0x200 [ 62.986205][ T4166] #1: ffff88806f521808 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x141/0x2f0 [ 62.996653][ T4166] #2: ffff88806f521538 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x40c/0x11e0 [ 63.006768][ T4166] [ 63.006768][ T4166] stack backtrace: [ 63.012871][ T4166] CPU: 0 PID: 4166 Comm: syz-executor160 Not tainted 5.15.182-syzkaller #0 [ 63.021464][ T4166] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 63.031535][ T4166] Call Trace: [ 63.034815][ T4166] [ 63.037737][ T4166] dump_stack_lvl+0x168/0x230 [ 63.042417][ T4166] ? load_image+0x3b0/0x3b0 [ 63.047098][ T4166] ? show_regs_print_info+0x20/0x20 [ 63.052516][ T4166] ? print_circular_bug+0x12b/0x1a0 [ 63.057723][ T4166] check_noncircular+0x274/0x310 [ 63.062667][ T4166] ? add_chain_block+0x940/0x940 [ 63.067705][ T4166] ? lockdep_lock+0xdc/0x1e0 [ 63.072304][ T4166] ? verify_lock_unused+0x140/0x140 [ 63.077590][ T4166] ? mark_lock+0x94/0x320 [ 63.082638][ T4166] __lock_acquire+0x2c33/0x7c60 [ 63.087801][ T4166] ? verify_lock_unused+0x140/0x140 [ 63.093189][ T4166] ? __mutex_unlock_slowpath+0x19e/0x6a0 [ 63.098924][ T4166] ? do_raw_spin_lock+0x11d/0x280 [ 63.104238][ T4166] ? mutex_unlock+0x10/0x10 [ 63.108897][ T4166] ? __rwlock_init+0x140/0x140 [ 63.114493][ T4166] ? __rwlock_init+0x140/0x140 [ 63.119381][ T4166] ? do_raw_spin_unlock+0x11d/0x230 [ 63.124771][ T4166] lock_acquire+0x197/0x3f0 [ 63.129287][ T4166] ? ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 63.135467][ T4166] ? __might_sleep+0xf0/0xf0 [ 63.140072][ T4166] ? __bfs+0x2a3/0x5c0 [ 63.144301][ T4166] ? read_lock_is_recursive+0x10/0x10 [ 63.149707][ T4166] ? verify_lock_unused+0x140/0x140 [ 63.154917][ T4166] down_write+0x38/0x60 [ 63.159078][ T4166] ? ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 63.165226][ T4166] ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 63.171201][ T4166] ? __lock_acquire+0x7c60/0x7c60 [ 63.176236][ T4166] ? mark_lock+0x94/0x320 [ 63.180560][ T4166] ? lockdep_hardirqs_on_prepare+0x3fc/0x760 [ 63.186655][ T4166] ? lock_chain_count+0x20/0x20 [ 63.191600][ T4166] ? __rwlock_init+0x140/0x140 [ 63.196666][ T4166] ? _raw_spin_lock_irqsave+0x7f/0xf0 [ 63.202051][ T4166] ? ocfs2_block_group_search+0x470/0x470 [ 63.207853][ T4166] ? _raw_spin_unlock_irqrestore+0x82/0x100 [ 63.213853][ T4166] ? lockdep_hardirqs_on+0x94/0x140 [ 63.219070][ T4166] ? _raw_spin_unlock_irqrestore+0xaa/0x100 [ 63.224976][ T4166] ? _raw_spin_unlock+0x40/0x40 [ 63.229842][ T4166] ? stack_trace_save+0x98/0xe0 [ 63.234824][ T4166] ? stack_trace_snprint+0xf0/0xf0 [ 63.239935][ T4166] ? stack_depot_save+0x404/0x440 [ 63.245139][ T4166] ? __kasan_kmalloc+0xcc/0xf0 [ 63.249992][ T4166] ? __kasan_kmalloc+0xb5/0xf0 [ 63.254873][ T4166] ? ocfs2_reserve_new_metadata_blocks+0x110/0x940 [ 63.261398][ T4166] ? ocfs2_init_xattr_set_ctxt+0x2e1/0x6c0 [ 63.267228][ T4166] ? ocfs2_xattr_set+0xb69/0x11e0 [ 63.272252][ T4166] ? ocfs2_set_acl+0x4e1/0x590 [ 63.277005][ T4166] ? ocfs2_iop_set_acl+0x16f/0x270 [ 63.282123][ T4166] ? posix_acl_xattr_set+0x36f/0x3e0 [ 63.287511][ T4166] ? __vfs_setxattr+0x3e0/0x420 [ 63.292361][ T4166] ? __vfs_setxattr_noperm+0x129/0x5e0 [ 63.298221][ T4166] ? vfs_setxattr+0x168/0x2f0 [ 63.302998][ T4166] ? setxattr+0x2da/0x300 [ 63.307435][ T4166] ? __se_sys_fsetxattr+0x15e/0x1d0 [ 63.312650][ T4166] ? do_syscall_64+0x4c/0xa0 [ 63.317235][ T4166] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 63.323314][ T4166] ocfs2_reserve_new_metadata_blocks+0x400/0x940 [ 63.329637][ T4166] ? ocfs2_init_steal_slots+0x150/0x150 [ 63.335352][ T4166] ? ocfs2_xattr_block_set+0x2b00/0x2b00 [ 63.340998][ T4166] ocfs2_init_xattr_set_ctxt+0x2e1/0x6c0 [ 63.346633][ T4166] ? ocfs2_prepare_refcount_xattr+0xf20/0xf20 [ 63.352712][ T4166] ? ocfs2_truncate_log_needs_flush+0x131/0x2e0 [ 63.358954][ T4166] ? ocfs2_remove_btree_range+0x1480/0x1480 [ 63.364840][ T4166] ? preempt_count_add+0x8d/0x190 [ 63.370030][ T4166] ? up_write+0x1bb/0x420 [ 63.374355][ T4166] ocfs2_xattr_set+0xb69/0x11e0 [ 63.379218][ T4166] ? __ocfs2_xattr_set_handle+0xf10/0xf10 [ 63.384926][ T4166] ? stack_depot_save+0x404/0x440 [ 63.389945][ T4166] ? ocfs2_iop_set_acl+0x16f/0x270 [ 63.395106][ T4166] ? posix_acl_xattr_set+0x36f/0x3e0 [ 63.400580][ T4166] ? __vfs_setxattr+0x3e0/0x420 [ 63.405434][ T4166] ? __vfs_setxattr_noperm+0x129/0x5e0 [ 63.410908][ T4166] ? setxattr+0x2da/0x300 [ 63.415233][ T4166] ? __se_sys_fsetxattr+0x15e/0x1d0 [ 63.420429][ T4166] ? do_syscall_64+0x4c/0xa0 [ 63.425041][ T4166] ocfs2_set_acl+0x4e1/0x590 [ 63.429628][ T4166] ocfs2_iop_set_acl+0x16f/0x270 [ 63.434574][ T4166] ? ocfs2_xattr_get+0x220/0x220 [ 63.439536][ T4166] ? posix_acl_valid+0x320/0x3a0 [ 63.444480][ T4166] posix_acl_xattr_set+0x36f/0x3e0 [ 63.449586][ T4166] ? posix_acl_xattr_get+0x550/0x550 [ 63.454980][ T4166] __vfs_setxattr+0x3e0/0x420 [ 63.459735][ T4166] __vfs_setxattr_noperm+0x129/0x5e0 [ 63.465011][ T4166] vfs_setxattr+0x168/0x2f0 [ 63.469504][ T4166] ? xattr_permission+0x500/0x500 [ 63.474727][ T4166] ? _copy_from_user+0x111/0x170 [ 63.479799][ T4166] ? posix_acl_fix_xattr_from_user+0xcf/0x110 [ 63.486459][ T4166] setxattr+0x2da/0x300 [ 63.490747][ T4166] ? path_setxattr+0x280/0x280 [ 63.497048][ T4166] ? __mnt_want_write+0x1e2/0x260 [ 63.503800][ T4166] ? mnt_want_write_file+0x174/0x200 [ 63.511718][ T4166] __se_sys_fsetxattr+0x15e/0x1d0 [ 63.518502][ T4166] do_syscall_64+0x4c/0xa0 [ 63.523725][ T4166] ? clear_bhb_loop+0x15/0x70 [ 63.528411][ T4166] ? clear_bhb_loop+0x15/0x70 [ 63.533184][ T4166] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 63.539323][ T4166] RIP: 0033:0x7f6be049c7f9 [ 63.543743][ T4166] 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 [ 63.563472][ T4166] RSP: 002b:00007fff9abd2df8 EFLAGS: 00000246 ORIG_RAX: 00000000000000be [ 63.571882][ T4166] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f6be049c7f9 [ 63.579848][ T4166] RDX: 0000200000000640 RSI: 0000200000000000 RDI: 0000000000000004 [ 63.587955][ T4166] RBP: 00007f6be0513610 R08: 0000000000000001 R09: 00007fff9abd2fc8 [ 63.596047][ T4166] R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000001 [ 63.604012][ T4166] R13: 00007fff9abd2fb8 R14: 0000000000000001 R15: 0000000000000001 [ 63.612194][ T4166]