Warning: Permanently added '10.128.0.6' (ED25519) to the list of known hosts. executing program [ 67.112059][ T4163] loop0: detected capacity change from 0 to 8192 [ 67.228461][ T4163] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 67.239973][ T4163] REISERFS (device loop0): using ordered data mode [ 67.247020][ T4163] reiserfs: using flush barriers [ 67.255621][ T4163] REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 16414, max trans age 30 [ 67.274972][ T4163] REISERFS (device loop0): checking transaction log (loop0) [ 67.287271][ T4163] REISERFS (device loop0): Using r5 hash to sort names [ 67.296731][ T4163] REISERFS (device loop0): using 3.5.x disk format [ 67.307429][ T4163] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 67.323303][ T4163] [ 67.325765][ T4163] ====================================================== [ 67.333667][ T4163] WARNING: possible circular locking dependency detected [ 67.341713][ T4163] 5.15.180-syzkaller #0 Not tainted [ 67.348329][ T4163] ------------------------------------------------------ [ 67.356186][ T4163] syz-executor258/4163 is trying to acquire lock: [ 67.362775][ T4163] ffff888026d40460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5c/0x200 [ 67.372416][ T4163] [ 67.372416][ T4163] but task is already holding lock: [ 67.380376][ T4163] ffff88814138b090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x75/0xd0 [ 67.390320][ T4163] [ 67.390320][ T4163] which lock already depends on the new lock. [ 67.390320][ T4163] [ 67.401861][ T4163] [ 67.401861][ T4163] the existing dependency chain (in reverse order) is: [ 67.411876][ T4163] [ 67.411876][ T4163] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 67.419942][ T4163] __mutex_lock_common+0x1eb/0x2390 [ 67.426748][ T4163] mutex_lock_nested+0x17/0x20 [ 67.432738][ T4163] reiserfs_write_lock+0x75/0xd0 [ 67.439368][ T4163] reiserfs_lookup+0x137/0x420 [ 67.445048][ T4163] __lookup_slow+0x27d/0x3d0 [ 67.450520][ T4163] lookup_one_len+0x18e/0x2c0 [ 67.456007][ T4163] reiserfs_lookup_privroot+0x85/0x1e0 [ 67.462747][ T4163] reiserfs_fill_super+0x1f65/0x23e0 [ 67.469335][ T4163] mount_bdev+0x287/0x3c0 [ 67.474389][ T4163] legacy_get_tree+0xe6/0x180 [ 67.480360][ T4163] vfs_get_tree+0x88/0x270 [ 67.485503][ T4163] do_new_mount+0x24a/0xa40 [ 67.490895][ T4163] __se_sys_mount+0x2d6/0x3c0 [ 67.496195][ T4163] do_syscall_64+0x4c/0xa0 [ 67.501236][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 67.507768][ T4163] [ 67.507768][ T4163] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 67.516742][ T4163] down_write+0x38/0x60 [ 67.521449][ T4163] path_openat+0x7f3/0x2f30 [ 67.526982][ T4163] do_filp_open+0x1b3/0x3e0 [ 67.532013][ T4163] do_sys_openat2+0x142/0x4a0 [ 67.537222][ T4163] __x64_sys_creat+0x8c/0xb0 [ 67.542373][ T4163] do_syscall_64+0x4c/0xa0 [ 67.547341][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 67.553943][ T4163] [ 67.553943][ T4163] -> #0 (sb_writers#9){.+.+}-{0:0}: [ 67.561750][ T4163] __lock_acquire+0x2c33/0x7c60 [ 67.567788][ T4163] lock_acquire+0x197/0x3f0 [ 67.573675][ T4163] sb_start_write+0x4f/0x1c0 [ 67.579026][ T4163] mnt_want_write_file+0x5c/0x200 [ 67.584715][ T4163] reiserfs_ioctl+0x10a/0x330 [ 67.591601][ T4163] __se_sys_ioctl+0xfa/0x170 [ 67.597433][ T4163] do_syscall_64+0x4c/0xa0 [ 67.602992][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 67.615288][ T4163] [ 67.615288][ T4163] other info that might help us debug this: [ 67.615288][ T4163] [ 67.626341][ T4163] Chain exists of: [ 67.626341][ T4163] sb_writers#9 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 67.626341][ T4163] [ 67.641951][ T4163] Possible unsafe locking scenario: [ 67.641951][ T4163] [ 67.650099][ T4163] CPU0 CPU1 [ 67.655817][ T4163] ---- ---- [ 67.661503][ T4163] lock(&sbi->lock); [ 67.665501][ T4163] lock(&type->i_mutex_dir_key#6); [ 67.673309][ T4163] lock(&sbi->lock); [ 67.679804][ T4163] lock(sb_writers#9); [ 67.684004][ T4163] [ 67.684004][ T4163] *** DEADLOCK *** [ 67.684004][ T4163] [ 67.692733][ T4163] 1 lock held by syz-executor258/4163: [ 67.698406][ T4163] #0: ffff88814138b090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x75/0xd0 [ 67.707989][ T4163] [ 67.707989][ T4163] stack backtrace: [ 67.713983][ T4163] CPU: 0 PID: 4163 Comm: syz-executor258 Not tainted 5.15.180-syzkaller #0 [ 67.723001][ T4163] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 67.733563][ T4163] Call Trace: [ 67.737083][ T4163] [ 67.740236][ T4163] dump_stack_lvl+0x168/0x230 [ 67.745043][ T4163] ? load_image+0x3b0/0x3b0 [ 67.749651][ T4163] ? show_regs_print_info+0x20/0x20 [ 67.754855][ T4163] ? print_circular_bug+0x12b/0x1a0 [ 67.760563][ T4163] check_noncircular+0x274/0x310 [ 67.765630][ T4163] ? add_chain_block+0x940/0x940 [ 67.770824][ T4163] ? lockdep_lock+0xdc/0x1e0 [ 67.775554][ T4163] ? lockdep_hardirqs_on_prepare+0x3fc/0x760 [ 67.781691][ T4163] ? mark_lock+0x94/0x320 [ 67.786333][ T4163] __lock_acquire+0x2c33/0x7c60 [ 67.792169][ T4163] ? verify_lock_unused+0x140/0x140 [ 67.797663][ T4163] ? __mutex_trylock_common+0x14f/0x250 [ 67.803811][ T4163] ? rcu_lock_release+0x20/0x20 [ 67.810277][ T4163] ? tomoyo_check_path_acl+0x1c0/0x1c0 [ 67.815818][ T4163] ? reiserfs_write_lock+0x75/0xd0 [ 67.821386][ T4163] ? reiserfs_write_lock+0x75/0xd0 [ 67.827291][ T4163] lock_acquire+0x197/0x3f0 [ 67.832595][ T4163] ? mnt_want_write_file+0x5c/0x200 [ 67.838414][ T4163] ? __might_sleep+0xf0/0xf0 [ 67.844535][ T4163] ? read_lock_is_recursive+0x10/0x10 [ 67.850930][ T4163] sb_start_write+0x4f/0x1c0 [ 67.856011][ T4163] ? mnt_want_write_file+0x5c/0x200 [ 67.861918][ T4163] mnt_want_write_file+0x5c/0x200 [ 67.866967][ T4163] reiserfs_ioctl+0x10a/0x330 [ 67.871742][ T4163] ? reiserfs_unpack+0x580/0x580 [ 67.876950][ T4163] __se_sys_ioctl+0xfa/0x170 [ 67.881891][ T4163] do_syscall_64+0x4c/0xa0 [ 67.886427][ T4163] ? clear_bhb_loop+0x15/0x70 [ 67.891513][ T4163] ? clear_bhb_loop+0x15/0x70 [ 67.896413][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 67.902682][ T4163] RIP: 0033:0x7f0d05807679 [ 67.907268][ T4163] 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 [ 67.929748][ T4163] RSP: 002b:00007ffd1cc2d018 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 67.939037][ T4163] RAX: ffffffffffffffda RBX: 00007ffd1cc2d1e8 RCX: 00007f0d05807679 [ 67.947471][ T4163] RDX: 0000000000000000 RSI: 0000000040087602 RDI: 0000000000000004 [ 67.956164][ T4163] RBP: 00007f0d0587b610 R08: 0000000000000000 R09: 00007ffd1cc2d1e8 [ 67.964611][ T4163] R10: 0000000000001112 R11: 0000000000000246 R12: 0000000000000001 [ 67.972674][ T4163] R13: 00007ffd1cc2d1d8 R14: 0000000000000001 R15: 0000000000000001 [ 67.980954][