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 loop4): vs-5150 search_by_key: invalid format found in block 532. 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: 22645 Comm: syz-executor.4 Not tainted 6.4.0-rc2-syzkaller-00015-g1b66c114d161 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:reiserfs_node_data fs/reiserfs/reiserfs.h:2184 [inline] RIP: 0010:item_head fs/reiserfs/reiserfs.h:2200 [inline] RIP: 0010:tp_item_head fs/reiserfs/reiserfs.h:2226 [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 22 61 b3 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc900035cf1e0 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc900035cf9c0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc900035cf368 R08: ffffffff822feca2 R09: ffffc900035cf830 R10: 0000000000000002 R11: ffff888079e68000 R12: 0000000000000028 R13: 0000000000000fa0 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000555556e02400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f22cf85d000 CR3: 0000000022c85000 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+0xa16/0x15c0 fs/reiserfs/stree.c:1971 reiserfs_truncate_file+0x4da/0x820 fs/reiserfs/inode.c:2308 reiserfs_file_release+0x8ca/0xaa0 fs/reiserfs/file.c:109 __fput+0x3b7/0x890 fs/file_table.c:321 task_work_run+0x24a/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fbdfea3e01b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffedb58b240 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000009 RCX: 00007fbdfea3e01b RDX: 00007fbdfe601ec8 RSI: ffffffffffffffff RDI: 0000000000000008 RBP: 00007fbdfebad980 R08: 0000000000000000 R09: 00007fbdfe600000 R10: 00007fbdfe601ed0 R11: 0000000000000293 R12: 00000000000f820a R13: 00007ffedb58b340 R14: 00007fbdfebabf80 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:reiserfs_node_data fs/reiserfs/reiserfs.h:2184 [inline] RIP: 0010:item_head fs/reiserfs/reiserfs.h:2200 [inline] RIP: 0010:tp_item_head fs/reiserfs/reiserfs.h:2226 [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 22 61 b3 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc900035cf1e0 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc900035cf9c0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc900035cf368 R08: ffffffff822feca2 R09: ffffc900035cf830 R10: 0000000000000002 R11: ffff888079e68000 R12: 0000000000000028 R13: 0000000000000fa0 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000555556e02400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556185708 CR3: 0000000022c85000 CR4: 00000000003506e0 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 22 61 b3 ff callq 0xffb3615a 38: 4d 8b 3c 24 mov (%r12),%r15 3c: 48 rex.W 3d: b8 .byte 0xb8