REISERFS warning: reiserfs-5093 is_leaf: item entry count seems wrong *3.5*[2 5 0(1) DIR], item_len 35, item_location 3934, free_space(entry_count) 2 REISERFS error (device loop3): 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: 0 PID: 6110 Comm: syz-executor.3 Not tainted 6.7.0-rc7-syzkaller #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+0x165/0x1890 fs/reiserfs/stree.c:1050 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 38 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 1b 48 8d 7b 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 0c 15 00 00 48 8b 5b 28 49 63 c5 48 8d 44 40 03 RSP: 0018:ffffc90015cef4a0 EFLAGS: 00010216 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90015cefb48 RDX: 0000000000000005 RSI: ffffffff8229b863 RDI: 0000000000000028 RBP: ffffc90015cef5f0 R08: ffffc90015cef6d0 R09: ffffc90015cef6c0 R10: 00000000fffffffe R11: 00000000002b6f20 R12: ffffc90015cef6c0 R13: 0000000000000000 R14: ffff888084600190 R15: ffffc90015cef6d0 FS: 0000555556490480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1b84f7a038 CR3: 000000007751d000 CR4: 0000000000350ef0 Call Trace: reiserfs_cut_from_item+0x20b/0x1a10 fs/reiserfs/stree.c:1680 reiserfs_do_truncate+0x672/0x10b0 fs/reiserfs/stree.c:1971 reiserfs_truncate_file+0x1bf/0x940 fs/reiserfs/inode.c:2302 reiserfs_file_release+0xae3/0xc40 fs/reiserfs/file.c:109 __fput+0x270/0xb70 fs/file_table.c:394 __fput_sync+0x47/0x50 fs/file_table.c:475 __do_sys_close fs/open.c:1587 [inline] __se_sys_close fs/open.c:1572 [inline] __x64_sys_close+0x87/0xf0 fs/open.c:1572 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fa3a467bbda 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:00007ffd7e197370 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 000000000000000a RCX: 00007fa3a467bbda RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000009 RBP: 0000000000000032 R08: 0000001b32220000 R09: 0000000000000360 R10: 000000008172e77e R11: 0000000000000293 R12: 00007fa3a4202938 R13: ffffffffffffffff R14: 00007fa3a4200000 R15: 0000000000177b70 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+0x165/0x1890 fs/reiserfs/stree.c:1050 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 38 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 1b 48 8d 7b 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 0c 15 00 00 48 8b 5b 28 49 63 c5 48 8d 44 40 03 RSP: 0018:ffffc90015cef4a0 EFLAGS: 00010216 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90015cefb48 RDX: 0000000000000005 RSI: ffffffff8229b863 RDI: 0000000000000028 RBP: ffffc90015cef5f0 R08: ffffc90015cef6d0 R09: ffffc90015cef6c0 R10: 00000000fffffffe R11: 00000000002b6f20 R12: ffffc90015cef6c0 R13: 0000000000000000 R14: ffff888084600190 R15: ffffc90015cef6d0 FS: 0000555556490480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f959d777198 CR3: 000000007751d000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess), 4 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 38 15 00 00 jne 0x1546 e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 48 8b 1b mov (%rbx),%rbx 1b: 48 8d 7b 28 lea 0x28(%rbx),%rdi 1f: 48 89 fa mov %rdi,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx * 26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2a: 0f 85 0c 15 00 00 jne 0x153c 30: 48 8b 5b 28 mov 0x28(%rbx),%rbx 34: 49 63 c5 movslq %r13d,%rax 37: 48 8d 44 40 03 lea 0x3(%rax,%rax,2),%rax