REISERFS error (device loop1): vs-13050 reiserfs_update_sd_size: i/o failure occurred trying to update [2 3 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 loop1): vs-5150 search_by_key: invalid format found in block 531. 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: 6889 Comm: syz-executor.1 Not tainted 6.4.0-rc6-syzkaller-00279-g8c1f0c38b310 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/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 d2 55 b3 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc9000356eea0 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc9000356f680 RCX: dffffc0000000000 RDX: ffffc90003fe2000 RSI: 000000000001a8a5 RDI: 000000000001a8a6 RBP: ffffc9000356f028 R08: ffffffff823001b2 R09: ffffc9000356f4f0 R10: 0000000000000002 R11: ffff8880222a3b80 R12: 0000000000000028 R13: 0000000000000fff R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f67cfe91700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d426000 CR3: 000000002b56f000 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_truncate_failed_write fs/reiserfs/inode.c:2741 [inline] reiserfs_write_end+0x6c1/0x7b0 fs/reiserfs/inode.c:2956 generic_perform_write+0x3ed/0x5e0 mm/filemap.c:3940 __generic_file_write_iter+0x17a/0x400 mm/filemap.c:4057 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4089 do_iter_write+0x7b1/0xcb0 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_pwritev+0x21a/0x360 fs/read_write.c:1030 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f67cf08c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f67cfe91168 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f67cf1abf80 RCX: 00007f67cf08c389 RDX: 0000000000000002 RSI: 0000000020000600 RDI: 0000000000000009 RBP: 00007f67cf0d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5504891f R14: 00007f67cfe91300 R15: 0000000000022000 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 d2 55 b3 ff 4d 8b 3c 24 48 b8 00 RSP: 0018:ffffc9000356eea0 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc9000356f680 RCX: dffffc0000000000 RDX: ffffc90003fe2000 RSI: 000000000001a8a5 RDI: 000000000001a8a6 RBP: ffffc9000356f028 R08: ffffffff823001b2 R09: ffffc9000356f4f0 R10: 0000000000000002 R11: ffff8880222a3b80 R12: 0000000000000028 R13: 0000000000000fff R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f67cfe91700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d427000 CR3: 000000002b56f000 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 d2 55 b3 ff callq 0xffb3560a 38: 4d 8b 3c 24 mov (%r12),%r15 3c: 48 rex.W 3d: b8 .byte 0xb8