Warning: Permanently added '10.128.1.141' (ED25519) to the list of known hosts. executing program [ 32.652263][ T4227] loop0: detected capacity change from 0 to 8192 [ 32.658201][ T4227] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 32.661637][ T4227] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 32.664239][ T4227] REISERFS (device loop0): using ordered data mode [ 32.665855][ T4227] reiserfs: using flush barriers [ 32.667902][ T4227] 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 [ 32.672380][ T4227] REISERFS (device loop0): checking transaction log (loop0) [ 32.676625][ T4227] REISERFS (device loop0): Using r5 hash to sort names [ 32.678725][ T4227] REISERFS (device loop0): using 3.5.x disk format [ 32.681662][ T4227] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 32.686107][ T4227] [ 32.686704][ T4227] ====================================================== [ 32.688473][ T4227] WARNING: possible circular locking dependency detected [ 32.690268][ T4227] 6.1.89-syzkaller #0 Not tainted [ 32.691620][ T4227] ------------------------------------------------------ [ 32.693425][ T4227] syz-executor319/4227 is trying to acquire lock: [ 32.695076][ T4227] ffff0000d83c2460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 32.697535][ T4227] [ 32.697535][ T4227] but task is already holding lock: [ 32.699473][ T4227] ffff0000d3e47090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 32.701960][ T4227] [ 32.701960][ T4227] which lock already depends on the new lock. [ 32.701960][ T4227] [ 32.704646][ T4227] [ 32.704646][ T4227] the existing dependency chain (in reverse order) is: [ 32.707049][ T4227] [ 32.707049][ T4227] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 32.709001][ T4227] __mutex_lock_common+0x190/0x21a0 [ 32.710545][ T4227] mutex_lock_nested+0x38/0x44 [ 32.711955][ T4227] reiserfs_write_lock+0x7c/0xe8 [ 32.713377][ T4227] reiserfs_lookup+0x130/0x3c4 [ 32.714717][ T4227] __lookup_slow+0x250/0x374 [ 32.715995][ T4227] lookup_one_len+0x178/0x28c [ 32.717260][ T4227] reiserfs_lookup_privroot+0x8c/0x204 [ 32.718776][ T4227] reiserfs_fill_super+0x1bc0/0x2028 [ 32.720331][ T4227] mount_bdev+0x274/0x370 [ 32.721611][ T4227] get_super_block+0x44/0x58 [ 32.722920][ T4227] legacy_get_tree+0xd4/0x16c [ 32.724365][ T4227] vfs_get_tree+0x90/0x274 [ 32.725715][ T4227] do_new_mount+0x278/0x8fc [ 32.727097][ T4227] path_mount+0x590/0xe5c [ 32.728373][ T4227] __arm64_sys_mount+0x45c/0x594 [ 32.729835][ T4227] invoke_syscall+0x98/0x2c0 [ 32.731176][ T4227] el0_svc_common+0x138/0x258 [ 32.732588][ T4227] do_el0_svc+0x64/0x218 [ 32.733841][ T4227] el0_svc+0x58/0x168 [ 32.734991][ T4227] el0t_64_sync_handler+0x84/0xf0 [ 32.736530][ T4227] el0t_64_sync+0x18c/0x190 [ 32.737809][ T4227] [ 32.737809][ T4227] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 32.740015][ T4227] down_write+0x5c/0x88 [ 32.741257][ T4227] path_openat+0x5ec/0x2548 [ 32.742454][ T4227] do_filp_open+0x1bc/0x3cc [ 32.743734][ T4227] do_sys_openat2+0x128/0x3d8 [ 32.745076][ T4227] __arm64_sys_openat+0x1f0/0x240 [ 32.746655][ T4227] invoke_syscall+0x98/0x2c0 [ 32.748007][ T4227] el0_svc_common+0x138/0x258 [ 32.749434][ T4227] do_el0_svc+0x64/0x218 [ 32.750733][ T4227] el0_svc+0x58/0x168 [ 32.751896][ T4227] el0t_64_sync_handler+0x84/0xf0 [ 32.753293][ T4227] el0t_64_sync+0x18c/0x190 [ 32.754714][ T4227] [ 32.754714][ T4227] -> #0 (sb_writers#8){.+.+}-{0:0}: [ 32.756158][ T4227] __lock_acquire+0x3338/0x7680 [ 32.757228][ T4227] lock_acquire+0x26c/0x7cc [ 32.758205][ T4227] sb_start_write+0x7c/0x308 [ 32.759159][ T4227] mnt_want_write_file+0x64/0x1e8 [ 32.760405][ T4227] reiserfs_ioctl+0x184/0x454 [ 32.761718][ T4227] __arm64_sys_ioctl+0x14c/0x1c8 [ 32.763148][ T4227] invoke_syscall+0x98/0x2c0 [ 32.764509][ T4227] el0_svc_common+0x138/0x258 [ 32.765961][ T4227] do_el0_svc+0x64/0x218 [ 32.767150][ T4227] el0_svc+0x58/0x168 [ 32.768322][ T4227] el0t_64_sync_handler+0x84/0xf0 [ 32.769846][ T4227] el0t_64_sync+0x18c/0x190 [ 32.771113][ T4227] [ 32.771113][ T4227] other info that might help us debug this: [ 32.771113][ T4227] [ 32.773657][ T4227] Chain exists of: [ 32.773657][ T4227] sb_writers#8 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 32.773657][ T4227] [ 32.777147][ T4227] Possible unsafe locking scenario: [ 32.777147][ T4227] [ 32.778976][ T4227] CPU0 CPU1 [ 32.780460][ T4227] ---- ---- [ 32.781832][ T4227] lock(&sbi->lock); [ 32.782807][ T4227] lock(&type->i_mutex_dir_key#6); [ 32.784802][ T4227] lock(&sbi->lock); [ 32.786538][ T4227] lock(sb_writers#8); [ 32.787658][ T4227] [ 32.787658][ T4227] *** DEADLOCK *** [ 32.787658][ T4227] [ 32.789814][ T4227] 1 lock held by syz-executor319/4227: [ 32.791239][ T4227] #0: ffff0000d3e47090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 32.793584][ T4227] [ 32.793584][ T4227] stack backtrace: [ 32.795130][ T4227] CPU: 0 PID: 4227 Comm: syz-executor319 Not tainted 6.1.89-syzkaller #0 [ 32.797343][ T4227] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 32.799912][ T4227] Call trace: [ 32.800699][ T4227] dump_backtrace+0x1c8/0x1f4 [ 32.801847][ T4227] show_stack+0x2c/0x3c [ 32.802982][ T4227] dump_stack_lvl+0x108/0x170 [ 32.804108][ T4227] dump_stack+0x1c/0x5c [ 32.805153][ T4227] print_circular_bug+0x150/0x1b8 [ 32.806467][ T4227] check_noncircular+0x2cc/0x378 [ 32.807439][ T4227] __lock_acquire+0x3338/0x7680 [ 32.808361][ T4227] lock_acquire+0x26c/0x7cc [ 32.809246][ T4227] sb_start_write+0x7c/0x308 [ 32.810118][ T4227] mnt_want_write_file+0x64/0x1e8 [ 32.811128][ T4227] reiserfs_ioctl+0x184/0x454 [ 32.812209][ T4227] __arm64_sys_ioctl+0x14c/0x1c8 [ 32.813582][ T4227] invoke_syscall+0x98/0x2c0 [ 32.814730][ T4227] el0_svc_common+0x138/0x258 [ 32.815971][ T4227] do_el0_svc+0x64/0x218 [ 32.817125][ T4227] el0_svc+0x58/0x168 [ 32.818194][ T4227] el0t_64_sync_handler+0x84/0xf0 [ 32.819412][ T4227] el0t_64_sync+0x18c/0x190