loop4: detected capacity change from 0 to 1024
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 1 PID: 1392 at kernel/locking/mutex.c:582 __mutex_lock_common kernel/locking/mutex.c:582 [inline]
WARNING: CPU: 1 PID: 1392 at kernel/locking/mutex.c:582 __mutex_lock+0xb85/0xcc0 kernel/locking/mutex.c:747
Modules linked in:
CPU: 1 PID: 1392 Comm: syz.4.9481 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:582 [inline]
RIP: 0010:__mutex_lock+0xb85/0xcc0 kernel/locking/mutex.c:747
Code: 04 08 84 c0 0f 85 27 01 00 00 83 3d 94 58 fe 03 00 0f 85 95 f5 ff ff 48 c7 c7 a0 b3 ca 8a 48 c7 c6 40 b4 ca 8a e8 4b 21 c4 f6 <0f> 0b e9 7b f5 ff ff 0f 0b e9 5f f9 ff ff 0f 0b e9 18 f6 ff ff e8
RSP: 0018:ffffc9000ba5f6a0 EFLAGS: 00010246
RAX: 245e68b9e304f400 RBX: ffff88802df52828 RCX: 0000000000080000
RDX: ffffc9001ca31000 RSI: 0000000000004508 RDI: 0000000000004509
RBP: ffffc9000ba5f800 R08: ffff8880b8f28c13 R09: 1ffff110171e5182
R10: dffffc0000000000 R11: ffffed10171e5183 R12: 0000000000000000
R13: 1ffff9200174bee4 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007f6ef59726c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2a9035c000 CR3: 000000005843b000 CR4: 00000000003506e0
Call Trace:
<TASK>
reiserfs_write_lock+0x79/0xd0 fs/reiserfs/lock.c:27
reiserfs_lookup+0x183/0x580 fs/reiserfs/namei.c:364
__lookup_slow+0x2a1/0x400 fs/namei.c:1702
lookup_slow+0x53/0x70 fs/namei.c:1719
walk_component+0x2be/0x3f0 fs/namei.c:2010
lookup_last fs/namei.c:2467 [inline]
path_lookupat+0x169/0x440 fs/namei.c:2491
filename_lookup+0x228/0x560 fs/namei.c:2520
user_path_at_empty+0x42/0x60 fs/namei.c:2917
user_path_at include/linux/namei.h:57 [inline]
do_sys_truncate+0xba/0x1c0 fs/open.c:133
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6ef4b9aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6ef5972028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f6ef4e15fa0 RCX: 00007f6ef4b9aeb9
RDX: 0000000000000000 RSI: 000000000000bf39 RDI: 0000200000000900
RBP: 00007f6ef4c08c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6ef4e16038 R14: 00007f6ef4e15fa0 R15: 00007fff01d1a1c8
</TASK>