Warning: Permanently added '10.128.10.19' (ECDSA) to the list of known hosts. executing program [ 38.282754][ T4215] loop0: detected capacity change from 0 to 8192 [ 38.301283][ T4215] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 38.304673][ T4215] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 38.307087][ T4215] REISERFS (device loop0): using ordered data mode [ 38.308895][ T4215] reiserfs: using flush barriers [ 38.310936][ T4215] 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 [ 38.315241][ T4215] REISERFS (device loop0): checking transaction log (loop0) [ 38.319250][ T4215] REISERFS (device loop0): Using r5 hash to sort names [ 38.322514][ T4215] reiserfs: enabling write barrier flush mode [ 38.328323][ T4215] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 38.331386][ T4215] [ 38.332002][ T4215] ====================================================== [ 38.333776][ T4215] WARNING: possible circular locking dependency detected [ 38.335527][ T4215] 6.1.30-syzkaller #0 Not tainted [ 38.336804][ T4215] ------------------------------------------------------ [ 38.338672][ T4215] syz-executor248/4215 is trying to acquire lock: [ 38.340316][ T4215] ffff0000d0db7090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 38.342640][ T4215] [ 38.342640][ T4215] but task is already holding lock: [ 38.344598][ T4215] ffff0000e1c682e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2cc/0x82c [ 38.347248][ T4215] [ 38.347248][ T4215] which lock already depends on the new lock. [ 38.347248][ T4215] [ 38.350021][ T4215] [ 38.350021][ T4215] the existing dependency chain (in reverse order) is: [ 38.352440][ T4215] [ 38.352440][ T4215] -> #2 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}: [ 38.354747][ T4215] down_write_nested+0x64/0x94 [ 38.356154][ T4215] do_unlinkat+0x2cc/0x82c [ 38.357468][ T4215] __arm64_sys_unlinkat+0xcc/0xfc [ 38.358920][ T4215] invoke_syscall+0x98/0x2c0 [ 38.360306][ T4215] el0_svc_common+0x138/0x258 [ 38.361664][ T4215] do_el0_svc+0x64/0x218 [ 38.362965][ T4215] el0_svc+0x58/0x168 [ 38.364162][ T4215] el0t_64_sync_handler+0x84/0xf0 [ 38.365572][ T4215] el0t_64_sync+0x18c/0x190 [ 38.366901][ T4215] [ 38.366901][ T4215] -> #1 (sb_writers#8){.+.+}-{0:0}: [ 38.368827][ T4215] sb_start_write+0x7c/0x308 [ 38.370125][ T4215] mnt_want_write_file+0x64/0x1e8 [ 38.371552][ T4215] reiserfs_ioctl+0x184/0x454 [ 38.372905][ T4215] __arm64_sys_ioctl+0x14c/0x1c8 [ 38.374312][ T4215] invoke_syscall+0x98/0x2c0 [ 38.375698][ T4215] el0_svc_common+0x138/0x258 [ 38.377061][ T4215] do_el0_svc+0x64/0x218 [ 38.378292][ T4215] el0_svc+0x58/0x168 [ 38.379458][ T4215] el0t_64_sync_handler+0x84/0xf0 [ 38.380874][ T4215] el0t_64_sync+0x18c/0x190 [ 38.382168][ T4215] [ 38.382168][ T4215] -> #0 (&sbi->lock){+.+.}-{3:3}: [ 38.384065][ T4215] __lock_acquire+0x3338/0x764c [ 38.385471][ T4215] lock_acquire+0x26c/0x7cc [ 38.386808][ T4215] __mutex_lock_common+0x190/0x21a0 [ 38.388324][ T4215] mutex_lock_nested+0x38/0x44 [ 38.389701][ T4215] reiserfs_write_lock+0x7c/0xe8 [ 38.391161][ T4215] reiserfs_lookup+0x130/0x3c4 [ 38.392591][ T4215] __lookup_hash+0x108/0x230 [ 38.394013][ T4215] do_unlinkat+0x2ec/0x82c [ 38.395307][ T4215] __arm64_sys_unlinkat+0xcc/0xfc [ 38.396775][ T4215] invoke_syscall+0x98/0x2c0 [ 38.398124][ T4215] el0_svc_common+0x138/0x258 [ 38.399521][ T4215] do_el0_svc+0x64/0x218 [ 38.400735][ T4215] el0_svc+0x58/0x168 [ 38.401959][ T4215] el0t_64_sync_handler+0x84/0xf0 [ 38.403425][ T4215] el0t_64_sync+0x18c/0x190 [ 38.404694][ T4215] [ 38.404694][ T4215] other info that might help us debug this: [ 38.404694][ T4215] [ 38.407398][ T4215] Chain exists of: [ 38.407398][ T4215] &sbi->lock --> sb_writers#8 --> &type->i_mutex_dir_key#6/1 [ 38.407398][ T4215] [ 38.410872][ T4215] Possible unsafe locking scenario: [ 38.410872][ T4215] [ 38.412764][ T4215] CPU0 CPU1 [ 38.414159][ T4215] ---- ---- [ 38.415563][ T4215] lock(&type->i_mutex_dir_key#6/1); [ 38.416927][ T4215] lock(sb_writers#8); [ 38.418616][ T4215] lock(&type->i_mutex_dir_key#6/1); [ 38.420670][ T4215] lock(&sbi->lock); [ 38.421697][ T4215] [ 38.421697][ T4215] *** DEADLOCK *** [ 38.421697][ T4215] [ 38.423786][ T4215] 2 locks held by syz-executor248/4215: [ 38.425264][ T4215] #0: ffff0000d6e52460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 38.427638][ T4215] #1: ffff0000e1c682e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2cc/0x82c [ 38.430359][ T4215] [ 38.430359][ T4215] stack backtrace: [ 38.431890][ T4215] CPU: 1 PID: 4215 Comm: syz-executor248 Not tainted 6.1.30-syzkaller #0 [ 38.434072][ T4215] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 [ 38.436677][ T4215] Call trace: [ 38.437621][ T4215] dump_backtrace+0x1c8/0x1f4 [ 38.438810][ T4215] show_stack+0x2c/0x3c [ 38.439875][ T4215] dump_stack_lvl+0x108/0x170 [ 38.441069][ T4215] dump_stack+0x1c/0x58 [ 38.442178][ T4215] print_circular_bug+0x150/0x1b8 [ 38.443461][ T4215] check_noncircular+0x2cc/0x378 [ 38.444739][ T4215] __lock_acquire+0x3338/0x764c [ 38.446054][ T4215] lock_acquire+0x26c/0x7cc [ 38.447235][ T4215] __mutex_lock_common+0x190/0x21a0 [ 38.448592][ T4215] mutex_lock_nested+0x38/0x44 [ 38.449822][ T4215] reiserfs_write_lock+0x7c/0xe8 [ 38.451081][ T4215] reiserfs_lookup+0x130/0x3c4 [ 38.452304][ T4215] __lookup_hash+0x108/0x230 [ 38.453500][ T4215] do_unlinkat+0x2ec/0x82c [ 38.454620][ T4215] __arm64_sys_unlinkat+0xcc/0xfc [ 38.455900][ T4215] invoke_syscall+0x98/0x2c0 [ 38.457072][ T4215] el0_svc_common+0x138/0x258 [ 38.458258][ T4215] do_el0_svc+0x64/0x218 [ 38.459336][ T4215] el0_svc+0x58/0x168 [ 38.460383][ T4215] el0t_64_sync_handler+0x84/0xf0 [ 38.461696][ T4215] el0t_64_sync+0x18c/0x190