Warning: Permanently added '10.128.0.253' (ED25519) to the list of known hosts. executing program [ 74.463919][ T4245] loop0: detected capacity change from 0 to 32768 [ 74.473898][ T4245] ======================================================= [ 74.473898][ T4245] WARNING: The mand mount option has been deprecated and [ 74.473898][ T4245] and is ignored by this kernel. Remove the mand [ 74.473898][ T4245] option from the mount to silence this warning. [ 74.473898][ T4245] ======================================================= [ 74.544710][ T4245] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 74.566950][ T4245] [ 74.569333][ T4245] ====================================================== [ 74.576365][ T4245] WARNING: possible circular locking dependency detected [ 74.583379][ T4245] 6.1.115-syzkaller #0 Not tainted [ 74.588474][ T4245] ------------------------------------------------------ [ 74.595475][ T4245] syz-executor382/4245 is trying to acquire lock: [ 74.601872][ T4245] ffff88807be35488 (&osb->system_file_mutex){+.+.}-{3:3}, at: ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 74.612849][ T4245] [ 74.612849][ T4245] but task is already holding lock: [ 74.620201][ T4245] ffff888070b90660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x812/0x52b0 [ 74.630727][ T4245] [ 74.630727][ T4245] which lock already depends on the new lock. [ 74.630727][ T4245] [ 74.641118][ T4245] [ 74.641118][ T4245] the existing dependency chain (in reverse order) is: [ 74.650230][ T4245] [ 74.650230][ T4245] -> #1 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}: [ 74.659008][ T4245] lock_acquire+0x1f8/0x5a0 [ 74.664040][ T4245] down_read+0xad/0xa30 [ 74.668720][ T4245] ocfs2_read_virt_blocks+0x2dc/0xab0 [ 74.674614][ T4245] ocfs2_find_entry+0x436/0x28c0 [ 74.680165][ T4245] ocfs2_find_files_on_disk+0x10d/0x3a0 [ 74.686238][ T4245] ocfs2_lookup_ino_from_name+0xad/0x1e0 [ 74.692418][ T4245] ocfs2_get_system_file_inode+0x314/0x7b0 [ 74.698743][ T4245] ocfs2_init_global_system_inodes+0x328/0x720 [ 74.705417][ T4245] ocfs2_fill_super+0x2f82/0x5730 [ 74.710963][ T4245] mount_bdev+0x2c9/0x3f0 [ 74.715811][ T4245] legacy_get_tree+0xeb/0x180 [ 74.721013][ T4245] vfs_get_tree+0x88/0x270 [ 74.725949][ T4245] do_new_mount+0x2ba/0xb40 [ 74.730982][ T4245] __se_sys_mount+0x2d5/0x3c0 [ 74.736180][ T4245] do_syscall_64+0x3b/0xb0 [ 74.741109][ T4245] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 74.747522][ T4245] [ 74.747522][ T4245] -> #0 (&osb->system_file_mutex){+.+.}-{3:3}: [ 74.755858][ T4245] validate_chain+0x1661/0x5950 [ 74.761221][ T4245] __lock_acquire+0x125b/0x1f80 [ 74.766592][ T4245] lock_acquire+0x1f8/0x5a0 [ 74.771618][ T4245] __mutex_lock+0x132/0xd80 [ 74.776636][ T4245] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 74.782962][ T4245] ocfs2_reserve_suballoc_bits+0x167/0x5190 [ 74.789378][ T4245] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 74.796227][ T4245] ocfs2_extend_dir+0xe26/0x52b0 [ 74.801708][ T4245] ocfs2_prepare_dir_for_insert+0x353b/0x5f10 [ 74.808297][ T4245] ocfs2_rename+0x1ded/0x4000 [ 74.813486][ T4245] vfs_rename+0xd32/0x10f0 [ 74.818421][ T4245] do_renameat2+0xde0/0x1440 [ 74.823532][ T4245] __x64_sys_rename+0x82/0x90 [ 74.828728][ T4245] do_syscall_64+0x3b/0xb0 [ 74.833656][ T4245] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 74.840069][ T4245] [ 74.840069][ T4245] other info that might help us debug this: [ 74.840069][ T4245] [ 74.850287][ T4245] Possible unsafe locking scenario: [ 74.850287][ T4245] [ 74.857723][ T4245] CPU0 CPU1 [ 74.863076][ T4245] ---- ---- [ 74.868431][ T4245] lock(&ocfs2_file_ip_alloc_sem_key); [ 74.873978][ T4245] lock(&osb->system_file_mutex); [ 74.882146][ T4245] lock(&ocfs2_file_ip_alloc_sem_key); [ 74.890325][ T4245] lock(&osb->system_file_mutex); [ 74.895448][ T4245] [ 74.895448][ T4245] *** DEADLOCK *** [ 74.895448][ T4245] [ 74.903581][ T4245] 3 locks held by syz-executor382/4245: [ 74.909114][ T4245] #0: ffff888079188460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 74.918257][ T4245] #1: ffff888070b909c8 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_renameat2+0x65a/0x1440 [ 74.928710][ T4245] #2: ffff888070b90660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x812/0x52b0 [ 74.939696][ T4245] [ 74.939696][ T4245] stack backtrace: [ 74.945581][ T4245] CPU: 0 PID: 4245 Comm: syz-executor382 Not tainted 6.1.115-syzkaller #0 [ 74.954071][ T4245] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 74.964123][ T4245] Call Trace: [ 74.967397][ T4245] [ 74.970324][ T4245] dump_stack_lvl+0x1e3/0x2cb [ 74.975011][ T4245] ? nf_tcp_handle_invalid+0x642/0x642 [ 74.980484][ T4245] ? print_circular_bug+0x12b/0x1a0 [ 74.985676][ T4245] check_noncircular+0x2fa/0x3b0 [ 74.990613][ T4245] ? add_chain_block+0x850/0x850 [ 74.995561][ T4245] ? lockdep_lock+0x11f/0x2a0 [ 75.000244][ T4245] ? arch_stack_walk+0xf3/0x140 [ 75.005096][ T4245] ? _find_first_zero_bit+0xd0/0x100 [ 75.010388][ T4245] validate_chain+0x1661/0x5950 [ 75.015238][ T4245] ? hlock_conflict+0x55/0x1f0 [ 75.020016][ T4245] ? reacquire_held_locks+0x660/0x660 [ 75.025381][ T4245] ? validate_chain+0x112/0x5950 [ 75.030311][ T4245] ? check_path+0x40/0x40 [ 75.034632][ T4245] ? hlock_conflict+0x55/0x1f0 [ 75.039388][ T4245] ? hlock_conflict+0x55/0x1f0 [ 75.044147][ T4245] ? hlock_conflict+0x55/0x1f0 [ 75.048906][ T4245] ? __bfs+0x359/0x6e0 [ 75.052986][ T4245] ? mark_lock+0x9a/0x340 [ 75.057338][ T4245] __lock_acquire+0x125b/0x1f80 [ 75.062198][ T4245] lock_acquire+0x1f8/0x5a0 [ 75.066717][ T4245] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 75.072711][ T4245] ? read_lock_is_recursive+0x10/0x10 [ 75.078085][ T4245] ? __might_sleep+0xb0/0xb0 [ 75.082675][ T4245] __mutex_lock+0x132/0xd80 [ 75.087175][ T4245] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 75.093254][ T4245] ? ocfs2_get_system_file_inode+0x144/0x7b0 [ 75.099253][ T4245] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 75.105255][ T4245] ? __lock_acquire+0x1f80/0x1f80 [ 75.110283][ T4245] ? mutex_lock_nested+0x10/0x10 [ 75.115216][ T4245] ? do_raw_spin_unlock+0x137/0x8a0 [ 75.120418][ T4245] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 75.126250][ T4245] ? ocfs2_fast_symlink_read_folio+0x560/0x560 [ 75.132407][ T4245] ? mark_lock+0x9a/0x340 [ 75.136744][ T4245] ? __lock_acquire+0x125b/0x1f80 [ 75.141774][ T4245] ocfs2_reserve_suballoc_bits+0x167/0x5190 [ 75.147757][ T4245] ? mark_lock+0x9a/0x340 [ 75.152101][ T4245] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 75.158098][ T4245] ? do_raw_spin_unlock+0x137/0x8a0 [ 75.163293][ T4245] ? ocfs2_block_group_search+0x530/0x530 [ 75.169021][ T4245] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 75.174940][ T4245] ? _raw_spin_unlock+0x40/0x40 [ 75.179890][ T4245] ? stack_trace_save+0x113/0x1c0 [ 75.184956][ T4245] ? stack_trace_snprint+0xe0/0xe0 [ 75.190074][ T4245] ? __stack_depot_save+0x3f5/0x470 [ 75.195278][ T4245] ? kasan_set_track+0x60/0x70 [ 75.200043][ T4245] ? kasan_set_track+0x4b/0x70 [ 75.204826][ T4245] ? __kasan_kmalloc+0x97/0xb0 [ 75.209592][ T4245] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 75.216135][ T4245] ? ocfs2_extend_dir+0xe26/0x52b0 [ 75.221262][ T4245] ? ocfs2_prepare_dir_for_insert+0x353b/0x5f10 [ 75.227985][ T4245] ? ocfs2_rename+0x1ded/0x4000 [ 75.232843][ T4245] ? vfs_rename+0xd32/0x10f0 [ 75.237441][ T4245] ? do_renameat2+0xde0/0x1440 [ 75.242217][ T4245] ? __x64_sys_rename+0x82/0x90 [ 75.247067][ T4245] ? do_syscall_64+0x3b/0xb0 [ 75.251738][ T4245] ? entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 75.257820][ T4245] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 75.264150][ T4245] ? ocfs2_init_steal_slots+0x150/0x150 [ 75.269695][ T4245] ? rwsem_write_trylock+0x166/0x210 [ 75.274983][ T4245] ? clear_nonspinnable+0x60/0x60 [ 75.280007][ T4245] ? validate_chain+0x112/0x5950 [ 75.285025][ T4245] ocfs2_extend_dir+0xe26/0x52b0 [ 75.289984][ T4245] ? mark_lock+0x9a/0x340 [ 75.294319][ T4245] ? ocfs2_dx_dir_name_hash+0xc40/0xc40 [ 75.299874][ T4245] ? validate_chain+0x112/0x5950 [ 75.304803][ T4245] ? ocfs2_allocate_extend_trans+0x6b0/0x6b0 [ 75.310788][ T4245] ? mark_lock+0x9a/0x340 [ 75.315116][ T4245] ? __lock_acquire+0x125b/0x1f80 [ 75.320152][ T4245] ? ocfs2_buffer_cached+0x3db/0x8c0 [ 75.325438][ T4245] ? __lock_acquire+0x1f80/0x1f80 [ 75.330461][ T4245] ? do_raw_spin_lock+0x14a/0x370 [ 75.335481][ T4245] ? ocfs2_read_blocks+0x11c9/0x16c0 [ 75.340770][ T4245] ? ocfs2_dx_dir_name_hash+0xaa4/0xc40 [ 75.346318][ T4245] ? ocfs2_prepare_dir_for_insert+0x5f10/0x5f10 [ 75.352598][ T4245] ? __mutex_unlock_slowpath+0x218/0x750 [ 75.358244][ T4245] ocfs2_prepare_dir_for_insert+0x353b/0x5f10 [ 75.364347][ T4245] ? __mutex_unlock_slowpath+0x218/0x750 [ 75.369996][ T4245] ? ocfs2_refresh_inode+0x960/0x960 [ 75.375283][ T4245] ? ocfs2_fill_new_dir_el+0xf70/0xf70 [ 75.380748][ T4245] ? rcu_is_watching+0x11/0xb0 [ 75.385505][ T4245] ? ocfs2_search_dirblock+0x393/0x870 [ 75.390967][ T4245] ? ocfs2_read_inode_block+0x148/0x1d0 [ 75.396509][ T4245] ? ocfs2_read_dir_block_direct+0x540/0x540 [ 75.402490][ T4245] ? rcu_is_watching+0x11/0xb0 [ 75.407245][ T4245] ? ocfs2_search_dirblock+0x393/0x870 [ 75.412702][ T4245] ? ocfs2_find_entry+0x10d0/0x28c0 [ 75.417904][ T4245] ? ocfs2_find_entry+0xfab/0x28c0 [ 75.423021][ T4245] ? __brelse+0x55/0x90 [ 75.427168][ T4245] ? ocfs2_find_entry+0x102a/0x28c0 [ 75.432368][ T4245] ? ocfs2_read_dir_block_direct+0x540/0x540 [ 75.438346][ T4245] ? rcu_is_watching+0x11/0xb0 [ 75.443122][ T4245] ? __brelse+0x55/0x90 [ 75.447286][ T4245] ? ocfs2_free_dir_lookup_result+0x100/0x100 [ 75.453356][ T4245] ? mark_lock+0x9a/0x340 [ 75.457689][ T4245] ? ocfs2_free_dir_lookup_result+0x100/0x100 [ 75.464203][ T4245] ? mark_lock+0x9a/0x340 [ 75.468531][ T4245] ? __lock_acquire+0x125b/0x1f80 [ 75.473567][ T4245] ? ocfs2_dentry_unlock+0xc6/0x170 [ 75.478773][ T4245] ? __lock_acquire+0x1f80/0x1f80 [ 75.483799][ T4245] ? do_raw_spin_lock+0x14a/0x370 [ 75.488824][ T4245] ? ocfs2_check_dir_for_entry+0x2e0/0x510 [ 75.494633][ T4245] ? __brelse+0x55/0x90 [ 75.498780][ T4245] ? ocfs2_lookup_ino_from_name+0x1e0/0x1e0 [ 75.504680][ T4245] ? ocfs2_find_files_on_disk+0x121/0x3a0 [ 75.510401][ T4245] ocfs2_rename+0x1ded/0x4000 [ 75.515082][ T4245] ? ocfs2_mknod+0x2e20/0x2e20 [ 75.519845][ T4245] ? ocfs2_inode_lock_full_nested+0x177/0x1bf0 [ 75.526011][ T4245] ? reacquire_held_locks+0x660/0x660 [ 75.531380][ T4245] ? validate_chain+0x112/0x5950 [ 75.536312][ T4245] ? validate_chain+0x112/0x5950 [ 75.541256][ T4245] ? reacquire_held_locks+0x660/0x660 [ 75.546630][ T4245] ? mark_lock+0x9a/0x340 [ 75.551031][ T4245] ? mark_lock+0x9a/0x340 [ 75.555364][ T4245] ? __lock_acquire+0x125b/0x1f80 [ 75.560401][ T4245] ? vfs_rename+0x74d/0x10f0 [ 75.564989][ T4245] ? __lock_acquire+0x1f80/0x1f80 [ 75.570018][ T4245] ? do_raw_spin_unlock+0x137/0x8a0 [ 75.575212][ T4245] ? memcpy+0x3c/0x60 [ 75.579191][ T4245] vfs_rename+0xd32/0x10f0 [ 75.583610][ T4245] ? __ia32_sys_link+0x90/0x90 [ 75.588376][ T4245] ? security_path_rename+0x17f/0x210 [ 75.593746][ T4245] do_renameat2+0xde0/0x1440 [ 75.598342][ T4245] ? fsnotify_move+0x4f0/0x4f0 [ 75.603106][ T4245] ? __virt_addr_valid+0x17f/0x530 [ 75.608217][ T4245] ? __virt_addr_valid+0x17f/0x530 [ 75.613328][ T4245] ? __virt_addr_valid+0x45b/0x530 [ 75.618440][ T4245] ? __phys_addr_symbol+0x2b/0x70 [ 75.623473][ T4245] ? strncpy_from_user+0x1f9/0x360 [ 75.628585][ T4245] ? getname_flags+0x1f9/0x4f0 [ 75.633368][ T4245] ? lockdep_hardirqs_on+0x94/0x130 [ 75.638582][ T4245] __x64_sys_rename+0x82/0x90 [ 75.643261][ T4245] do_syscall_64+0x3b/0xb0 [ 75.647686][ T4245] ? clear_bhb_loop+0x45/0xa0 [ 75.652360][ T4245] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 75.658275][ T4245] RIP: 0033:0x7f0a45422a79 [ 75.662742][ T4245] 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 [ 75.682344][ T4245] RSP: 002b:00007fff1ba642c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 [ 75.690756][ T4245] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f0a45422a79 [ 75.698724][ T