Warning: Permanently added '10.128.10.53' (ED25519) to the list of known hosts. executing program [ 36.456177][ T4221] loop0: detected capacity change from 0 to 8192 [ 36.461477][ T4221] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 36.464434][ T4221] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 36.466605][ T4221] REISERFS (device loop0): using ordered data mode [ 36.468073][ T4221] reiserfs: using flush barriers [ 36.470565][ T4221] 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 [ 36.474444][ T4221] REISERFS (device loop0): checking transaction log (loop0) [ 36.478262][ T4221] REISERFS (device loop0): Using r5 hash to sort names [ 36.480136][ T4221] REISERFS (device loop0): using 3.5.x disk format [ 36.482088][ T4221] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 36.486596][ T4221] [ 36.487185][ T4221] ====================================================== [ 36.488717][ T4221] WARNING: possible circular locking dependency detected [ 36.490280][ T4221] 6.1.75-syzkaller #0 Not tainted [ 36.491410][ T4221] ------------------------------------------------------ [ 36.493035][ T4221] syz-executor267/4221 is trying to acquire lock: [ 36.494571][ T4221] ffff0000d00fc460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 36.496701][ T4221] [ 36.496701][ T4221] but task is already holding lock: [ 36.498542][ T4221] ffff0000c46d1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 36.500673][ T4221] [ 36.500673][ T4221] which lock already depends on the new lock. [ 36.500673][ T4221] [ 36.503192][ T4221] [ 36.503192][ T4221] the existing dependency chain (in reverse order) is: [ 36.505322][ T4221] [ 36.505322][ T4221] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 36.506965][ T4221] __mutex_lock_common+0x190/0x21a0 [ 36.508316][ T4221] mutex_lock_nested+0x38/0x44 [ 36.509659][ T4221] reiserfs_write_lock+0x7c/0xe8 [ 36.511027][ T4221] reiserfs_lookup+0x130/0x3c4 [ 36.512300][ T4221] __lookup_slow+0x250/0x374 [ 36.513459][ T4221] lookup_one_len+0x178/0x28c [ 36.514536][ T4221] reiserfs_lookup_privroot+0x8c/0x204 [ 36.515632][ T4221] reiserfs_fill_super+0x1bc0/0x2028 [ 36.516684][ T4221] mount_bdev+0x274/0x370 [ 36.517711][ T4221] get_super_block+0x44/0x58 [ 36.518935][ T4221] legacy_get_tree+0xd4/0x16c [ 36.520074][ T4221] vfs_get_tree+0x90/0x274 [ 36.521184][ T4221] do_new_mount+0x278/0x8fc [ 36.522397][ T4221] path_mount+0x590/0xe5c [ 36.523517][ T4221] __arm64_sys_mount+0x45c/0x594 [ 36.524700][ T4221] invoke_syscall+0x98/0x2c0 [ 36.525801][ T4221] el0_svc_common+0x138/0x258 [ 36.527044][ T4221] do_el0_svc+0x64/0x218 [ 36.528110][ T4221] el0_svc+0x58/0x168 [ 36.529224][ T4221] el0t_64_sync_handler+0x84/0xf0 [ 36.530525][ T4221] el0t_64_sync+0x18c/0x190 [ 36.531756][ T4221] [ 36.531756][ T4221] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 36.533847][ T4221] down_write+0x5c/0x88 [ 36.535045][ T4221] path_openat+0x5ec/0x2548 [ 36.536130][ T4221] do_filp_open+0x1bc/0x3cc [ 36.537292][ T4221] do_sys_openat2+0x128/0x3d8 [ 36.538494][ T4221] __arm64_sys_openat+0x1f0/0x240 [ 36.539789][ T4221] invoke_syscall+0x98/0x2c0 [ 36.540966][ T4221] el0_svc_common+0x138/0x258 [ 36.542099][ T4221] do_el0_svc+0x64/0x218 [ 36.543158][ T4221] el0_svc+0x58/0x168 [ 36.544225][ T4221] el0t_64_sync_handler+0x84/0xf0 [ 36.545482][ T4221] el0t_64_sync+0x18c/0x190 [ 36.546656][ T4221] [ 36.546656][ T4221] -> #0 (sb_writers#8){.+.+}-{0:0}: [ 36.548337][ T4221] __lock_acquire+0x3338/0x7680 [ 36.549518][ T4221] lock_acquire+0x26c/0x7cc [ 36.550617][ T4221] sb_start_write+0x7c/0x308 [ 36.551809][ T4221] mnt_want_write_file+0x64/0x1e8 [ 36.553094][ T4221] reiserfs_ioctl+0x184/0x454 [ 36.554307][ T4221] __arm64_sys_ioctl+0x14c/0x1c8 [ 36.555552][ T4221] invoke_syscall+0x98/0x2c0 [ 36.556701][ T4221] el0_svc_common+0x138/0x258 [ 36.557918][ T4221] do_el0_svc+0x64/0x218 [ 36.559044][ T4221] el0_svc+0x58/0x168 [ 36.560065][ T4221] el0t_64_sync_handler+0x84/0xf0 [ 36.561388][ T4221] el0t_64_sync+0x18c/0x190 [ 36.562531][ T4221] [ 36.562531][ T4221] other info that might help us debug this: [ 36.562531][ T4221] [ 36.564721][ T4221] Chain exists of: [ 36.564721][ T4221] sb_writers#8 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 36.564721][ T4221] [ 36.567556][ T4221] Possible unsafe locking scenario: [ 36.567556][ T4221] [ 36.569228][ T4221] CPU0 CPU1 [ 36.570455][ T4221] ---- ---- [ 36.571689][ T4221] lock(&sbi->lock); [ 36.572633][ T4221] lock(&type->i_mutex_dir_key#6); [ 36.574459][ T4221] lock(&sbi->lock); [ 36.575948][ T4221] lock(sb_writers#8); [ 36.576855][ T4221] [ 36.576855][ T4221] *** DEADLOCK *** [ 36.576855][ T4221] [ 36.578636][ T4221] 1 lock held by syz-executor267/4221: [ 36.579859][ T4221] #0: ffff0000c46d1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7c/0xe8 [ 36.582045][ T4221] [ 36.582045][ T4221] stack backtrace: [ 36.583483][ T4221] CPU: 0 PID: 4221 Comm: syz-executor267 Not tainted 6.1.75-syzkaller #0 [ 36.585403][ T4221] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 36.587675][ T4221] Call trace: [ 36.588427][ T4221] dump_backtrace+0x1c8/0x1f4 [ 36.589471][ T4221] show_stack+0x2c/0x3c [ 36.590387][ T4221] dump_stack_lvl+0x108/0x170 [ 36.591429][ T4221] dump_stack+0x1c/0x58 [ 36.592442][ T4221] print_circular_bug+0x150/0x1b8 [ 36.593615][ T4221] check_noncircular+0x2cc/0x378 [ 36.594857][ T4221] __lock_acquire+0x3338/0x7680 [ 36.595965][ T4221] lock_acquire+0x26c/0x7cc [ 36.597024][ T4221] sb_start_write+0x7c/0x308 [ 36.598085][ T4221] mnt_want_write_file+0x64/0x1e8 [ 36.599223][ T4221] reiserfs_ioctl+0x184/0x454 [ 36.600314][ T4221] __arm64_sys_ioctl+0x14c/0x1c8 [ 36.601418][ T4221] invoke_syscall+0x98/0x2c0 [ 36.602423][ T4221] el0_svc_common+0x138/0x258 [ 36.603461][ T4221] do_el0_svc+0x64/0x218 [ 36.604401][ T4221] el0_svc+0x58/0x168 [ 36.605297][ T4221] el0t_64_sync_handler+0x84/0xf0 [ 36.606393][ T4221] el0t_64_sync+0x18c/0x190