Warning: Permanently added '10.128.1.143' (ED25519) to the list of known hosts. executing program [ 56.220893][ T4241] loop0: detected capacity change from 0 to 32768 [ 56.230390][ T4241] ======================================================= [ 56.230390][ T4241] WARNING: The mand mount option has been deprecated and [ 56.230390][ T4241] and is ignored by this kernel. Remove the mand [ 56.230390][ T4241] option from the mount to silence this warning. [ 56.230390][ T4241] ======================================================= [ 56.278189][ T4241] JBD2: Ignoring recovery information on journal [ 56.306742][ T4241] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 56.319535][ T4241] [ 56.321882][ T4241] ====================================================== [ 56.328904][ T4241] WARNING: possible circular locking dependency detected [ 56.335921][ T4241] 6.1.122-syzkaller #0 Tainted: G W [ 56.342493][ T4241] ------------------------------------------------------ [ 56.349488][ T4241] syz-executor281/4241 is trying to acquire lock: [ 56.355882][ T4241] ffff888031721488 (&osb->system_file_mutex){+.+.}-{3:3}, at: ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 56.366875][ T4241] [ 56.366875][ T4241] but task is already holding lock: [ 56.374218][ T4241] ffff8880746c0660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x812/0x52b0 [ 56.384977][ T4241] [ 56.384977][ T4241] which lock already depends on the new lock. [ 56.384977][ T4241] [ 56.395445][ T4241] [ 56.395445][ T4241] the existing dependency chain (in reverse order) is: [ 56.404435][ T4241] [ 56.404435][ T4241] -> #1 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}: [ 56.413185][ T4241] lock_acquire+0x1f8/0x5a0 [ 56.418214][ T4241] down_read+0xad/0xa30 [ 56.422896][ T4241] ocfs2_read_virt_blocks+0x2dc/0xab0 [ 56.428768][ T4241] ocfs2_find_entry+0x436/0x28c0 [ 56.434204][ T4241] ocfs2_find_files_on_disk+0x10d/0x3a0 [ 56.440249][ T4241] ocfs2_lookup_ino_from_name+0xad/0x1e0 [ 56.446386][ T4241] ocfs2_get_system_file_inode+0x314/0x7b0 [ 56.452696][ T4241] ocfs2_init_global_system_inodes+0x328/0x720 [ 56.459442][ T4241] ocfs2_fill_super+0x2f72/0x5720 [ 56.464964][ T4241] mount_bdev+0x2c9/0x3f0 [ 56.469796][ T4241] legacy_get_tree+0xeb/0x180 [ 56.474972][ T4241] vfs_get_tree+0x88/0x270 [ 56.479906][ T4241] do_new_mount+0x2ba/0xb40 [ 56.484926][ T4241] __se_sys_mount+0x2d5/0x3c0 [ 56.490109][ T4241] do_syscall_64+0x3b/0xb0 [ 56.495029][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 56.501421][ T4241] [ 56.501421][ T4241] -> #0 (&osb->system_file_mutex){+.+.}-{3:3}: [ 56.509736][ T4241] validate_chain+0x1661/0x5950 [ 56.515088][ T4241] __lock_acquire+0x125b/0x1f80 [ 56.520438][ T4241] lock_acquire+0x1f8/0x5a0 [ 56.525442][ T4241] __mutex_lock+0x132/0xd80 [ 56.530442][ T4241] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 56.536772][ T4241] ocfs2_reserve_suballoc_bits+0x167/0x5190 [ 56.543172][ T4241] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 56.550002][ T4241] ocfs2_extend_dir+0xe26/0x52b0 [ 56.555440][ T4241] ocfs2_prepare_dir_for_insert+0x353b/0x5f10 [ 56.562035][ T4241] ocfs2_mknod+0xdeb/0x2e20 [ 56.567039][ T4241] ocfs2_create+0x1c0/0x4e0 [ 56.572049][ T4241] vfs_create+0x306/0x490 [ 56.576880][ T4241] do_mknodat+0x338/0x5a0 [ 56.581736][ T4241] __x64_sys_mknod+0x8a/0xa0 [ 56.586841][ T4241] do_syscall_64+0x3b/0xb0 [ 56.591758][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 56.598153][ T4241] [ 56.598153][ T4241] other info that might help us debug this: [ 56.598153][ T4241] [ 56.608365][ T4241] Possible unsafe locking scenario: [ 56.608365][ T4241] [ 56.615789][ T4241] CPU0 CPU1 [ 56.621153][ T4241] ---- ---- [ 56.626501][ T4241] lock(&ocfs2_file_ip_alloc_sem_key); [ 56.632028][ T4241] lock(&osb->system_file_mutex); [ 56.639638][ T4241] lock(&ocfs2_file_ip_alloc_sem_key); [ 56.647688][ T4241] lock(&osb->system_file_mutex); [ 56.652780][ T4241] [ 56.652780][ T4241] *** DEADLOCK *** [ 56.652780][ T4241] [ 56.660898][ T4241] 3 locks held by syz-executor281/4241: [ 56.666420][ T4241] #0: ffff888030d0a460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 56.675547][ T4241] #1: ffff8880746c09c8 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 [ 56.686157][ T4241] #2: ffff8880746c0660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_extend_dir+0x812/0x52b0 [ 56.697100][ T4241] [ 56.697100][ T4241] stack backtrace: [ 56.702979][ T4241] CPU: 0 PID: 4241 Comm: syz-executor281 Tainted: G W 6.1.122-syzkaller #0 [ 56.712949][ T4241] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 56.723076][ T4241] Call Trace: [ 56.726341][ T4241] [ 56.729252][ T4241] dump_stack_lvl+0x1e3/0x2cb [ 56.733918][ T4241] ? nf_tcp_handle_invalid+0x642/0x642 [ 56.739392][ T4241] ? print_circular_bug+0x12b/0x1a0 [ 56.744570][ T4241] check_noncircular+0x2fa/0x3b0 [ 56.749485][ T4241] ? add_chain_block+0x850/0x850 [ 56.754401][ T4241] ? lockdep_lock+0x11f/0x2a0 [ 56.759492][ T4241] ? reacquire_held_locks+0x660/0x660 [ 56.764838][ T4241] ? check_noncircular+0x1e3/0x3b0 [ 56.769943][ T4241] ? _find_first_zero_bit+0xd0/0x100 [ 56.775212][ T4241] validate_chain+0x1661/0x5950 [ 56.780053][ T4241] ? reacquire_held_locks+0x660/0x660 [ 56.785419][ T4241] ? validate_chain+0x112/0x5950 [ 56.790339][ T4241] ? hlock_conflict+0x55/0x1f0 [ 56.795082][ T4241] ? __bfs+0x359/0x6e0 [ 56.799132][ T4241] ? mark_lock+0x9a/0x340 [ 56.803445][ T4241] __lock_acquire+0x125b/0x1f80 [ 56.808283][ T4241] lock_acquire+0x1f8/0x5a0 [ 56.812766][ T4241] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 56.818733][ T4241] ? read_lock_is_recursive+0x10/0x10 [ 56.824087][ T4241] ? __might_sleep+0xb0/0xb0 [ 56.828656][ T4241] __mutex_lock+0x132/0xd80 [ 56.833150][ T4241] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 56.839113][ T4241] ? ocfs2_get_system_file_inode+0x144/0x7b0 [ 56.845072][ T4241] ? ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 56.851031][ T4241] ? __lock_acquire+0x1f80/0x1f80 [ 56.856054][ T4241] ? mutex_lock_nested+0x10/0x10 [ 56.860987][ T4241] ? do_raw_spin_unlock+0x137/0x8a0 [ 56.866164][ T4241] ocfs2_get_system_file_inode+0x1a1/0x7b0 [ 56.871957][ T4241] ? ocfs2_fast_symlink_read_folio+0x560/0x560 [ 56.878096][ T4241] ? mark_lock+0x9a/0x340 [ 56.882423][ T4241] ? __lock_acquire+0x125b/0x1f80 [ 56.887468][ T4241] ocfs2_reserve_suballoc_bits+0x167/0x5190 [ 56.893359][ T4241] ? mark_lock+0x9a/0x340 [ 56.897702][ T4241] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 56.903665][ T4241] ? do_raw_spin_unlock+0x137/0x8a0 [ 56.908840][ T4241] ? ocfs2_block_group_search+0x530/0x530 [ 56.914546][ T4241] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 56.920421][ T4241] ? _raw_spin_unlock+0x40/0x40 [ 56.925261][ T4241] ? stack_trace_save+0x113/0x1c0 [ 56.930271][ T4241] ? stack_trace_snprint+0xe0/0xe0 [ 56.935382][ T4241] ? __stack_depot_save+0x3f5/0x470 [ 56.940560][ T4241] ? kasan_set_track+0x60/0x70 [ 56.945313][ T4241] ? kasan_set_track+0x4b/0x70 [ 56.950056][ T4241] ? __kasan_kmalloc+0x97/0xb0 [ 56.954808][ T4241] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 56.961294][ T4241] ? ocfs2_extend_dir+0xe26/0x52b0 [ 56.966386][ T4241] ? ocfs2_prepare_dir_for_insert+0x353b/0x5f10 [ 56.972605][ T4241] ? ocfs2_mknod+0xdeb/0x2e20 [ 56.977282][ T4241] ? ocfs2_create+0x1c0/0x4e0 [ 56.981937][ T4241] ? vfs_create+0x306/0x490 [ 56.986439][ T4241] ? do_mknodat+0x338/0x5a0 [ 56.990934][ T4241] ? __x64_sys_mknod+0x8a/0xa0 [ 56.995678][ T4241] ? do_syscall_64+0x3b/0xb0 [ 57.000251][ T4241] ? entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 57.006396][ T4241] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 57.012714][ T4241] ? ocfs2_init_steal_slots+0x150/0x150 [ 57.018237][ T4241] ? rwsem_write_trylock+0x166/0x210 [ 57.023503][ T4241] ? clear_nonspinnable+0x60/0x60 [ 57.028505][ T4241] ? __bfs+0x359/0x6e0 [ 57.032560][ T4241] ocfs2_extend_dir+0xe26/0x52b0 [ 57.037491][ T4241] ? ocfs2_dx_dir_name_hash+0xc40/0xc40 [ 57.043030][ T4241] ? __bfs+0x359/0x6e0 [ 57.047085][ T4241] ? lock_release+0xd6/0xa20 [ 57.051665][ T4241] ? validate_chain+0x112/0x5950 [ 57.056605][ T4241] ? ocfs2_allocate_extend_trans+0x6b0/0x6b0 [ 57.062582][ T4241] ? mark_lock+0x9a/0x340 [ 57.066907][ T4241] ? __lock_acquire+0x125b/0x1f80 [ 57.071932][ T4241] ? ocfs2_buffer_cached+0x3db/0x8c0 [ 57.077199][ T4241] ? mark_lock+0x9a/0x340 [ 57.081527][ T4241] ? __lock_acquire+0x1f80/0x1f80 [ 57.086534][ T4241] ? do_raw_spin_lock+0x14a/0x370 [ 57.091541][ T4241] ? ocfs2_read_blocks+0x11c9/0x16c0 [ 57.096811][ T4241] ? ocfs2_dx_dir_name_hash+0xaa4/0xc40 [ 57.102338][ T4241] ? ocfs2_prepare_dir_for_insert+0x5f10/0x5f10 [ 57.108559][ T4241] ? __mutex_unlock_slowpath+0x218/0x750 [ 57.114196][ T4241] ocfs2_prepare_dir_for_insert+0x353b/0x5f10 [ 57.120251][ T4241] ? ocfs2_buffer_cached+0x48d/0x8c0 [ 57.125520][ T4241] ? ocfs2_refresh_inode+0x960/0x960 [ 57.130789][ T4241] ? ocfs2_fill_new_dir_el+0xf70/0xf70 [ 57.136228][ T4241] ? ocfs2_read_blocks+0x11c9/0x16c0 [ 57.141498][ T4241] ? rcu_is_watching+0x11/0xb0 [ 57.146238][ T4241] ? ocfs2_search_dirblock+0x393/0x870 [ 57.151686][ T4241] ? ocfs2_read_inode_block+0x148/0x1d0 [ 57.157214][ T4241] ? ocfs2_read_dir_block_direct+0x540/0x540 [ 57.163174][ T4241] ? mutex_unlock+0x10/0x10 [ 57.167655][ T4241] ? __brelse+0x55/0x90 [ 57.171791][ T4241] ? ocfs2_find_entry+0x102a/0x28c0 [ 57.176971][ T4241] ? ocfs2_buffer_cached+0x48d/0x8c0 [ 57.182240][ T4241] ? rcu_is_watching+0x11/0xb0 [ 57.186988][ T4241] ? ocfs2_read_blocks+0x126a/0x16c0 [ 57.192254][ T4241] ? ocfs2_free_dir_lookup_result+0x100/0x100 [ 57.198302][ T4241] ? ocfs2_refresh_inode+0x960/0x960 [ 57.203566][ T4241] ? ocfs2_read_blocks_sync+0xcd0/0xcd0 [ 57.209124][ T4241] ? ocfs2_inode_lock_full_nested+0x177/0x1bf0 [ 57.215259][ T4241] ? ocfs2_read_inode_block+0x148/0x1d0 [ 57.220783][ T4241] ? ocfs2_read_inode_block_full+0x1e0/0x1e0 [ 57.226743][ T4241] ? do_raw_spin_unlock+0x137/0x8a0 [ 57.231926][ T4241] ? ocfs2_inode_lock_full_nested+0xb2e/0x1bf0 [ 57.238062][ T4241] ? lockdep_unlock+0x165/0x300 [ 57.242983][ T4241] ? lockdep_lock+0x2a0/0x2a0 [ 57.247665][ T4241] ? ocfs2_downconvert_lock+0x500/0x500 [ 57.253193][ T4241] ? memset+0x1f/0x40 [ 57.257158][ T4241] ? ocfs2_check_dir_for_entry+0x2e0/0x510 [ 57.262961][ T4241] ? ocfs2_lookup_ino_from_name+0x1e0/0x1e0 [ 57.268837][ T4241] ? validate_chain+0x112/0x5950 [ 57.273781][ T4241] ocfs2_mknod+0xdeb/0x2e20 [ 57.278359][ T4241] ? ocfs2_mkdir+0x4e0/0x4e0 [ 57.282935][ T4241] ? mark_lock+0x9a/0x340 [ 57.287249][ T4241] ? __lock_acquire+0x125b/0x1f80 [ 57.292300][ T4241] ? __lock_acquire+0x125b/0x1f80 [ 57.297330][ T4241] ? ocfs2_inode_unlock_tracker+0x236/0x2a0 [ 57.303206][ T4241] ? __lock_acquire+0x1f80/0x1f80 [ 57.308213][ T4241] ? do_raw_spin_lock+0x14a/0x370 [ 57.313217][ T4241] ? do_raw_spin_unlock+0x137/0x8a0 [ 57.318393][ T4241] ? _raw_spin_unlock+0x24/0x40 [ 57.323228][ T4241] ? put_pid+0xd8/0x120 [ 57.327374][ T4241] ocfs2_create+0x1c0/0x4e0 [ 57.331862][ T4241] ? make_kgid+0x6f0/0x6f0 [ 57.336279][ T4241] ? ocfs2_lookup+0xb20/0xb20 [ 57.340936][ T4241] ? HAS_UNMAPPED_ID+0x1ef/0x240 [ 57.345854][ T4241] ? inode_permission+0xf7/0x450 [ 57.350771][ T4241] ? ocfs2_getattr+0x380/0x380 [ 57.355515][ T4241] ? bpf_lsm_inode_create+0x5/0x10 [ 57.360605][ T4241] ? security_inode_create+0xb4/0x100 [ 57.365959][ T4241] vfs_create+0x306/0x490 [ 57.370268][ T4241] do_mknodat+0x338/0x5a0 [ 57.374585][ T4241] ? __check_object_size+0x4dd/0xa30 [ 57.379855][ T4241] ? do_o_path+0x230/0x230 [ 57.384352][ T4241] ? getname_flags+0x1f9/0x4f0 [ 57.389103][ T4241] __x64_sys_mknod+0x8a/0xa0 [ 57.393690][ T4241] do_syscall_64+0x3b/0xb0 [ 57.398095][ T4241] ? clear_bhb_loop+0x45/0xa0 [ 57.402767][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 57.408656][ T4241] RIP: 0033:0x7fba11246739 [ 57.413081][ T4241] 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 [ 57.432669][ T4241] RSP: 002b:00007ffe6f894508 EFLAGS: 00000246 ORIG_RAX: 0000000000000085 [ 57.441149][ T4241] RAX: ffffffffffffffda RBX: 00007ffe6f8946e8 RCX: 00007fba11246739 [ 57.449116][ T4241] RDX: 0000000000000701 RSI: 0000000000000e80 RDI: 0000000020000540 [ 57.457090][ T4241] RBP: 00007fba112bd610 R08: 000000000000442e R09: 0000000000000000 [ 57.465071][ T4241] R10: 00007ffe6f8943d0 R11: 0000000000000246 R12: 0000000000000001 [ 57.473026][ T4241] R13: 00007ffe6f8946d8 R14: 0000000000000001 R15: 0000000000000001 [ 57.481005][ T4241]