REISERFS error (device loop4): 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 loop4): vs-5150 search_by_key: invalid format found in block 533. 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: 26332 Comm: syz-executor.4 Not tainted 6.2.0-rc5-syzkaller-00205-gc96618275234 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/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+0x182/0x21a0 fs/reiserfs/stree.c:1050 Code: 89 d8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df 42 8a 04 20 84 c0 0f 85 f2 17 00 00 4c 63 3b 49 83 c6 28 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 2f 3f b3 ff 4d 8b 36 48 b8 00 00 RSP: 0018:ffffc90003a9f220 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc90003a9f9e0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc90003a9f388 R08: ffffffff822e5489 R09: ffffc90003a9f850 R10: 0000000000000002 R11: ffff88802aeb8000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000028 R15: 0000000000000000 FS: 0000555555642400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdf8e9fe000 CR3: 000000007c747000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_cut_from_item+0x38c/0x25b0 fs/reiserfs/stree.c:1682 reiserfs_do_truncate+0x9d6/0x15a0 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x471/0x790 fs/reiserfs/inode.c:2310 reiserfs_file_release+0x887/0xa30 fs/reiserfs/file.c:109 __fput+0x3ba/0x880 fs/file_table.c:320 task_work_run+0x243/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6aff83df7b 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:00007ffcdd32e7d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f6aff83df7b RDX: 00007f6aff4016a0 RSI: ffffffffffffffff RDI: 0000000000000004 RBP: 00007f6aff9ad980 R08: 0000000000000000 R09: 00007f6aff400000 R10: 00007f6aff4016a8 R11: 0000000000000293 R12: 00000000000cd0ac R13: 00007ffcdd32e8d0 R14: 00007f6aff9abf80 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+0x182/0x21a0 fs/reiserfs/stree.c:1050 Code: 89 d8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df 42 8a 04 20 84 c0 0f 85 f2 17 00 00 4c 63 3b 49 83 c6 28 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 2f 3f b3 ff 4d 8b 36 48 b8 00 00 RSP: 0018:ffffc90003a9f220 EFLAGS: 00010206 RAX: 0000000000000005 RBX: ffffc90003a9f9e0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: ffffc90003a9f388 R08: ffffffff822e5489 R09: ffffc90003a9f850 R10: 0000000000000002 R11: ffff88802aeb8000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000028 R15: 0000000000000000 FS: 0000555555642400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd1d35fe000 CR3: 000000007c747000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 d8 mov %ebx,%eax 2: 48 c1 e8 03 shr $0x3,%rax 6: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12 d: fc ff df 10: 42 8a 04 20 mov (%rax,%r12,1),%al 14: 84 c0 test %al,%al 16: 0f 85 f2 17 00 00 jne 0x180e 1c: 4c 63 3b movslq (%rbx),%r15 1f: 49 83 c6 28 add $0x28,%r14 23: 4c 89 f0 mov %r14,%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 f7 mov %r14,%rdi 34: e8 2f 3f b3 ff callq 0xffb33f68 39: 4d 8b 36 mov (%r14),%r14 3c: 48 rex.W 3d: b8 .byte 0xb8