Warning: Permanently added '10.128.0.69' (ED25519) to the list of known hosts. executing program [ 49.554538][ T3570] loop0: detected capacity change from 0 to 32768 [ 49.659155][ T3570] (syz-executor404,3570,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 49.674961][ T3570] (syz-executor404,3570,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 49.697028][ T3570] JBD2: Ignoring recovery information on journal [ 49.722223][ T3570] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 49.761918][ T3570] [ 49.764343][ T3570] ====================================================== [ 49.771718][ T3570] WARNING: possible circular locking dependency detected [ 49.778721][ T3570] 5.15.167-syzkaller #0 Not tainted [ 49.783987][ T3570] ------------------------------------------------------ [ 49.791062][ T3570] syz-executor404/3570 is trying to acquire lock: [ 49.797445][ T3570] ffff888077201488 (&osb->system_file_mutex){+.+.}-{3:3}, at: ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 49.808395][ T3570] [ 49.808395][ T3570] but task is already holding lock: [ 49.815751][ T3570] ffff88806d108660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x7ed/0x5270 [ 49.826249][ T3570] [ 49.826249][ T3570] which lock already depends on the new lock. [ 49.826249][ T3570] [ 49.836721][ T3570] [ 49.836721][ T3570] the existing dependency chain (in reverse order) is: [ 49.846012][ T3570] [ 49.846012][ T3570] -> #1 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}: [ 49.854809][ T3570] lock_acquire+0x1db/0x4f0 [ 49.860269][ T3570] down_read+0x45/0x2e0 [ 49.865459][ T3570] ocfs2_read_virt_blocks+0x2b3/0xa10 [ 49.871445][ T3570] ocfs2_find_entry+0x437/0x26d0 [ 49.876887][ T3570] ocfs2_find_files_on_disk+0xea/0x310 [ 49.882842][ T3570] ocfs2_lookup_ino_from_name+0xad/0x1e0 [ 49.888976][ T3570] ocfs2_get_system_file_inode+0x314/0x7b0 [ 49.895281][ T3570] ocfs2_init_global_system_inodes+0x328/0x720 [ 49.901929][ T3570] ocfs2_fill_super+0x479e/0x58a0 [ 49.907469][ T3570] mount_bdev+0x2c9/0x3f0 [ 49.912295][ T3570] legacy_get_tree+0xeb/0x180 [ 49.917462][ T3570] vfs_get_tree+0x88/0x270 [ 49.922370][ T3570] do_new_mount+0x2ba/0xb40 [ 49.927359][ T3570] __se_sys_mount+0x2d5/0x3c0 [ 49.932523][ T3570] do_syscall_64+0x3b/0xb0 [ 49.937426][ T3570] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 49.943813][ T3570] [ 49.943813][ T3570] -> #0 (&osb->system_file_mutex){+.+.}-{3:3}: [ 49.952117][ T3570] validate_chain+0x1649/0x5930 [ 49.957463][ T3570] __lock_acquire+0x1295/0x1ff0 [ 49.962805][ T3570] lock_acquire+0x1db/0x4f0 [ 49.967825][ T3570] __mutex_lock_common+0x1da/0x25a0 [ 49.973606][ T3570] mutex_lock_nested+0x17/0x20 [ 49.978865][ T3570] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 49.985178][ T3570] ocfs2_reserve_suballoc_bits+0x16b/0x4c70 [ 49.991561][ T3570] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 49.998385][ T3570] ocfs2_extend_dir+0xdd4/0x5270 [ 50.003863][ T3570] ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 50.010450][ T3570] ocfs2_link+0xc13/0x1cb0 [ 50.015367][ T3570] vfs_link+0x65e/0x810 [ 50.020021][ T3570] do_linkat+0x5c8/0x9d0 [ 50.024753][ T3570] __x64_sys_link+0x82/0x90 [ 50.029745][ T3570] do_syscall_64+0x3b/0xb0 [ 50.034655][ T3570] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 50.041040][ T3570] [ 50.041040][ T3570] other info that might help us debug this: [ 50.041040][ T3570] [ 50.051236][ T3570] Possible unsafe locking scenario: [ 50.051236][ T3570] [ 50.058668][ T3570] CPU0 CPU1 [ 50.064005][ T3570] ---- ---- [ 50.069337][ T3570] lock(&ocfs2_file_ip_alloc_sem_key); [ 50.075029][ T3570] lock(&osb->system_file_mutex); [ 50.082627][ T3570] lock(&ocfs2_file_ip_alloc_sem_key); [ 50.090657][ T3570] lock(&osb->system_file_mutex); [ 50.095734][ T3570] [ 50.095734][ T3570] *** DEADLOCK *** [ 50.095734][ T3570] [ 50.103841][ T3570] 4 locks held by syz-executor404/3570: [ 50.109355][ T3570] #0: ffff888018ba8460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 50.118457][ T3570] #1: ffff88806d1089c8 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 [ 50.129031][ T3570] #2: ffff888071be09c8 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_link+0x53f/0x810 [ 50.139083][ T3570] #3: ffff88806d108660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x7ed/0x5270 [ 50.150029][ T3570] [ 50.150029][ T3570] stack backtrace: [ 50.156002][ T3570] CPU: 1 PID: 3570 Comm: syz-executor404 Not tainted 5.15.167-syzkaller #0 [ 50.164613][ T3570] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 50.174939][ T3570] Call Trace: [ 50.178201][ T3570] [ 50.181108][ T3570] dump_stack_lvl+0x1e3/0x2d0 [ 50.185768][ T3570] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 50.191472][ T3570] ? print_circular_bug+0x12b/0x1a0 [ 50.196659][ T3570] check_noncircular+0x2f8/0x3b0 [ 50.201575][ T3570] ? add_chain_block+0x850/0x850 [ 50.206500][ T3570] ? lockdep_lock+0x11f/0x2a0 [ 50.211152][ T3570] ? add_chain_block+0x850/0x850 [ 50.216061][ T3570] validate_chain+0x1649/0x5930 [ 50.220890][ T3570] ? reacquire_held_locks+0x660/0x660 [ 50.226230][ T3570] ? check_noncircular+0x1e1/0x3b0 [ 50.231332][ T3570] ? validate_chain+0x112/0x5930 [ 50.236241][ T3570] ? lockdep_unlock+0x166/0x300 [ 50.241170][ T3570] ? hlock_conflict+0x53/0x1f0 [ 50.245902][ T3570] ? __bfs+0x359/0x6e0 [ 50.249940][ T3570] ? mark_lock+0x98/0x340 [ 50.254237][ T3570] __lock_acquire+0x1295/0x1ff0 [ 50.259063][ T3570] lock_acquire+0x1db/0x4f0 [ 50.263541][ T3570] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 50.269494][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 50.274853][ T3570] ? __might_sleep+0xc0/0xc0 [ 50.279445][ T3570] ? __lock_acquire+0x1295/0x1ff0 [ 50.284447][ T3570] __mutex_lock_common+0x1da/0x25a0 [ 50.289621][ T3570] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 50.295591][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 50.300940][ T3570] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 50.306893][ T3570] ? ocfs2_get_system_file_inode+0x144/0x7b0 [ 50.312848][ T3570] ? mutex_lock_io_nested+0x60/0x60 [ 50.318021][ T3570] ? do_raw_spin_lock+0x14a/0x370 [ 50.323108][ T3570] ? do_raw_spin_unlock+0x137/0x8b0 [ 50.328363][ T3570] mutex_lock_nested+0x17/0x20 [ 50.333100][ T3570] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 50.338880][ T3570] ? ocfs2_fast_symlink_readpage+0x420/0x420 [ 50.344835][ T3570] ? __lock_acquire+0x1295/0x1ff0 [ 50.349842][ T3570] ocfs2_reserve_suballoc_bits+0x16b/0x4c70 [ 50.355711][ T3570] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 50.361665][ T3570] ? print_irqtrace_events+0x210/0x210 [ 50.367097][ T3570] ? do_raw_spin_unlock+0x137/0x8b0 [ 50.372266][ T3570] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 50.378132][ T3570] ? lockdep_hardirqs_on+0x94/0x130 [ 50.383316][ T3570] ? ocfs2_block_group_search+0x490/0x490 [ 50.389022][ T3570] ? stack_trace_save+0x113/0x1c0 [ 50.394030][ T3570] ? stack_trace_snprint+0xe0/0xe0 [ 50.399119][ T3570] ? stack_depot_save+0x3db/0x440 [ 50.404126][ T3570] ? ____kasan_kmalloc+0xd1/0xf0 [ 50.409041][ T3570] ? ____kasan_kmalloc+0xba/0xf0 [ 50.414414][ T3570] ? kmem_cache_alloc_trace+0x143/0x290 [ 50.420209][ T3570] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 50.426697][ T3570] ? ocfs2_extend_dir+0xdd4/0x5270 [ 50.431813][ T3570] ? ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 50.438031][ T3570] ? ocfs2_link+0xc13/0x1cb0 [ 50.442593][ T3570] ? vfs_link+0x65e/0x810 [ 50.446897][ T3570] ? do_linkat+0x5c8/0x9d0 [ 50.451284][ T3570] ? __x64_sys_link+0x82/0x90 [ 50.455943][ T3570] ? do_syscall_64+0x3b/0xb0 [ 50.460514][ T3570] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 50.466653][ T3570] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 50.473149][ T3570] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 50.479465][ T3570] ? ocfs2_init_steal_slots+0x150/0x150 [ 50.484982][ T3570] ? rwsem_write_trylock+0x166/0x210 [ 50.490239][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 50.495599][ T3570] ? clear_nonspinnable+0x60/0x60 [ 50.500684][ T3570] ? rcu_is_watching+0x11/0xa0 [ 50.505421][ T3570] ? __lock_acquire+0x1ff0/0x1ff0 [ 50.510420][ T3570] ocfs2_extend_dir+0xdd4/0x5270 [ 50.515330][ T3570] ? hlock_conflict+0x53/0x1f0 [ 50.520090][ T3570] ? ocfs2_dx_dir_name_hash+0xc40/0xc40 [ 50.525628][ T3570] ? ocfs2_allocate_extend_trans+0x620/0x620 [ 50.531578][ T3570] ? mark_lock+0x98/0x340 [ 50.535880][ T3570] ? __lock_acquire+0x1295/0x1ff0 [ 50.540881][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 50.546222][ T3570] ? ocfs2_buffer_cached+0x3b1/0x7b0 [ 50.551476][ T3570] ? __lock_acquire+0x1ff0/0x1ff0 [ 50.556473][ T3570] ? do_raw_spin_lock+0x14a/0x370 [ 50.561472][ T3570] ? ocfs2_read_blocks+0x108d/0x1490 [ 50.566725][ T3570] ? ocfs2_dx_dir_name_hash+0xaa4/0xc40 [ 50.572261][ T3570] ? ocfs2_prepare_dir_for_insert+0x5eb0/0x5eb0 [ 50.578466][ T3570] ? __mutex_unlock_slowpath+0x218/0x750 [ 50.584071][ T3570] ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 50.590109][ T3570] ? ocfs2_refresh_inode+0x960/0x960 [ 50.595365][ T3570] ? ocfs2_fill_new_dir_el+0xf70/0xf70 [ 50.600791][ T3570] ? rcu_is_watching+0x11/0xa0 [ 50.605522][ T3570] ? ocfs2_search_dirblock+0x373/0x7f0 [ 50.610953][ T3570] ? ocfs2_read_inode_block+0x148/0x1d0 [ 50.616465][ T3570] ? ocfs2_read_dir_block_direct+0x540/0x540 [ 50.622413][ T3570] ? __brelse+0x55/0x90 [ 50.626537][ T3570] ? ocfs2_find_entry+0x1015/0x26d0 [ 50.631703][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 50.637042][ T3570] ? ocfs2_free_dir_lookup_result+0x100/0x100 [ 50.643429][ T3570] ? ocfs2_free_dir_lookup_result+0x100/0x100 [ 50.649464][ T3570] ? ocfs2_read_inode_block+0x148/0x1d0 [ 50.655244][ T3570] ? ocfs2_read_inode_block_full+0x1e0/0x1e0 [ 50.661459][ T3570] ? do_raw_spin_unlock+0x137/0x8b0 [ 50.666775][ T3570] ? __kernel_text_address+0x94/0x100 [ 50.672223][ T3570] ? ocfs2_inode_lock_full_nested+0xb2e/0x1bf0 [ 50.678450][ T3570] ? ocfs2_downconvert_lock+0x500/0x500 [ 50.683973][ T3570] ? stack_trace_snprint+0xe0/0xe0 [ 50.689069][ T3570] ? check_noncircular+0x1e1/0x3b0 [ 50.694150][ T3570] ? add_chain_block+0x850/0x850 [ 50.699060][ T3570] ? lockdep_unlock+0x166/0x300 [ 50.703883][ T3570] ? lockdep_lock+0x2a0/0x2a0 [ 50.708665][ T3570] ? ocfs2_check_dir_for_entry+0x2b2/0x460 [ 50.714480][ T3570] ? __brelse+0x55/0x90 [ 50.718620][ T3570] ? ocfs2_lookup_ino_from_name+0x1e0/0x1e0 [ 50.724531][ T3570] ? stack_trace_save+0x113/0x1c0 [ 50.729544][ T3570] ? reacquire_held_locks+0x660/0x660 [ 50.734895][ T3570] ocfs2_link+0xc13/0x1cb0 [ 50.739293][ T3570] ? ocfs2_create+0x430/0x430 [ 50.743940][ T3570] ? mark_lock+0x29b/0x340 [ 50.748328][ T3570] ? __lock_acquire+0x1295/0x1ff0 [ 50.753327][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 50.758670][ T3570] ? from_kgid+0x1a3/0x730 [ 50.763063][ T3570] ? rwsem_write_trylock+0x166/0x210 [ 50.768320][ T3570] ? clear_nonspinnable+0x60/0x60 [ 50.773318][ T3570] ? inode_permission+0xf7/0x450 [ 50.778346][ T3570] vfs_link+0x65e/0x810 [ 50.782481][ T3570] do_linkat+0x5c8/0x9d0 [ 50.786697][ T3570] ? fsnotify_link+0x220/0x220 [ 50.791467][ T3570] ? getname_flags+0x1ec/0x4e0 [ 50.796220][ T3570] ? lockdep_hardirqs_on+0x94/0x130 [ 50.801490][ T3570] __x64_sys_link+0x82/0x90 [ 50.806147][ T3570] do_syscall_64+0x3b/0xb0 [ 50.810544][ T3570] ? clear_bhb_loop+0x15/0x70 [ 50.815202][ T3570] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 50.821090][ T3570] RIP: 0033:0x7fdf649f6a39 [ 50.825483][ T3570] 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 [ 50.845266][ T3570] RSP: 002b:00007ffcd1902778 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 [ 50.853710][ T3570] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fdf649f6a39 [ 50.861832][ T3570] RDX: 00007fdf649f6a39 RSI: 0000000020000280 RDI: 0000000020000040 [ 50.869783][ T3570] RBP: 00007fdf64a6e610 R08: 0000000000000000 R09: 0000000000000000