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 loop2): vs-5150 search_by_key: invalid format found in block 532. Fsck? REISERFS (device loop2): Remounting filesystem read-only ------------[ cut here ]------------ kernel BUG at fs/reiserfs/stree.c:1568! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6606 Comm: syz-executor.2 Not tainted 6.1.62-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:maybe_indirect_to_direct fs/reiserfs/stree.c:1568 [inline] RIP: 0010:reiserfs_cut_from_item+0x231e/0x2580 fs/reiserfs/stree.c:1694 Code: 44 89 e1 80 e1 07 38 c1 0f 8c 5c f5 ff ff be 04 00 00 00 4c 89 e7 e8 21 28 b4 ff 48 8b 54 24 28 e9 45 f5 ff ff e8 12 ec 5c ff <0f> 0b e8 0b ec 5c ff 0f 0b e8 04 ec 5c ff 0f 0b e8 ed 55 5b 08 e8 RSP: 0018:ffffc90006d4f320 EFLAGS: 00010287 RAX: ffffffff822da25e RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000d5fb000 RSI: 00000000000110f9 RDI: 00000000000110fa RBP: ffffc90006d4f850 R08: ffffffff822d8564 R09: ffffffff822d07b9 R10: 0000000000000002 R11: ffff88807d673b80 R12: 0000000000000e5c R13: 1ffff11006ed0608 R14: 0000000000001000 R15: ffff88807a9ba678 FS: 00007fef197dd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000100 CR3: 00000000795e9000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_do_truncate+0xa12/0x15b0 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x4d6/0x810 fs/reiserfs/inode.c:2310 reiserfs_setattr+0xc57/0x11c0 fs/reiserfs/inode.c:3395 notify_change+0xce3/0xfc0 fs/attr.c:499 do_truncate+0x21c/0x300 fs/open.c:65 do_sys_ftruncate+0x2e2/0x380 fs/open.c:193 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fef1ac7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fef197dd0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fef1ad9c050 RCX: 00007fef1ac7cae9 RDX: 0000000000000000 RSI: 0000000000000e5c RDI: 0000000000000004 RBP: 00007fef1acc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fef1ad9c050 R15: 00007ffd48428e18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:maybe_indirect_to_direct fs/reiserfs/stree.c:1568 [inline] RIP: 0010:reiserfs_cut_from_item+0x231e/0x2580 fs/reiserfs/stree.c:1694 Code: 44 89 e1 80 e1 07 38 c1 0f 8c 5c f5 ff ff be 04 00 00 00 4c 89 e7 e8 21 28 b4 ff 48 8b 54 24 28 e9 45 f5 ff ff e8 12 ec 5c ff <0f> 0b e8 0b ec 5c ff 0f 0b e8 04 ec 5c ff 0f 0b e8 ed 55 5b 08 e8 RSP: 0018:ffffc90006d4f320 EFLAGS: 00010287 RAX: ffffffff822da25e RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000d5fb000 RSI: 00000000000110f9 RDI: 00000000000110fa RBP: ffffc90006d4f850 R08: ffffffff822d8564 R09: ffffffff822d07b9 R10: 0000000000000002 R11: ffff88807d673b80 R12: 0000000000000e5c R13: 1ffff11006ed0608 R14: 0000000000001000 R15: ffff88807a9ba678 FS: 00007fef197dd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc4590a7e90 CR3: 00000000795e9000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400