REISERFS warning: reiserfs-5093 is_leaf: item entry count seems wrong *3.5*[2 1 0(1) DIR], item_len 35, item_location 4061, free_space(entry_count) 2 REISERFS error (device loop5): 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: 23401 Comm: syz-executor.5 Not tainted 6.7.0-rc6-syzkaller-00303-g3f82f1c3a036 #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 b2 8c b2 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc90014bc7200 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc90014bc79c0 RCX: dffffc0000000000 RDX: ffffc90004e6a000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90014bc7388 R08: ffffffff8237f232 R09: ffffc90014bc7850 R10: 0000000000000002 R11: ffff88801c831dc0 R12: 0000000000000028 R13: 0000000000000f98 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f00117fe6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff44551dc8 CR3: 0000000028ef6000 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 task_work_run+0x24a/0x300 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x150 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x69/0x2a0 kernel/entry/common.c:296 do_syscall_64+0x52/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f0012c7cce9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f00117fe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000021 RAX: 0000000000000005 RBX: 00007f0012d9bf80 RCX: 00007f0012c7cce9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: 00007f0012cc947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0012d9bf80 R15: 00007ffdc9a42318 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 b2 8c b2 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc90014bc7200 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc90014bc79c0 RCX: dffffc0000000000 RDX: ffffc90004e6a000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90014bc7388 R08: ffffffff8237f232 R09: ffffc90014bc7850 R10: 0000000000000002 R11: ffff88801c831dc0 R12: 0000000000000028 R13: 0000000000000f98 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f00117fe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f06b8f98000 CR3: 0000000028ef6000 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 b2 8c b2 ff call 0xffb28cea 38: 4d 8b 3c 24 mov (%r12),%r15 3c: 48 rex.W 3d: b8 .byte 0xb8