REISERFS error (device loop4): vs-5150 search_by_key: invalid format found in block 534. Fsck? general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] CPU: 1 PID: 28677 Comm: syz-executor.4 Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:reiserfs_node_data fs/reiserfs/reiserfs.h:2183 [inline] RIP: 0010:item_head fs/reiserfs/reiserfs.h:2199 [inline] RIP: 0010:tp_item_head fs/reiserfs/reiserfs.h:2225 [inline] RIP: 0010:prepare_for_delete_or_cut+0x18f/0x2240 fs/reiserfs/stree.c:1050 Code: d8 48 c1 e8 03 49 bf 00 00 00 00 00 fc ff df 42 0f b6 04 38 84 c0 0f 85 d0 17 00 00 4c 63 33 49 83 c4 28 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 62 89 b2 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc9000344f320 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc9000344fae0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc9000344f4a8 R08: ffffffff8237f582 R09: ffffc9000344f970 R10: 0000000000000002 R11: ffff88808bde5940 R12: 0000000000000028 R13: 0000000000000ee0 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000555555645480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555e2b958 CR3: 0000000060d61000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_cut_from_item+0x3af/0x2580 fs/reiserfs/stree.c:1680 reiserfs_do_truncate+0x9b9/0x14c0 fs/reiserfs/stree.c:1971 reiserfs_truncate_file+0x4da/0x820 fs/reiserfs/inode.c:2302 reiserfs_file_release+0x8ca/0xaa0 fs/reiserfs/file.c:109 __fput+0x3cc/0x9e0 fs/file_table.c:394 __do_sys_close fs/open.c:1587 [inline] __se_sys_close fs/open.c:1572 [inline] __x64_sys_close+0x7e/0x100 fs/open.c:1572 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7ff8a287bbda Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007fff65a71ed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007ff8a287bbda RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 0000000000000032 R08: 0000001b31720000 R09: 0000000000000052 R10: 0000000081c00f79 R11: 0000000000000293 R12: 00007ff8a2402ac0 R13: ffffffffffffffff R14: 00007ff8a2400000 R15: 0000000000265a8e Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:reiserfs_node_data fs/reiserfs/reiserfs.h:2183 [inline] RIP: 0010:item_head fs/reiserfs/reiserfs.h:2199 [inline] RIP: 0010:tp_item_head fs/reiserfs/reiserfs.h:2225 [inline] RIP: 0010:prepare_for_delete_or_cut+0x18f/0x2240 fs/reiserfs/stree.c:1050 Code: d8 48 c1 e8 03 49 bf 00 00 00 00 00 fc ff df 42 0f b6 04 38 84 c0 0f 85 d0 17 00 00 4c 63 33 49 83 c4 28 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 62 89 b2 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc9000344f320 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc9000344fae0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc9000344f4a8 R08: ffffffff8237f582 R09: ffffc9000344f970 R10: 0000000000000002 R11: ffff88808bde5940 R12: 0000000000000028 R13: 0000000000000ee0 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000555555645480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff60145c28 CR3: 0000000060d61000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 c1 e8 03 shr $0x3,%rax 4: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 b: fc ff df e: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax 13: 84 c0 test %al,%al 15: 0f 85 d0 17 00 00 jne 0x17eb 1b: 4c 63 33 movslq (%rbx),%r14 1e: 49 83 c4 28 add $0x28,%r12 22: 4c 89 e0 mov %r12,%rax 25: 48 c1 e8 03 shr $0x3,%rax * 29: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 e7 mov %r12,%rdi 33: e8 62 89 b2 ff call 0xffb2899a 38: 4d 8b 3c 24 mov (%r12),%r15 3c: 48 rex.W 3d: b8 .byte 0xb8