loop0: detected capacity change from 0 to 64 ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 0 PID: 5501 at kernel/locking/mutex.c:582 __mutex_lock_common kernel/locking/mutex.c:582 [inline] WARNING: CPU: 0 PID: 5501 at kernel/locking/mutex.c:582 __mutex_lock+0xa24/0xaf0 kernel/locking/mutex.c:747 Modules linked in: CPU: 0 PID: 5501 Comm: syz.0.13050 Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:582 [inline] RIP: 0010:__mutex_lock+0xa24/0xaf0 kernel/locking/mutex.c:747 Code: 04 28 84 c0 0f 85 b7 00 00 00 83 3d 1d 34 e6 03 00 0f 85 e0 f6 ff ff 48 c7 c7 60 ea 6b 8a 48 c7 c6 00 eb 6b 8a e8 bc 62 34 f7 <0f> 0b e9 c6 f6 ff ff 0f 0b e9 6c f9 ff ff 48 c7 c1 20 f1 9b 96 80 RSP: 0018:ffffc900039af8a0 EFLAGS: 00010246 RAX: a2375da0899b1b00 RBX: ffff88801f24f828 RCX: 0000000000080000 RDX: ffffc900052e9000 RSI: 0000000000002362 RDI: 0000000000002363 RBP: ffffc900039afa00 R08: dffffc0000000000 R09: ffffed10171c4f34 R10: ffffed10171c4f34 R11: 1ffff110171c4f33 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88801f24f8b8 R15: 0000000000000000 FS: 00007f662d13b6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555621285c8 CR3: 00000000325f2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_write_lock+0x75/0xd0 fs/reiserfs/lock.c:27 reiserfs_readdir_inode+0x164/0x1230 fs/reiserfs/dir.c:79 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x260 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f662c38e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f662d13b038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f662c5b5fa0 RCX: 00007f662c38e929 RDX: 0000000000000095 RSI: 00002000000004c0 RDI: 0000000000000004 RBP: 00007f662c410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f662c5b5fa0 R15: 00007ffcc1ac1608