Warning: Permanently added '10.128.1.70' (ED25519) to the list of known hosts. executing program [ 45.823360][ T4160] loop0: detected capacity change from 0 to 32768 [ 45.879201][ T4160] ======================================================= [ 45.879201][ T4160] WARNING: The mand mount option has been deprecated and [ 45.879201][ T4160] and is ignored by this kernel. Remove the mand [ 45.879201][ T4160] option from the mount to silence this warning. [ 45.879201][ T4160] ======================================================= [ 45.942977][ T4160] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 45.956588][ T4160] [ 45.958965][ T4160] ====================================================== [ 45.966064][ T4160] WARNING: possible circular locking dependency detected [ 45.973065][ T4160] 5.15.172-syzkaller #0 Not tainted [ 45.978244][ T4160] ------------------------------------------------------ [ 45.985241][ T4160] syz-executor378/4160 is trying to acquire lock: [ 45.991628][ T4160] ffff8880774f1488 (&osb->system_file_mutex){+.+.}-{3:3}, at: ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 46.002575][ T4160] [ 46.002575][ T4160] but task is already holding lock: [ 46.010348][ T4160] ffff8880713b8660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x7ed/0x5270 [ 46.020846][ T4160] [ 46.020846][ T4160] which lock already depends on the new lock. [ 46.020846][ T4160] [ 46.031313][ T4160] [ 46.031313][ T4160] the existing dependency chain (in reverse order) is: [ 46.040348][ T4160] [ 46.040348][ T4160] -> #1 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}: [ 46.049095][ T4160] lock_acquire+0x1db/0x4f0 [ 46.054215][ T4160] down_read+0x45/0x2e0 [ 46.058883][ T4160] ocfs2_read_virt_blocks+0x2b3/0xa10 [ 46.064758][ T4160] ocfs2_find_entry+0x437/0x26d0 [ 46.070191][ T4160] ocfs2_find_files_on_disk+0xea/0x310 [ 46.076146][ T4160] ocfs2_lookup_ino_from_name+0xad/0x1e0 [ 46.082276][ T4160] ocfs2_get_system_file_inode+0x314/0x7b0 [ 46.088587][ T4160] ocfs2_init_global_system_inodes+0x328/0x720 [ 46.095260][ T4160] ocfs2_fill_super+0x479e/0x58a0 [ 46.100784][ T4160] mount_bdev+0x2c9/0x3f0 [ 46.105869][ T4160] legacy_get_tree+0xeb/0x180 [ 46.111043][ T4160] vfs_get_tree+0x88/0x270 [ 46.115981][ T4160] do_new_mount+0x2ba/0xb40 [ 46.120978][ T4160] __se_sys_mount+0x2d5/0x3c0 [ 46.126149][ T4160] do_syscall_64+0x3b/0xb0 [ 46.131058][ T4160] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 46.137483][ T4160] [ 46.137483][ T4160] -> #0 (&osb->system_file_mutex){+.+.}-{3:3}: [ 46.145800][ T4160] validate_chain+0x1649/0x5930 [ 46.151166][ T4160] __lock_acquire+0x1295/0x1ff0 [ 46.156524][ T4160] lock_acquire+0x1db/0x4f0 [ 46.161528][ T4160] __mutex_lock_common+0x1da/0x25a0 [ 46.167231][ T4160] mutex_lock_nested+0x17/0x20 [ 46.172502][ T4160] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 46.178824][ T4160] ocfs2_reserve_suballoc_bits+0x16b/0x4c70 [ 46.185246][ T4160] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 46.192216][ T4160] ocfs2_extend_dir+0xdd4/0x5270 [ 46.197668][ T4160] ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 46.204237][ T4160] ocfs2_symlink+0xe3b/0x2e20 [ 46.209419][ T4160] vfs_symlink+0x247/0x3d0 [ 46.214336][ T4160] do_symlinkat+0x1fd/0x600 [ 46.219333][ T4160] __x64_sys_symlinkat+0x95/0xa0 [ 46.224776][ T4160] do_syscall_64+0x3b/0xb0 [ 46.229685][ T4160] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 46.236075][ T4160] [ 46.236075][ T4160] other info that might help us debug this: [ 46.236075][ T4160] [ 46.246278][ T4160] Possible unsafe locking scenario: [ 46.246278][ T4160] [ 46.253728][ T4160] CPU0 CPU1 [ 46.259075][ T4160] ---- ---- [ 46.264430][ T4160] lock(&ocfs2_file_ip_alloc_sem_key); [ 46.269986][ T4160] lock(&osb->system_file_mutex); [ 46.277607][ T4160] lock(&ocfs2_file_ip_alloc_sem_key); [ 46.285657][ T4160] lock(&osb->system_file_mutex); [ 46.290757][ T4160] [ 46.290757][ T4160] *** DEADLOCK *** [ 46.290757][ T4160] [ 46.298886][ T4160] 3 locks held by syz-executor378/4160: [ 46.304411][ T4160] #0: ffff888023740460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 46.313551][ T4160] #1: ffff8880713b89c8 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 [ 46.324142][ T4160] #2: ffff8880713b8660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x7ed/0x5270 [ 46.335071][ T4160] [ 46.335071][ T4160] stack backtrace: [ 46.340946][ T4160] CPU: 0 PID: 4160 Comm: syz-executor378 Not tainted 5.15.172-syzkaller #0 [ 46.349595][ T4160] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 46.359636][ T4160] Call Trace: [ 46.362897][ T4160] [ 46.365804][ T4160] dump_stack_lvl+0x1e3/0x2d0 [ 46.370460][ T4160] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 46.376068][ T4160] ? print_circular_bug+0x12b/0x1a0 [ 46.381244][ T4160] check_noncircular+0x2f8/0x3b0 [ 46.386158][ T4160] ? hlock_conflict+0x53/0x1f0 [ 46.390897][ T4160] ? add_chain_block+0x850/0x850 [ 46.395811][ T4160] ? lockdep_lock+0x11f/0x2a0 [ 46.400482][ T4160] ? validate_chain+0x112/0x5930 [ 46.405747][ T4160] validate_chain+0x1649/0x5930 [ 46.410575][ T4160] ? validate_chain+0x112/0x5930 [ 46.415488][ T4160] ? reacquire_held_locks+0x660/0x660 [ 46.420838][ T4160] ? reacquire_held_locks+0x660/0x660 [ 46.426188][ T4160] ? validate_chain+0x112/0x5930 [ 46.431105][ T4160] ? reacquire_held_locks+0x660/0x660 [ 46.436450][ T4160] ? validate_chain+0x112/0x5930 [ 46.441583][ T4160] ? hlock_conflict+0x53/0x1f0 [ 46.446320][ T4160] ? __bfs+0x359/0x6e0 [ 46.450363][ T4160] ? mark_lock+0x98/0x340 [ 46.454695][ T4160] __lock_acquire+0x1295/0x1ff0 [ 46.459524][ T4160] lock_acquire+0x1db/0x4f0 [ 46.464003][ T4160] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 46.469958][ T4160] ? read_lock_is_recursive+0x10/0x10 [ 46.475311][ T4160] ? __might_sleep+0xc0/0xc0 [ 46.479877][ T4160] ? __lock_acquire+0x1295/0x1ff0 [ 46.484879][ T4160] __mutex_lock_common+0x1da/0x25a0 [ 46.490061][ T4160] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 46.496030][ T4160] ? read_lock_is_recursive+0x10/0x10 [ 46.501384][ T4160] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 46.507639][ T4160] ? ocfs2_get_system_file_inode+0x144/0x7b0 [ 46.513596][ T4160] ? mutex_lock_io_nested+0x60/0x60 [ 46.518771][ T4160] ? do_raw_spin_lock+0x14a/0x370 [ 46.523778][ T4160] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.528951][ T4160] mutex_lock_nested+0x17/0x20 [ 46.533692][ T4160] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 46.539480][ T4160] ? ocfs2_fast_symlink_readpage+0x420/0x420 [ 46.545446][ T4160] ? __lock_acquire+0x1295/0x1ff0 [ 46.550457][ T4160] ocfs2_reserve_suballoc_bits+0x16b/0x4c70 [ 46.556337][ T4160] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 46.562294][ T4160] ? print_irqtrace_events+0x210/0x210 [ 46.567732][ T4160] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.572909][ T4160] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 46.578782][ T4160] ? lockdep_hardirqs_on+0x94/0x130 [ 46.583997][ T4160] ? ocfs2_block_group_search+0x490/0x490 [ 46.589694][ T4160] ? stack_trace_save+0x113/0x1c0 [ 46.594696][ T4160] ? stack_trace_snprint+0xe0/0xe0 [ 46.599783][ T4160] ? stack_depot_save+0x3db/0x440 [ 46.604781][ T4160] ? ____kasan_kmalloc+0xd1/0xf0 [ 46.609692][ T4160] ? ____kasan_kmalloc+0xba/0xf0 [ 46.614601][ T4160] ? kmem_cache_alloc_trace+0x143/0x290 [ 46.620129][ T4160] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 46.626608][ T4160] ? ocfs2_extend_dir+0xdd4/0x5270 [ 46.631696][ T4160] ? ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 46.637912][ T4160] ? ocfs2_symlink+0xe3b/0x2e20 [ 46.642735][ T4160] ? vfs_symlink+0x247/0x3d0 [ 46.647299][ T4160] ? do_symlinkat+0x1fd/0x600 [ 46.651968][ T4160] ? __x64_sys_symlinkat+0x95/0xa0 [ 46.657164][ T4160] ? do_syscall_64+0x3b/0xb0 [ 46.661741][ T4160] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 46.667805][ T4160] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 46.674293][ T4160] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 46.680602][ T4160] ? ocfs2_init_steal_slots+0x150/0x150 [ 46.686144][ T4160] ? rwsem_write_trylock+0x166/0x210 [ 46.691431][ T4160] ? check_path+0x40/0x40 [ 46.695738][ T4160] ? clear_nonspinnable+0x60/0x60 [ 46.700754][ T4160] ocfs2_extend_dir+0xdd4/0x5270 [ 46.705680][ T4160] ? validate_chain+0x112/0x5930 [ 46.710594][ T4160] ? ocfs2_dx_dir_name_hash+0xc40/0xc40 [ 46.716123][ T4160] ? validate_chain+0x112/0x5930 [ 46.721034][ T4160] ? ocfs2_allocate_extend_trans+0x620/0x620 [ 46.726998][ T4160] ? mark_lock+0x98/0x340 [ 46.731519][ T4160] ? __lock_acquire+0x1295/0x1ff0 [ 46.736524][ T4160] ? read_lock_is_recursive+0x10/0x10 [ 46.741874][ T4160] ? ocfs2_buffer_cached+0x3b1/0x7b0 [ 46.747138][ T4160] ? __lock_acquire+0x1ff0/0x1ff0 [ 46.752137][ T4160] ? do_raw_spin_lock+0x14a/0x370 [ 46.757140][ T4160] ? ocfs2_read_blocks+0x1055/0x1450 [ 46.762404][ T4160] ? ocfs2_dx_dir_name_hash+0xaa4/0xc40 [ 46.767927][ T4160] ? ocfs2_prepare_dir_for_insert+0x5eb0/0x5eb0 [ 46.774141][ T4160] ? __mutex_unlock_slowpath+0x218/0x750 [ 46.779772][ T4160] ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 46.785817][ T4160] ? ocfs2_buffer_cached+0x443/0x7b0 [ 46.791079][ T4160] ? __lock_acquire+0x1ff0/0x1ff0 [ 46.796084][ T4160] ? ocfs2_refresh_inode+0x960/0x960 [ 46.801349][ T4160] ? ocfs2_fill_new_dir_el+0xf70/0xf70 [ 46.807403][ T4160] ? ocfs2_read_blocks+0x1055/0x1450 [ 46.812672][ T4160] ? ocfs2_buffer_cached+0x443/0x7b0 [ 46.817947][ T4160] ? rcu_is_watching+0x11/0xa0 [ 46.822697][ T4160] ? ocfs2_search_dirblock+0x373/0x7f0 [ 46.828138][ T4160] ? ocfs2_read_inode_block+0x148/0x1d0 [ 46.833667][ T4160] ? ocfs2_read_dir_block_direct+0x540/0x540 [ 46.839624][ T4160] ? mutex_unlock+0x10/0x10 [ 46.844108][ T4160] ? __brelse+0x55/0x90 [ 46.848343][ T4160] ? ocfs2_find_entry+0x1015/0x26d0 [ 46.853607][ T4160] ? ocfs2_buffer_cached+0x443/0x7b0 [ 46.858876][ T4160] ? ocfs2_read_blocks+0x10d6/0x1450 [ 46.864146][ T4160] ? ocfs2_free_dir_lookup_result+0x100/0x100 [ 46.870192][ T4160] ? ocfs2_refresh_inode+0x960/0x960 [ 46.875482][ T4160] ? ocfs2_read_blocks_sync+0xbc0/0xbc0 [ 46.881006][ T4160] ? read_lock_is_recursive+0x10/0x10 [ 46.886365][ T4160] ? ocfs2_inode_lock_full_nested+0x177/0x1bf0 [ 46.892496][ T4160] ? ocfs2_read_inode_block+0x148/0x1d0 [ 46.898035][ T4160] ? ocfs2_read_inode_block_full+0x1e0/0x1e0 [ 46.904009][ T4160] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.909198][ T4160] ? ocfs2_inode_lock_full_nested+0xb2e/0x1bf0 [ 46.915343][ T4160] ? mark_lock+0x98/0x340 [ 46.919652][ T4160] ? ocfs2_downconvert_lock+0x500/0x500 [ 46.925179][ T4160] ? memset+0x1f/0x40 [ 46.929141][ T4160] ? ocfs2_check_dir_for_entry+0x2b2/0x460 [ 46.934926][ T4160] ? ocfs2_lookup_ino_from_name+0x1e0/0x1e0 [ 46.940795][ T4160] ? read_lock_is_recursive+0x10/0x10 [ 46.946143][ T4160] ? ocfs2_inode_lock_full_nested+0x177/0x1bf0 [ 46.952276][ T4160] ocfs2_symlink+0xe3b/0x2e20 [ 46.956949][ T4160] ? ocfs2_unlink+0x1aa0/0x1aa0 [ 46.961797][ T4160] ? mark_lock+0x98/0x340 [ 46.966119][ T4160] ? __lock_acquire+0x1295/0x1ff0 [ 46.971132][ T4160] ? read_lock_is_recursive+0x10/0x10 [ 46.976505][ T4160] ? ocfs2_inode_unlock_tracker+0x236/0x2a0 [ 46.982387][ T4160] ? __lock_acquire+0x1ff0/0x1ff0 [ 46.987403][ T4160] ? do_raw_spin_lock+0x14a/0x370 [ 46.992437][ T4160] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.997625][ T4160] ? _raw_spin_unlock+0x24/0x40 [ 47.002465][ T4160] ? put_pid+0xd8/0x120 [ 47.006600][ T4160] ? ocfs2_permission+0xfb/0x1b0 [ 47.011608][ T4160] ? ocfs2_getattr+0x380/0x380 [ 47.016356][ T4160] ? make_kgid+0x6f0/0x6f0 [ 47.020759][ T4160] ? apparmor_path_symlink+0x204/0x2a0 [ 47.026201][ T4160] ? HAS_UNMAPPED_ID+0x1ef/0x240 [ 47.031142][ T4160] ? ocfs2_getattr+0x380/0x380 [ 47.035905][ T4160] ? bpf_lsm_inode_symlink+0x5/0x10 [ 47.041088][ T4160] ? security_inode_symlink+0xaf/0xf0 [ 47.046439][ T4160] vfs_symlink+0x247/0x3d0 [ 47.050837][ T4160] do_symlinkat+0x1fd/0x600 [ 47.055319][ T4160] ? vfs_symlink+0x3d0/0x3d0 [ 47.059885][ T4160] ? getname_flags+0x1ec/0x4e0 [ 47.064626][ T4160] __x64_sys_symlinkat+0x95/0xa0 [ 47.069538][ T4160] do_syscall_64+0x3b/0xb0 [ 47.073930][ T4160] ? clear_bhb_loop+0x15/0x70 [ 47.078605][ T4160] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 47.084482][ T4160] RIP: 0033:0x7ffa60d3fab9 [ 47.088885][ T4160] 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 [ 47.109014][ T4160] RSP: 002b:00007fffc073c758 EFLAGS: 00000246 ORIG_RAX: 000000000000010a [ 47.117416][ T4160] RAX: ffffffffffffffda RBX: 00007fffc073c928 RCX: 00007ffa60d3fab9 [ 47.125374][ T4160] RDX: 0000000020000ec0 RSI: 0000000000000004 RDI: 0000000020000dc0 [ 47.133332][ T4160] RBP: 00007ffa60db6610 R08: 0000000000000000 R09: 00007fffc073c928 [ 47.141286][ T4160] R10: 0000000000004425 R11: 0000000000000246 R12: 0000000000