Warning: Permanently added '10.128.1.149' (ED25519) to the list of known hosts. executing program [ 44.069987][ T3563] loop0: detected capacity change from 0 to 32768 [ 44.113733][ T3563] ======================================================= [ 44.113733][ T3563] WARNING: The mand mount option has been deprecated and [ 44.113733][ T3563] and is ignored by this kernel. Remove the mand [ 44.113733][ T3563] option from the mount to silence this warning. [ 44.113733][ T3563] ======================================================= [ 44.177318][ T3563] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 44.190423][ T3563] [ 44.192766][ T3563] ====================================================== [ 44.199768][ T3563] WARNING: possible circular locking dependency detected [ 44.206758][ T3563] 5.15.167-syzkaller #0 Not tainted [ 44.211925][ T3563] ------------------------------------------------------ [ 44.218914][ T3563] syz-executor260/3563 is trying to acquire lock: [ 44.225308][ T3563] ffff88801eafd488 (&osb->system_file_mutex){+.+.}-{3:3}, at: ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 44.236247][ T3563] [ 44.236247][ T3563] but task is already holding lock: [ 44.243612][ T3563] ffff88806fe58660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x7ed/0x5270 [ 44.254115][ T3563] [ 44.254115][ T3563] which lock already depends on the new lock. [ 44.254115][ T3563] [ 44.264483][ T3563] [ 44.264483][ T3563] the existing dependency chain (in reverse order) is: [ 44.273466][ T3563] [ 44.273466][ T3563] -> #1 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}: [ 44.282204][ T3563] lock_acquire+0x1db/0x4f0 [ 44.287205][ T3563] down_read+0x45/0x2e0 [ 44.291864][ T3563] ocfs2_read_virt_blocks+0x2b3/0xa10 [ 44.297729][ T3563] ocfs2_find_entry+0x437/0x26d0 [ 44.303154][ T3563] ocfs2_find_files_on_disk+0xea/0x310 [ 44.309187][ T3563] ocfs2_lookup_ino_from_name+0xad/0x1e0 [ 44.315329][ T3563] ocfs2_get_system_file_inode+0x314/0x7b0 [ 44.321633][ T3563] ocfs2_init_global_system_inodes+0x328/0x720 [ 44.328289][ T3563] ocfs2_fill_super+0x479e/0x58a0 [ 44.333872][ T3563] mount_bdev+0x2c9/0x3f0 [ 44.338702][ T3563] legacy_get_tree+0xeb/0x180 [ 44.343887][ T3563] vfs_get_tree+0x88/0x270 [ 44.348804][ T3563] do_new_mount+0x2ba/0xb40 [ 44.353808][ T3563] __se_sys_mount+0x2d5/0x3c0 [ 44.358978][ T3563] do_syscall_64+0x3b/0xb0 [ 44.363889][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 44.370298][ T3563] [ 44.370298][ T3563] -> #0 (&osb->system_file_mutex){+.+.}-{3:3}: [ 44.378605][ T3563] validate_chain+0x1649/0x5930 [ 44.383947][ T3563] __lock_acquire+0x1295/0x1ff0 [ 44.389288][ T3563] lock_acquire+0x1db/0x4f0 [ 44.394284][ T3563] __mutex_lock_common+0x1da/0x25a0 [ 44.399989][ T3563] mutex_lock_nested+0x17/0x20 [ 44.405243][ T3563] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 44.411539][ T3563] ocfs2_reserve_suballoc_bits+0x16b/0x4c70 [ 44.418014][ T3563] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 44.424846][ T3563] ocfs2_extend_dir+0xdd4/0x5270 [ 44.430273][ T3563] ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 44.436829][ T3563] ocfs2_symlink+0xe3b/0x2e20 [ 44.442008][ T3563] vfs_symlink+0x247/0x3d0 [ 44.446912][ T3563] do_symlinkat+0x1fd/0x600 [ 44.451900][ T3563] __x64_sys_symlink+0x7a/0x90 [ 44.457153][ T3563] do_syscall_64+0x3b/0xb0 [ 44.462059][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 44.468440][ T3563] [ 44.468440][ T3563] other info that might help us debug this: [ 44.468440][ T3563] [ 44.478641][ T3563] Possible unsafe locking scenario: [ 44.478641][ T3563] [ 44.486060][ T3563] CPU0 CPU1 [ 44.491392][ T3563] ---- ---- [ 44.496727][ T3563] lock(&ocfs2_file_ip_alloc_sem_key); [ 44.502243][ T3563] lock(&osb->system_file_mutex); [ 44.509839][ T3563] lock(&ocfs2_file_ip_alloc_sem_key); [ 44.517873][ T3563] lock(&osb->system_file_mutex); [ 44.522968][ T3563] [ 44.522968][ T3563] *** DEADLOCK *** [ 44.522968][ T3563] [ 44.531079][ T3563] 3 locks held by syz-executor260/3563: [ 44.536596][ T3563] #0: ffff888077dd2460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 44.545717][ T3563] #1: ffff88806fe589c8 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 [ 44.556297][ T3563] #2: ffff88806fe58660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x7ed/0x5270 [ 44.567220][ T3563] [ 44.567220][ T3563] stack backtrace: [ 44.573101][ T3563] CPU: 1 PID: 3563 Comm: syz-executor260 Not tainted 5.15.167-syzkaller #0 [ 44.581743][ T3563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 44.591779][ T3563] Call Trace: [ 44.595035][ T3563] [ 44.597939][ T3563] dump_stack_lvl+0x1e3/0x2d0 [ 44.602589][ T3563] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 44.608193][ T3563] ? print_circular_bug+0x12b/0x1a0 [ 44.613361][ T3563] check_noncircular+0x2f8/0x3b0 [ 44.618269][ T3563] ? add_chain_block+0x850/0x850 [ 44.623176][ T3563] ? lockdep_lock+0x11f/0x2a0 [ 44.627834][ T3563] ? validate_chain+0x112/0x5930 [ 44.632742][ T3563] validate_chain+0x1649/0x5930 [ 44.637565][ T3563] ? validate_chain+0x112/0x5930 [ 44.642473][ T3563] ? reacquire_held_locks+0x660/0x660 [ 44.647816][ T3563] ? reacquire_held_locks+0x660/0x660 [ 44.653237][ T3563] ? validate_chain+0x112/0x5930 [ 44.658155][ T3563] ? reacquire_held_locks+0x660/0x660 [ 44.663496][ T3563] ? validate_chain+0x112/0x5930 [ 44.668438][ T3563] ? hlock_conflict+0x53/0x1f0 [ 44.673171][ T3563] ? __bfs+0x359/0x6e0 [ 44.677209][ T3563] ? mark_lock+0x98/0x340 [ 44.681513][ T3563] __lock_acquire+0x1295/0x1ff0 [ 44.686335][ T3563] lock_acquire+0x1db/0x4f0 [ 44.690808][ T3563] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 44.696765][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 44.702112][ T3563] ? __might_sleep+0xc0/0xc0 [ 44.706681][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 44.711682][ T3563] __mutex_lock_common+0x1da/0x25a0 [ 44.716861][ T3563] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 44.722821][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 44.728179][ T3563] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 44.734145][ T3563] ? ocfs2_get_system_file_inode+0x144/0x7b0 [ 44.740121][ T3563] ? mutex_lock_io_nested+0x60/0x60 [ 44.745295][ T3563] ? do_raw_spin_lock+0x14a/0x370 [ 44.750294][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 44.755485][ T3563] mutex_lock_nested+0x17/0x20 [ 44.760232][ T3563] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 44.766013][ T3563] ? ocfs2_fast_symlink_readpage+0x420/0x420 [ 44.771983][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 44.776981][ T3563] ocfs2_reserve_suballoc_bits+0x16b/0x4c70 [ 44.782865][ T3563] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 44.788817][ T3563] ? print_irqtrace_events+0x210/0x210 [ 44.794244][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 44.799461][ T3563] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 44.805333][ T3563] ? lockdep_hardirqs_on+0x94/0x130 [ 44.810509][ T3563] ? ocfs2_block_group_search+0x490/0x490 [ 44.816204][ T3563] ? stack_trace_save+0x113/0x1c0 [ 44.821307][ T3563] ? stack_trace_snprint+0xe0/0xe0 [ 44.826393][ T3563] ? stack_depot_save+0x3db/0x440 [ 44.831394][ T3563] ? ____kasan_kmalloc+0xd1/0xf0 [ 44.836306][ T3563] ? ____kasan_kmalloc+0xba/0xf0 [ 44.841228][ T3563] ? kmem_cache_alloc_trace+0x143/0x290 [ 44.846757][ T3563] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 44.853245][ T3563] ? ocfs2_extend_dir+0xdd4/0x5270 [ 44.858324][ T3563] ? ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 44.864531][ T3563] ? ocfs2_symlink+0xe3b/0x2e20 [ 44.869350][ T3563] ? vfs_symlink+0x247/0x3d0 [ 44.873911][ T3563] ? do_symlinkat+0x1fd/0x600 [ 44.878569][ T3563] ? __x64_sys_symlink+0x7a/0x90 [ 44.883481][ T3563] ? do_syscall_64+0x3b/0xb0 [ 44.888044][ T3563] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 44.894091][ T3563] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 44.900575][ T3563] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 44.906888][ T3563] ? ocfs2_init_steal_slots+0x150/0x150 [ 44.912431][ T3563] ? rwsem_write_trylock+0x166/0x210 [ 44.917692][ T3563] ? check_path+0x40/0x40 [ 44.921995][ T3563] ? clear_nonspinnable+0x60/0x60 [ 44.927080][ T3563] ? check_noncircular+0x1e1/0x3b0 [ 44.932178][ T3563] ocfs2_extend_dir+0xdd4/0x5270 [ 44.937098][ T3563] ? reacquire_held_locks+0x660/0x660 [ 44.942441][ T3563] ? rcu_is_watching+0x11/0xa0 [ 44.947281][ T3563] ? ocfs2_dx_dir_name_hash+0xc40/0xc40 [ 44.952808][ T3563] ? __bfs+0x359/0x6e0 [ 44.956848][ T3563] ? validate_chain+0x112/0x5930 [ 44.961757][ T3563] ? ocfs2_allocate_extend_trans+0x620/0x620 [ 44.967706][ T3563] ? mark_lock+0x98/0x340 [ 44.972002][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 44.976997][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 44.982336][ T3563] ? ocfs2_buffer_cached+0x3b1/0x7b0 [ 44.987594][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 44.992595][ T3563] ? do_raw_spin_lock+0x14a/0x370 [ 44.997599][ T3563] ? ocfs2_read_blocks+0x108d/0x1490 [ 45.002868][ T3563] ? ocfs2_dx_dir_name_hash+0xaa4/0xc40 [ 45.008389][ T3563] ? ocfs2_prepare_dir_for_insert+0x5eb0/0x5eb0 [ 45.014615][ T3563] ? __mutex_unlock_slowpath+0x218/0x750 [ 45.020227][ T3563] ocfs2_prepare_dir_for_insert+0x34cd/0x5eb0 [ 45.026267][ T3563] ? ocfs2_buffer_cached+0x443/0x7b0 [ 45.031524][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.036518][ T3563] ? ocfs2_refresh_inode+0x960/0x960 [ 45.041804][ T3563] ? ocfs2_fill_new_dir_el+0xf70/0xf70 [ 45.047245][ T3563] ? ocfs2_read_blocks+0x108d/0x1490 [ 45.052498][ T3563] ? ocfs2_buffer_cached+0x443/0x7b0 [ 45.057753][ T3563] ? rcu_is_watching+0x11/0xa0 [ 45.062490][ T3563] ? ocfs2_search_dirblock+0x373/0x7f0 [ 45.067924][ T3563] ? ocfs2_read_inode_block+0x148/0x1d0 [ 45.073440][ T3563] ? ocfs2_read_dir_block_direct+0x540/0x540 [ 45.079395][ T3563] ? mutex_unlock+0x10/0x10 [ 45.083867][ T3563] ? __brelse+0x55/0x90 [ 45.088001][ T3563] ? ocfs2_find_entry+0x1015/0x26d0 [ 45.093166][ T3563] ? ocfs2_buffer_cached+0x443/0x7b0 [ 45.098421][ T3563] ? ocfs2_read_blocks+0x110e/0x1490 [ 45.103676][ T3563] ? ocfs2_free_dir_lookup_result+0x100/0x100 [ 45.109711][ T3563] ? ocfs2_refresh_inode+0x960/0x960 [ 45.114968][ T3563] ? ocfs2_read_blocks_sync+0xbc0/0xbc0 [ 45.120501][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 45.125841][ T3563] ? ocfs2_inode_lock_full_nested+0x177/0x1bf0 [ 45.131965][ T3563] ? ocfs2_read_inode_block+0x148/0x1d0 [ 45.137482][ T3563] ? ocfs2_read_inode_block_full+0x1e0/0x1e0 [ 45.143431][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 45.148609][ T3563] ? ocfs2_inode_lock_full_nested+0xb2e/0x1bf0 [ 45.154732][ T3563] ? mark_lock+0x98/0x340 [ 45.159029][ T3563] ? ocfs2_downconvert_lock+0x500/0x500 [ 45.164542][ T3563] ? memset+0x1f/0x40 [ 45.168495][ T3563] ? ocfs2_check_dir_for_entry+0x2b2/0x460 [ 45.174268][ T3563] ? ocfs2_lookup_ino_from_name+0x1e0/0x1e0 [ 45.180130][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 45.185472][ T3563] ? ocfs2_inode_lock_full_nested+0x177/0x1bf0 [ 45.191608][ T3563] ocfs2_symlink+0xe3b/0x2e20 [ 45.196267][ T3563] ? ocfs2_unlink+0x1aa0/0x1aa0 [ 45.201087][ T3563] ? mark_lock+0x98/0x340 [ 45.205384][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 45.210379][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 45.215720][ T3563] ? ocfs2_inode_unlock_tracker+0x236/0x2a0 [ 45.221583][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.226576][ T3563] ? do_raw_spin_lock+0x14a/0x370 [ 45.231587][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 45.236754][ T3563] ? _raw_spin_unlock+0x24/0x40 [ 45.241579][ T3563] ? put_pid+0xd8/0x120 [ 45.245715][ T3563] ? ocfs2_permission+0xfb/0x1b0 [ 45.250726][ T3563] ? ocfs2_getattr+0x380/0x380 [ 45.255458][ T3563] ? make_kgid+0x6f0/0x6f0 [ 45.259847][ T3563] ? apparmor_path_symlink+0x204/0x2a0 [ 45.265281][ T3563] ? HAS_UNMAPPED_ID+0x1ef/0x240 [ 45.270190][ T3563] ? ocfs2_getattr+0x380/0x380 [ 45.274924][ T3563] ? bpf_lsm_inode_symlink+0x5/0x10 [ 45.280095][ T3563] ? security_inode_symlink+0xaf/0xf0 [ 45.285437][ T3563] vfs_symlink+0x247/0x3d0 [ 45.289831][ T3563] do_symlinkat+0x1fd/0x600 [ 45.294304][ T3563] ? vfs_symlink+0x3d0/0x3d0 [ 45.298863][ T3563] ? getname_flags+0x1ec/0x4e0 [ 45.303596][ T3563] ? lockdep_hardirqs_on+0x94/0x130 [ 45.309025][ T3563] __x64_sys_symlink+0x7a/0x90 [ 45.313755][ T3563] do_syscall_64+0x3b/0xb0 [ 45.318142][ T3563] ? clear_bhb_loop+0x15/0x70 [ 45.322804][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.328760][ T3563] RIP: 0033:0x7fa122558a79 [ 45.333154][ T3563] 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 [ 45.352774][ T3563] RSP: 002b:00007ffd37be58b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 [ 45.361167][ T3563] RAX: ffffffffffffffda RBX: 6f6c666c61636f6c RCX: 00007fa122558a79 [ 45.369112][ T3563] RDX: 00007fa122557d70 RSI: 0000000020000cc0 RDI: 0000000020000dc0 [ 45.377076][ T3563] RBP: 00007fa1225a105e R08: 000000000000442a R09