REISERFS warning: reiserfs-5093 is_leaf: item entry count seems wrong *3.5*[2 1 0(1) DIR], item_len 35, item_location 4029, free_space(entry_count) 2 REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 549. Fsck? REISERFS (device loop0): Remounting filesystem read-only REISERFS error (device loop0): vs-13050 reiserfs_update_sd_size: i/o failure occurred trying to update [2 2 0x0 SD] stat data REISERFS warning: reiserfs-5093 is_leaf: item entry count seems wrong *3.5*[2 1 0(1) DIR], item_len 35, item_location 4029, free_space(entry_count) 2 REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 549. 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: 5165 Comm: syz.0.15 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 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+0x170/0x1e00 fs/reiserfs/stree.c:1050 Code: 44 24 38 4a 8d 5c 30 08 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 fc 14 00 00 4c 63 33 49 83 c7 28 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 81 27 bf ff 4d 8b 3f 48 8b 44 24 RSP: 0018:ffffc9000307f2e0 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc9000307fa60 RCX: ffff88807b298000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc9000307f448 R08: ffffc9000307f538 R09: ffffc9000307f53c R10: 00000000fffffffe R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc9000307fa40 R14: 0000000000000000 R15: 0000000000000028 FS: 000055556e879500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020006000 CR3: 000000001ab87000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_cut_from_item+0x289/0x1ef0 fs/reiserfs/stree.c:1682 reiserfs_do_truncate+0xa90/0x13e0 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x632/0xdc0 fs/reiserfs/inode.c:2318 reiserfs_file_release+0x8e0/0xa50 fs/reiserfs/file.c:109 __fput+0x234/0x930 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ff1e2f82ef9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdf1f27c88 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 000000000001c60a RCX: 00007ff1e2f82ef9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007ff1e313da80 R08: 0000000000000001 R09: 00007ffdf1f27f7f R10: 00007ff1e2e06000 R11: 0000000000000246 R12: 000000000001c776 R13: 00007ffdf1f27d90 R14: 0000000000000032 R15: ffffffffffffffff Modules linked in: ---[ end trace b4f4a8093ca1f596 ]--- 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+0x170/0x1e00 fs/reiserfs/stree.c:1050 Code: 44 24 38 4a 8d 5c 30 08 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 fc 14 00 00 4c 63 33 49 83 c7 28 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 81 27 bf ff 4d 8b 3f 48 8b 44 24 RSP: 0018:ffffc9000307f2e0 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc9000307fa60 RCX: ffff88807b298000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc9000307f448 R08: ffffc9000307f538 R09: ffffc9000307f53c R10: 00000000fffffffe R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc9000307fa40 R14: 0000000000000000 R15: 0000000000000028 FS: 000055556e879500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020006000 CR3: 000000001ab87000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 44 24 38 rex.R and $0x38,%al 3: 4a 8d 5c 30 08 lea 0x8(%rax,%r14,1),%rbx 8: 48 89 d8 mov %rbx,%rax b: 48 c1 e8 03 shr $0x3,%rax f: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax 14: 84 c0 test %al,%al 16: 0f 85 fc 14 00 00 jne 0x1518 1c: 4c 63 33 movslq (%rbx),%r14 1f: 49 83 c7 28 add $0x28,%r15 23: 4c 89 f8 mov %r15,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 81 27 bf ff call 0xffbf27ba 39: 4d 8b 3f mov (%r15),%r15 3c: 48 rex.W 3d: 8b .byte 0x8b 3e: 44 rex.R 3f: 24 .byte 0x24