Warning: Permanently added '10.128.10.18' (ED25519) to the list of known hosts. executing program syzkaller login: [ 35.424171][ T4222] loop0: detected capacity change from 0 to 8192 [ 35.429619][ T4222] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 35.433191][ T4222] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 35.435562][ T4222] REISERFS (device loop0): using ordered data mode [ 35.437146][ T4222] reiserfs: using flush barriers [ 35.439408][ T4222] 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.443606][ T4222] REISERFS (device loop0): checking transaction log (loop0) [ 35.447570][ T4222] REISERFS (device loop0): Using r5 hash to sort names [ 35.449577][ T4222] REISERFS (device loop0): using 3.5.x disk format [ 35.451805][ T4222] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 35.457025][ T4222] [ 35.457625][ T4222] ====================================================== [ 35.459447][ T4222] WARNING: possible circular locking dependency detected [ 35.461279][ T4222] 6.1.53-syzkaller #0 Not tainted [ 35.462593][ T4222] ------------------------------------------------------ [ 35.464406][ T4222] syz-executor216/4222 is trying to acquire lock: [ 35.466040][ T4222] ffff0000de3d2460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 35.468519][ T4222] [ 35.468519][ T4222] but task is already holding lock: [ 35.470439][ T4222] ffff0000cd299090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 35.472787][ T4222] [ 35.472787][ T4222] which lock already depends on the new lock. [ 35.472787][ T4222] [ 35.475532][ T4222] [ 35.475532][ T4222] the existing dependency chain (in reverse order) is: [ 35.477686][ T4222] [ 35.477686][ T4222] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 35.479488][ T4222] __mutex_lock_common+0x190/0x21a0 [ 35.480797][ T4222] mutex_lock_nested+0x38/0x44 [ 35.482027][ T4222] reiserfs_write_lock+0x7c/0xe8 [ 35.483286][ T4222] reiserfs_lookup+0x130/0x3c4 [ 35.484499][ T4222] __lookup_slow+0x250/0x374 [ 35.485715][ T4222] lookup_one_len+0x178/0x28c [ 35.486983][ T4222] reiserfs_lookup_privroot+0x8c/0x204 [ 35.488561][ T4222] reiserfs_fill_super+0x1bc0/0x2028 [ 35.490095][ T4222] mount_bdev+0x274/0x370 [ 35.491325][ T4222] get_super_block+0x44/0x58 [ 35.492677][ T4222] legacy_get_tree+0xd4/0x16c [ 35.493939][ T4222] vfs_get_tree+0x90/0x274 [ 35.495208][ T4222] do_new_mount+0x25c/0x8c4 [ 35.496499][ T4222] path_mount+0x590/0xe58 [ 35.497675][ T4222] __arm64_sys_mount+0x45c/0x594 [ 35.499044][ T4222] invoke_syscall+0x98/0x2c0 [ 35.500321][ T4222] el0_svc_common+0x138/0x258 [ 35.501633][ T4222] do_el0_svc+0x64/0x218 [ 35.502774][ T4222] el0_svc+0x58/0x168 [ 35.503924][ T4222] el0t_64_sync_handler+0x84/0xf0 [ 35.505270][ T4222] el0t_64_sync+0x18c/0x190 [ 35.506474][ T4222] [ 35.506474][ T4222] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 35.508484][ T4222] down_write+0x5c/0x88 [ 35.509632][ T4222] path_openat+0x5ec/0x2548 [ 35.510922][ T4222] do_filp_open+0x1bc/0x3cc [ 35.512145][ T4222] do_sys_openat2+0x128/0x3d8 [ 35.513430][ T4222] __arm64_sys_openat+0x1f0/0x240 [ 35.514793][ T4222] invoke_syscall+0x98/0x2c0 [ 35.516045][ T4222] el0_svc_common+0x138/0x258 [ 35.517219][ T4222] do_el0_svc+0x64/0x218 [ 35.518324][ T4222] el0_svc+0x58/0x168 [ 35.519437][ T4222] el0t_64_sync_handler+0x84/0xf0 [ 35.520765][ T4222] el0t_64_sync+0x18c/0x190 [ 35.522044][ T4222] [ 35.522044][ T4222] -> #0 (sb_writers#8){.+.+}-{0:0}: [ 35.523822][ T4222] __lock_acquire+0x3338/0x764c [ 35.525155][ T4222] lock_acquire+0x26c/0x7cc [ 35.526393][ T4222] sb_start_write+0x7c/0x308 [ 35.527647][ T4222] mnt_want_write_file+0x64/0x1e8 [ 35.528958][ T4222] reiserfs_ioctl+0x184/0x454 [ 35.530258][ T4222] __arm64_sys_ioctl+0x14c/0x1c8 [ 35.531631][ T4222] invoke_syscall+0x98/0x2c0 [ 35.532813][ T4222] el0_svc_common+0x138/0x258 [ 35.534145][ T4222] do_el0_svc+0x64/0x218 [ 35.535238][ T4222] el0_svc+0x58/0x168 [ 35.536339][ T4222] el0t_64_sync_handler+0x84/0xf0 [ 35.537679][ T4222] el0t_64_sync+0x18c/0x190 [ 35.538888][ T4222] [ 35.538888][ T4222] other info that might help us debug this: [ 35.538888][ T4222] [ 35.541302][ T4222] Chain exists of: [ 35.541302][ T4222] sb_writers#8 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 35.541302][ T4222] [ 35.544648][ T4222] Possible unsafe locking scenario: [ 35.544648][ T4222] [ 35.546513][ T4222] CPU0 CPU1 [ 35.547801][ T4222] ---- ---- [ 35.549097][ T4222] lock(&sbi->lock); [ 35.550122][ T4222] lock(&type->i_mutex_dir_key#6); [ 35.551963][ T4222] lock(&sbi->lock); [ 35.553587][ T4222] lock(sb_writers#8); [ 35.554622][ T4222] [ 35.554622][ T4222] *** DEADLOCK *** [ 35.554622][ T4222] [ 35.556619][ T4222] 1 lock held by syz-executor216/4222: [ 35.557869][ T4222] #0: ffff0000cd299090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 35.560103][ T4222] [ 35.560103][ T4222] stack backtrace: [ 35.561509][ T4222] CPU: 0 PID: 4222 Comm: syz-executor216 Not tainted 6.1.53-syzkaller #0 [ 35.563366][ T4222] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 [ 35.565851][ T4222] Call trace: [ 35.566649][ T4222] dump_backtrace+0x1c8/0x1f4 [ 35.567715][ T4222] show_stack+0x2c/0x3c [ 35.568680][ T4222] dump_stack_lvl+0x108/0x170 [ 35.569815][ T4222] dump_stack+0x1c/0x5c [ 35.570840][ T4222] print_circular_bug+0x150/0x1b8 [ 35.571994][ T4222] check_noncircular+0x2cc/0x378 [ 35.573202][ T4222] __lock_acquire+0x3338/0x764c [ 35.574286][ T4222] lock_acquire+0x26c/0x7cc [ 35.575474][ T4222] sb_start_write+0x7c/0x308 [ 35.576594][ T4222] mnt_want_write_file+0x64/0x1e8 [ 35.577870][ T4222] reiserfs_ioctl+0x184/0x454 [ 35.579077][ T4222] __arm64_sys_ioctl+0x14c/0x1c8 [ 35.580288][ T4222] invoke_syscall+0x98/0x2c0 [ 35.581405][ T4222] el0_svc_common+0x138/0x258 [ 35.582526][ T4222] do_el0_svc+0x64/0x218 [ 35.583576][ T4222] el0_svc+0x58/0x168 [ 35.584571][ T4222] el0t_64_sync_handler+0x84/0xf0 [ 35.585777][ T4222] el0t_64_sync+0x18c/0x190