REISERFS error (device loop1): vs-5150 search_by_key: invalid format found in block 533. Fsck? REISERFS (device loop1): Remounting filesystem read-only REISERFS error (device loop1): 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 loop1): 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: 1 PID: 8419 Comm: syz-executor.1 Not tainted 6.2.0-rc5-syzkaller-00045-g948ef7bb70c4 #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+0x129/0x1a10 fs/reiserfs/stree.c:1050 Code: da 8b 6b 08 48 c1 ea 03 80 3c 02 00 0f 85 8a 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 4a 18 00 00 48 8b 5b 28 48 63 c5 48 8d 44 40 03 RSP: 0018:ffffc90015947428 EFLAGS: 00010216 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff821837af RDI: 0000000000000028 RBP: 0000000000000000 R08: ffffc90015947630 R09: ffffc90015947620 R10: 00000000fffffffe R11: 0000000000000000 R12: ffffc90015947620 R13: ffff8880909bd7b0 R14: 1ffff92002b28f5c R15: ffffc90015947630 FS: 0000555556ecf400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31d2c000 CR3: 000000001cd8b000 CR4: 0000000000350ee0 Call Trace: reiserfs_cut_from_item+0x260/0x1b20 fs/reiserfs/stree.c:1682 reiserfs_do_truncate+0x630/0x1080 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x1b5/0x1070 fs/reiserfs/inode.c:2310 reiserfs_file_release+0x8a1/0xcb0 fs/reiserfs/file.c:109 __fput+0x27c/0xa90 fs/file_table.c:320 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd4b3e3df7b 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:00007ffcd99082b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fd4b3e3df7b RDX: 00007fd4b3a016d0 RSI: ffffffffffffffff RDI: 0000000000000004 RBP: 00007fd4b3fad980 R08: 0000000000000000 R09: 00007fd4b3a00000 R10: 00007fd4b3a016d8 R11: 0000000000000293 R12: 0000000000149c49 R13: 00007ffcd99083b0 R14: 00007fd4b3fabf80 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+0x129/0x1a10 fs/reiserfs/stree.c:1050 Code: da 8b 6b 08 48 c1 ea 03 80 3c 02 00 0f 85 8a 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 4a 18 00 00 48 8b 5b 28 48 63 c5 48 8d 44 40 03 RSP: 0018:ffffc90015947428 EFLAGS: 00010216 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff821837af RDI: 0000000000000028 RBP: 0000000000000000 R08: ffffc90015947630 R09: ffffc90015947620 R10: 00000000fffffffe R11: 0000000000000000 R12: ffffc90015947620 R13: ffff8880909bd7b0 R14: 1ffff92002b28f5c R15: ffffc90015947630 FS: 0000555556ecf400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc902b58ff8 CR3: 000000001cd8b000 CR4: 0000000000350ee0 ---------------- 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 8a 18 00 00 jne 0x189b 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 4a 18 00 00 jne 0x187d 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