DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 0 PID: 14313 at kernel/locking/mutex.c:582 __mutex_lock_common kernel/locking/mutex.c:582 [inline] WARNING: CPU: 0 PID: 14313 at kernel/locking/mutex.c:582 __mutex_lock+0xa05/0x1360 kernel/locking/mutex.c:747 Modules linked in: CPU: 0 PID: 14313 Comm: syz-executor.1 Not tainted 6.2.0-rc7-syzkaller-00213-g47e9aa14ce5a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:582 [inline] RIP: 0010:__mutex_lock+0xa05/0x1360 kernel/locking/mutex.c:747 Code: 08 84 d2 0f 85 8b 08 00 00 8b 05 be a5 68 04 85 c0 0f 85 0e f7 ff ff 48 c7 c6 80 27 4c 8a 48 c7 c7 e0 24 4c 8a e8 fa f2 b6 ff <0f> 0b e9 f4 f6 ff ff 48 8b 7c 24 30 be 08 00 00 00 e8 a5 51 c3 f7 RSP: 0018:ffffc900050ef950 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff8165314c RDI: fffff52000a1df1c RBP: ffff8880752eb028 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000001 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888081ac1a30 R15: ffff888081ac1b10 FS: 00007f862651a700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002010c600 CR3: 000000002c8fa000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_write_lock+0x79/0x100 fs/reiserfs/lock.c:27 reiserfs_readdir_inode+0x109/0x13b0 fs/reiserfs/dir.c:79 iterate_dir+0x56e/0x6f0 fs/readdir.c:65 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x13e/0x2c0 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f862588c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f862651a168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f86259abf80 RCX: 00007f862588c0f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f86258e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc8a3fe5af R14: 00007f862651a300 R15: 0000000000022000