Warning: Permanently added '10.128.1.13' (ECDSA) to the list of known hosts. executing program [ 35.824210][ T4217] loop0: detected capacity change from 0 to 8192 [ 35.829003][ T4217] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 35.831917][ T4217] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 35.834004][ T4217] REISERFS (device loop0): using ordered data mode [ 35.835414][ T4217] reiserfs: using flush barriers [ 35.837233][ T4217] REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 [ 35.840904][ T4217] REISERFS (device loop0): checking transaction log (loop0) [ 35.880262][ T4217] REISERFS (device loop0): Using r5 hash to sort names [ 35.882036][ T4217] REISERFS (device loop0): using 3.5.x disk format [ 35.883974][ T4217] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 35.888038][ T4217] [ 35.888547][ T4217] ====================================================== [ 35.889993][ T4217] WARNING: possible circular locking dependency detected [ 35.891332][ T4217] 6.1.27-syzkaller #0 Not tainted [ 35.892388][ T4217] ------------------------------------------------------ [ 35.893992][ T4217] syz-executor684/4217 is trying to acquire lock: [ 35.895407][ T4217] ffff0000d5f3a460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 35.897412][ T4217] [ 35.897412][ T4217] but task is already holding lock: [ 35.899015][ T4217] ffff0000d1bc9090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 35.901010][ T4217] [ 35.901010][ T4217] which lock already depends on the new lock. [ 35.901010][ T4217] [ 35.903230][ T4217] [ 35.903230][ T4217] the existing dependency chain (in reverse order) is: [ 35.905206][ T4217] [ 35.905206][ T4217] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 35.906798][ T4217] __mutex_lock_common+0x190/0x21a0 [ 35.908069][ T4217] mutex_lock_nested+0x38/0x44 [ 35.909198][ T4217] reiserfs_write_lock+0x7c/0xe8 [ 35.910358][ T4217] reiserfs_lookup+0x130/0x3c4 [ 35.911465][ T4217] __lookup_slow+0x250/0x374 [ 35.912539][ T4217] lookup_one_len+0x178/0x28c [ 35.913716][ T4217] reiserfs_lookup_privroot+0x8c/0x204 [ 35.914958][ T4217] reiserfs_fill_super+0x1bc0/0x2028 [ 35.916174][ T4217] mount_bdev+0x26c/0x368 [ 35.917262][ T4217] get_super_block+0x44/0x58 [ 35.918357][ T4217] legacy_get_tree+0xd4/0x16c [ 35.919426][ T4217] vfs_get_tree+0x90/0x274 [ 35.920484][ T4217] do_new_mount+0x25c/0x8c8 [ 35.921547][ T4217] path_mount+0x590/0xe58 [ 35.922653][ T4217] __arm64_sys_mount+0x45c/0x594 [ 35.923834][ T4217] invoke_syscall+0x98/0x2c0 [ 35.924908][ T4217] el0_svc_common+0x138/0x258 [ 35.926022][ T4217] do_el0_svc+0x64/0x218 [ 35.926995][ T4217] el0_svc+0x58/0x168 [ 35.927979][ T4217] el0t_64_sync_handler+0x84/0xf0 [ 35.929203][ T4217] el0t_64_sync+0x18c/0x190 [ 35.930271][ T4217] [ 35.930271][ T4217] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 35.932132][ T4217] down_write+0x5c/0x88 [ 35.933161][ T4217] path_openat+0x5ec/0x2548 [ 35.934229][ T4217] do_filp_open+0x1bc/0x3cc [ 35.935315][ T4217] do_sys_openat2+0x128/0x3d8 [ 35.936467][ T4217] __arm64_sys_openat+0x1f0/0x240 [ 35.937663][ T4217] invoke_syscall+0x98/0x2c0 [ 35.938776][ T4217] el0_svc_common+0x138/0x258 [ 35.939882][ T4217] do_el0_svc+0x64/0x218 [ 35.940906][ T4217] el0_svc+0x58/0x168 [ 35.941843][ T4217] el0t_64_sync_handler+0x84/0xf0 [ 35.943039][ T4217] el0t_64_sync+0x18c/0x190 [ 35.944116][ T4217] [ 35.944116][ T4217] -> #0 (sb_writers#8){.+.+}-{0:0}: [ 35.945665][ T4217] __lock_acquire+0x3338/0x764c [ 35.946819][ T4217] lock_acquire+0x26c/0x7cc [ 35.947887][ T4217] sb_start_write+0x7c/0x308 [ 35.948998][ T4217] mnt_want_write_file+0x64/0x1e8 [ 35.950190][ T4217] reiserfs_ioctl+0x184/0x454 [ 35.951337][ T4217] __arm64_sys_ioctl+0x14c/0x1c8 [ 35.952523][ T4217] invoke_syscall+0x98/0x2c0 [ 35.953621][ T4217] el0_svc_common+0x138/0x258 [ 35.954702][ T4217] do_el0_svc+0x64/0x218 [ 35.955739][ T4217] el0_svc+0x58/0x168 [ 35.956685][ T4217] el0t_64_sync_handler+0x84/0xf0 [ 35.957890][ T4217] el0t_64_sync+0x18c/0x190 [ 35.958987][ T4217] [ 35.958987][ T4217] other info that might help us debug this: [ 35.958987][ T4217] [ 35.961173][ T4217] Chain exists of: [ 35.961173][ T4217] sb_writers#8 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 35.961173][ T4217] [ 35.964132][ T4217] Possible unsafe locking scenario: [ 35.964132][ T4217] [ 35.965794][ T4217] CPU0 CPU1 [ 35.966951][ T4217] ---- ---- [ 35.968157][ T4217] lock(&sbi->lock); [ 35.969010][ T4217] lock(&type->i_mutex_dir_key#6); [ 35.970649][ T4217] lock(&sbi->lock); [ 35.971990][ T4217] lock(sb_writers#8); [ 35.972991][ T4217] [ 35.972991][ T4217] *** DEADLOCK *** [ 35.972991][ T4217] [ 35.974753][ T4217] 1 lock held by syz-executor684/4217: [ 35.975968][ T4217] #0: ffff0000d1bc9090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 35.978128][ T4217] [ 35.978128][ T4217] stack backtrace: [ 35.979394][ T4217] CPU: 1 PID: 4217 Comm: syz-executor684 Not tainted 6.1.27-syzkaller #0 [ 35.981227][ T4217] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 35.983450][ T4217] Call trace: [ 35.984176][ T4217] dump_backtrace+0x1c8/0x1f4 [ 35.985200][ T4217] show_stack+0x2c/0x3c [ 35.986099][ T4217] dump_stack_lvl+0x108/0x170 [ 35.987109][ T4217] dump_stack+0x1c/0x5c [ 35.987972][ T4217] print_circular_bug+0x150/0x1b8 [ 35.989042][ T4217] check_noncircular+0x2cc/0x378 [ 35.990081][ T4217] __lock_acquire+0x3338/0x764c [ 35.991064][ T4217] lock_acquire+0x26c/0x7cc [ 35.992002][ T4217] sb_start_write+0x7c/0x308 [ 35.993004][ T4217] mnt_want_write_file+0x64/0x1e8 [ 35.994031][ T4217] reiserfs_ioctl+0x184/0x454 [ 35.995032][ T4217] __arm64_sys_ioctl+0x14c/0x1c8 [ 35.996097][ T4217] invoke_syscall+0x98/0x2c0 [ 35.997128][ T4217] el0_svc_common+0x138/0x258 [ 35.998246][ T4217] do_el0_svc+0x64/0x218 [ 35.999153][ T4217] el0_svc+0x58/0x168 [ 36.000006][ T4217] el0t_64_sync_handler+0x84/0xf0 [ 36.001098][ T4217] el0t_64_sync+0x18c/0x190