Warning: Permanently added '10.128.0.82' (ED25519) to the list of known hosts. executing program [ 70.547413][ T4244] loop0: detected capacity change from 0 to 32768 [ 70.556975][ T4244] ======================================================= [ 70.556975][ T4244] WARNING: The mand mount option has been deprecated and [ 70.556975][ T4244] and is ignored by this kernel. Remove the mand [ 70.556975][ T4244] option from the mount to silence this warning. [ 70.556975][ T4244] ======================================================= [ 70.607970][ T4244] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 70.633397][ T4244] [ 70.635772][ T4244] ====================================================== [ 70.642812][ T4244] WARNING: possible circular locking dependency detected [ 70.649836][ T4244] 6.1.114-syzkaller #0 Not tainted [ 70.654931][ T4244] ------------------------------------------------------ [ 70.661934][ T4244] syz-executor122/4244 is trying to acquire lock: [ 70.668328][ T4244] ffff88806f501808 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 70.681562][ T4244] [ 70.681562][ T4244] but task is already holding lock: [ 70.688937][ T4244] ffff88806f45dc78 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 70.698408][ T4244] [ 70.698408][ T4244] which lock already depends on the new lock. [ 70.698408][ T4244] [ 70.708791][ T4244] [ 70.708791][ T4244] the existing dependency chain (in reverse order) is: [ 70.717786][ T4244] [ 70.717786][ T4244] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 70.725592][ T4244] lock_acquire+0x1f8/0x5a0 [ 70.730612][ T4244] down_read+0xad/0xa30 [ 70.735291][ T4244] ocfs2_init_acl+0x398/0x930 [ 70.740514][ T4244] ocfs2_mknod+0x1f75/0x2e20 [ 70.745623][ T4244] ocfs2_create+0x1c0/0x4e0 [ 70.750638][ T4244] path_openat+0x12f1/0x2e60 [ 70.755778][ T4244] do_filp_open+0x230/0x480 [ 70.760800][ T4244] do_sys_openat2+0x13b/0x4f0 [ 70.766000][ T4244] __x64_sys_openat+0x243/0x290 [ 70.771371][ T4244] do_syscall_64+0x3b/0xb0 [ 70.776308][ T4244] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 70.782721][ T4244] [ 70.782721][ T4244] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 70.790046][ T4244] lock_acquire+0x1f8/0x5a0 [ 70.795077][ T4244] start_this_handle+0x1f71/0x21b0 [ 70.800710][ T4244] jbd2__journal_start+0x2d1/0x5c0 [ 70.806335][ T4244] jbd2_journal_start+0x25/0x30 [ 70.811706][ T4244] ocfs2_start_trans+0x3c0/0x6f0 [ 70.817187][ T4244] ocfs2_mknod+0x1638/0x2e20 [ 70.822288][ T4244] ocfs2_create+0x1c0/0x4e0 [ 70.827390][ T4244] path_openat+0x12f1/0x2e60 [ 70.832500][ T4244] do_filp_open+0x230/0x480 [ 70.837524][ T4244] do_sys_openat2+0x13b/0x4f0 [ 70.842719][ T4244] __x64_sys_openat+0x243/0x290 [ 70.848094][ T4244] do_syscall_64+0x3b/0xb0 [ 70.853043][ T4244] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 70.859457][ T4244] [ 70.859457][ T4244] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 70.867958][ T4244] lock_acquire+0x1f8/0x5a0 [ 70.872975][ T4244] down_read+0xad/0xa30 [ 70.877645][ T4244] ocfs2_start_trans+0x3b5/0x6f0 [ 70.883099][ T4244] ocfs2_mknod+0x1638/0x2e20 [ 70.888200][ T4244] ocfs2_create+0x1c0/0x4e0 [ 70.893214][ T4244] path_openat+0x12f1/0x2e60 [ 70.898321][ T4244] do_filp_open+0x230/0x480 [ 70.903340][ T4244] do_sys_openat2+0x13b/0x4f0 [ 70.908537][ T4244] __x64_sys_openat+0x243/0x290 [ 70.913913][ T4244] do_syscall_64+0x3b/0xb0 [ 70.918850][ T4244] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 70.925269][ T4244] [ 70.925269][ T4244] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 70.932757][ T4244] lock_acquire+0x1f8/0x5a0 [ 70.937788][ T4244] ocfs2_start_trans+0x2b0/0x6f0 [ 70.943245][ T4244] ocfs2_mknod+0x1638/0x2e20 [ 70.948350][ T4244] ocfs2_create+0x1c0/0x4e0 [ 70.953364][ T4244] path_openat+0x12f1/0x2e60 [ 70.958472][ T4244] do_filp_open+0x230/0x480 [ 70.963491][ T4244] do_sys_openat2+0x13b/0x4f0 [ 70.968692][ T4244] __x64_sys_openat+0x243/0x290 [ 70.974071][ T4244] do_syscall_64+0x3b/0xb0 [ 70.979004][ T4244] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 70.985422][ T4244] [ 70.985422][ T4244] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 70.995933][ T4244] lock_acquire+0x1f8/0x5a0 [ 71.000959][ T4244] down_write+0x36/0x60 [ 71.005631][ T4244] ocfs2_reserve_local_alloc_bits+0x127/0x29d0 [ 71.012311][ T4244] ocfs2_reserve_clusters_with_limit+0x1b4/0xb50 [ 71.019159][ T4244] ocfs2_mknod+0x15b5/0x2e20 [ 71.024265][ T4244] ocfs2_create+0x1c0/0x4e0 [ 71.029282][ T4244] path_openat+0x12f1/0x2e60 [ 71.034392][ T4244] do_filp_open+0x230/0x480 [ 71.039418][ T4244] do_sys_openat2+0x13b/0x4f0 [ 71.044621][ T4244] __x64_sys_openat+0x243/0x290 [ 71.049995][ T4244] do_syscall_64+0x3b/0xb0 [ 71.054928][ T4244] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 71.061344][ T4244] [ 71.061344][ T4244] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 71.071854][ T4244] validate_chain+0x1661/0x5950 [ 71.077218][ T4244] __lock_acquire+0x125b/0x1f80 [ 71.082585][ T4244] lock_acquire+0x1f8/0x5a0 [ 71.087608][ T4244] down_write+0x36/0x60 [ 71.092277][ T4244] ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 71.098693][ T4244] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 71.105553][ T4244] ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 71.111698][ T4244] ocfs2_xattr_set+0xf46/0x1930 [ 71.117060][ T4244] __vfs_setxattr+0x3e7/0x420 [ 71.122248][ T4244] __vfs_setxattr_noperm+0x12a/0x5e0 [ 71.128044][ T4244] vfs_setxattr+0x21d/0x420 [ 71.133088][ T4244] setxattr+0x250/0x2b0 [ 71.137758][ T4244] path_setxattr+0x1bc/0x2a0 [ 71.142861][ T4244] __x64_sys_lsetxattr+0xb4/0xd0 [ 71.148330][ T4244] do_syscall_64+0x3b/0xb0 [ 71.153263][ T4244] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 71.159678][ T4244] [ 71.159678][ T4244] other info that might help us debug this: [ 71.159678][ T4244] [ 71.169928][ T4244] Chain exists of: [ 71.169928][ T4244] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 71.169928][ T4244] [ 71.185695][ T4244] Possible unsafe locking scenario: [ 71.185695][ T4244] [ 71.193153][ T4244] CPU0 CPU1 [ 71.198505][ T4244] ---- ---- [ 71.203860][ T4244] lock(&oi->ip_xattr_sem); [ 71.208443][ T4244] lock(jbd2_handle); [ 71.215027][ T4244] lock(&oi->ip_xattr_sem); [ 71.222133][ T4244] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 71.229418][ T4244] [ 71.229418][ T4244] *** DEADLOCK *** [ 71.229418][ T4244] [ 71.237566][ T4244] 3 locks held by syz-executor122/4244: [ 71.243108][ T4244] #0: ffff88807352c460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 71.252265][ T4244] #1: ffff88806f45df48 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x1dd/0x420 [ 71.262717][ T4244] #2: ffff88806f45dc78 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 71.272638][ T4244] [ 71.272638][ T4244] stack backtrace: [ 71.278525][ T4244] CPU: 0 PID: 4244 Comm: syz-executor122 Not tainted 6.1.114-syzkaller #0 [ 71.287022][ T4244] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 71.297077][ T4244] Call Trace: [ 71.300354][ T4244] [ 71.303281][ T4244] dump_stack_lvl+0x1e3/0x2cb [ 71.307955][ T4244] ? nf_tcp_handle_invalid+0x642/0x642 [ 71.313410][ T4244] ? print_circular_bug+0x12b/0x1a0 [ 71.318601][ T4244] check_noncircular+0x2fa/0x3b0 [ 71.323537][ T4244] ? add_chain_block+0x850/0x850 [ 71.328469][ T4244] ? lockdep_lock+0x11f/0x2a0 [ 71.333152][ T4244] ? unwind_get_return_address+0x49/0x80 [ 71.338782][ T4244] ? mark_lock+0x9a/0x340 [ 71.343135][ T4244] ? _find_first_zero_bit+0xd0/0x100 [ 71.348425][ T4244] validate_chain+0x1661/0x5950 [ 71.353290][ T4244] ? reacquire_held_locks+0x660/0x660 [ 71.358659][ T4244] ? ocfs2_get_system_file_inode+0x1e0/0x7b0 [ 71.364666][ T4244] ? __lock_acquire+0x1f80/0x1f80 [ 71.369722][ T4244] ? mark_lock+0x9a/0x340 [ 71.374062][ T4244] __lock_acquire+0x125b/0x1f80 [ 71.378923][ T4244] lock_acquire+0x1f8/0x5a0 [ 71.383441][ T4244] ? ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 71.389508][ T4244] ? read_lock_is_recursive+0x10/0x10 [ 71.394885][ T4244] ? __might_sleep+0xb0/0xb0 [ 71.399469][ T4244] ? __lock_acquire+0x125b/0x1f80 [ 71.404512][ T4244] down_write+0x36/0x60 [ 71.408670][ T4244] ? ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 71.414745][ T4244] ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 71.420669][ T4244] ? mark_lock+0x9a/0x340 [ 71.425010][ T4244] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 71.430995][ T4244] ? do_raw_spin_unlock+0x137/0x8a0 [ 71.436188][ T4244] ? ocfs2_block_group_search+0x530/0x530 [ 71.441907][ T4244] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 71.447798][ T4244] ? _raw_spin_unlock+0x40/0x40 [ 71.452649][ T4244] ? stack_trace_save+0x113/0x1c0 [ 71.457686][ T4244] ? stack_trace_snprint+0xe0/0xe0 [ 71.462799][ T4244] ? __stack_depot_save+0x3f5/0x470 [ 71.468004][ T4244] ? kasan_set_track+0x60/0x70 [ 71.472772][ T4244] ? kasan_set_track+0x4b/0x70 [ 71.477537][ T4244] ? __kasan_kmalloc+0x97/0xb0 [ 71.482297][ T4244] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 71.488800][ T4244] ? ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 71.494605][ T4244] ? ocfs2_xattr_set+0xf46/0x1930 [ 71.499628][ T4244] ? __vfs_setxattr+0x3e7/0x420 [ 71.504470][ T4244] ? __vfs_setxattr_noperm+0x12a/0x5e0 [ 71.509926][ T4244] ? vfs_setxattr+0x21d/0x420 [ 71.514599][ T4244] ? setxattr+0x250/0x2b0 [ 71.518935][ T4244] ? path_setxattr+0x1bc/0x2a0 [ 71.523699][ T4244] ? __x64_sys_lsetxattr+0xb4/0xd0 [ 71.528803][ T4244] ? do_syscall_64+0x3b/0xb0 [ 71.533383][ T4244] ? entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 71.539469][ T4244] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 71.545819][ T4244] ? ocfs2_init_steal_slots+0x150/0x150 [ 71.551366][ T4244] ? ocfs2_xattr_block_set+0x3620/0x3620 [ 71.556996][ T4244] ? ocfs2_xattr_set+0xef8/0x1930 [ 71.562030][ T4244] ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 71.567661][ T4244] ? ocfs2_prepare_refcount_xattr+0x1220/0x1220 [ 71.573900][ T4244] ? up_write+0x19d/0x580 [ 71.578229][ T4244] ? ocfs2_remove_btree_range+0x18a0/0x18a0 [ 71.584121][ T4244] ? __up_read+0x690/0x690 [ 71.588544][ T4244] ocfs2_xattr_set+0xf46/0x1930 [ 71.593395][ T4244] ? __ocfs2_xattr_set_handle+0x1060/0x1060 [ 71.599296][ T4244] ? aa_get_newest_label+0xfb/0x6e0 [ 71.604499][ T4244] ? posix_xattr_acl+0xa5/0xd0 [ 71.609258][ T4244] ? evm_protect_xattr+0x366/0xb10 [ 71.614363][ T4244] ? ocfs2_xattr_trusted_get+0x40/0x40 [ 71.619816][ T4244] __vfs_setxattr+0x3e7/0x420 [ 71.624492][ T4244] __vfs_setxattr_noperm+0x12a/0x5e0 [ 71.629773][ T4244] vfs_setxattr+0x21d/0x420 [ 71.634273][ T4244] ? xattr_permission+0x4f0/0x4f0 [ 71.639293][ T4244] ? __might_fault+0xbd/0x110 [ 71.643972][ T4244] setxattr+0x250/0x2b0 [ 71.648141][ T4244] ? path_setxattr+0x2a0/0x2a0 [ 71.652906][ T4244] ? __mnt_want_write+0x222/0x2a0 [ 71.657931][ T4244] path_setxattr+0x1bc/0x2a0 [ 71.662513][ T4244] ? simple_xattr_list_add+0xf0/0xf0 [ 71.667793][ T4244] ? syscall_enter_from_user_mode+0x2e/0x230 [ 71.673773][ T4244] __x64_sys_lsetxattr+0xb4/0xd0 [ 71.678706][ T4244] do_syscall_64+0x3b/0xb0 [ 71.683119][ T4244] ? clear_bhb_loop+0x45/0xa0 [ 71.687808][ T4244] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 71.693706][ T4244] RIP: 0033:0x7f2e459da9f9 [ 71.698131][ T4244] 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 [ 71.717731][ T4244] RSP: 002b:00007fff17741478 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd [ 71.726152][ T4244] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f2e459da9f9 [ 71.734121][ T4244] RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000020000280 [ 71.742091][ T4244] RBP: 00007f2e45a51610 R08: 0000000000000001 R09: 0000000000000000 [ 71.750142][ T4244] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 71.758215][ T4244] R13: 00007fff17741648 R14: 0000000