REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 532. 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 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: 1 PID: 5007 Comm: syz-executor401 Not tainted 6.3.0-next-20230428-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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+0x129/0x1a00 fs/reiserfs/stree.c:1050 Code: da 8b 6b 08 48 c1 ea 03 80 3c 02 00 0f 85 77 18 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 1b 48 8d 7b 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 37 18 00 00 48 8b 5b 28 48 63 c5 48 8d 44 40 03 RSP: 0018:ffffc900039af400 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff822174af RDI: 0000000000000028 RBP: 0000000000000000 R08: ffffc900039af608 R09: ffffc900039af5f8 R10: 00000000fffffffe R11: 0000000000000001 R12: ffffc900039af5f8 R13: ffff888074990190 R14: 1ffff92000735f57 R15: ffffc900039af608 FS: 0000555556463300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f22e64fb50 CR3: 00000000751e7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_cut_from_item+0x260/0x1b20 fs/reiserfs/stree.c:1680 reiserfs_do_truncate+0x630/0x1080 fs/reiserfs/stree.c:1971 reiserfs_truncate_file+0x1b5/0x1070 fs/reiserfs/inode.c:2308 reiserfs_file_release+0x8a1/0xcb0 fs/reiserfs/file.c:109 __fput+0x27c/0xa90 fs/file_table.c:321 task_work_run+0x16f/0x270 kernel/task_work.c:179 ptrace_notify+0x118/0x140 kernel/signal.c:2369 ptrace_report_syscall include/linux/ptrace.h:411 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline] syscall_exit_work kernel/entry/common.c:252 [inline] syscall_exit_to_user_mode_prepare+0x129/0x220 kernel/entry/common.c:279 __syscall_exit_to_user_mode_work kernel/entry/common.c:284 [inline] syscall_exit_to_user_mode+0xd/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0c4d20a2f3 Code: c7 c2 c0 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb ba 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 RSP: 002b:00007fffee183e08 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f0c4d20a2f3 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fffee183e18 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffee183e20 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 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+0x129/0x1a00 fs/reiserfs/stree.c:1050 Code: da 8b 6b 08 48 c1 ea 03 80 3c 02 00 0f 85 77 18 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 1b 48 8d 7b 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 37 18 00 00 48 8b 5b 28 48 63 c5 48 8d 44 40 03 RSP: 0018:ffffc900039af400 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff822174af RDI: 0000000000000028 RBP: 0000000000000000 R08: ffffc900039af608 R09: ffffc900039af5f8 R10: 00000000fffffffe R11: 0000000000000001 R12: ffffc900039af5f8 R13: ffff888074990190 R14: 1ffff92000735f57 R15: ffffc900039af608 FS: 0000555556463300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f22e64fb50 CR3: 00000000751e7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 8b 6b 08 mov 0x8(%rbx),%ebp 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 77 18 00 00 jne 0x1888 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 48 8b 1b mov (%rbx),%rbx 1e: 48 8d 7b 28 lea 0x28(%rbx),%rdi 22: 48 89 fa mov %rdi,%rdx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2d: 0f 85 37 18 00 00 jne 0x186a 33: 48 8b 5b 28 mov 0x28(%rbx),%rbx 37: 48 63 c5 movslq %ebp,%rax 3a: 48 8d 44 40 03 lea 0x3(%rax,%rax,2),%rax