REISERFS warning: reiserfs-5093 is_leaf: item entry count seems wrong *3.5*[2 1 0(1) DIR], item_len 35, item_location 4061, free_space(entry_count) 2 REISERFS error (device loop4): vs-5150 search_by_key: invalid format found in block 532. Fsck? REISERFS (device loop4): Remounting filesystem read-only ------------[ cut here ]------------ kernel BUG at fs/reiserfs/stree.c:1566! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 18289 Comm: syz-executor.4 Not tainted 6.4.0-rc5-syzkaller-00178-g33f2b5785a2b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:maybe_indirect_to_direct fs/reiserfs/stree.c:1566 [inline] RIP: 0010:reiserfs_cut_from_item+0xaeb/0x1b20 fs/reiserfs/stree.c:1692 Code: 11 f7 ff ff 48 89 ef e8 d3 72 b5 ff e9 42 fa ff ff 48 89 cf e8 c6 72 b5 ff e9 50 f9 ff ff e8 9c 9f 63 ff 0f 0b e8 95 9f 63 ff <0f> 0b e8 8e 9f 63 ff 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 RSP: 0018:ffffc90003f5f508 EFLAGS: 00010216 RAX: 000000000001b351 RBX: 0000000000000e00 RCX: ffffc9000b183000 RDX: 0000000000040000 RSI: ffffffff821fc77b RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000e00 R11: 0000000000000001 R12: ffff888040f673e0 R13: ffff888040f67390 R14: ffff88804dbf2000 R15: ffffc90003f5fa78 FS: 00007f5b1c979700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d94f000 CR3: 0000000044b91000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reiserfs_do_truncate+0x630/0x1080 fs/reiserfs/stree.c:1971 reiserfs_truncate_file+0x1b5/0x1070 fs/reiserfs/inode.c:2308 reiserfs_setattr+0xddf/0x1370 fs/reiserfs/inode.c:3393 notify_change+0xb2c/0x1180 fs/attr.c:483 do_truncate+0x143/0x200 fs/open.c:66 do_sys_ftruncate+0x53a/0x770 fs/open.c:194 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5b1bc8c169 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:00007f5b1c979168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f5b1bdabf80 RCX: 00007f5b1bc8c169 RDX: 0000000000000000 RSI: 0000000000000e00 RDI: 0000000000000006 RBP: 00007f5b1bce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffbd4e374f R14: 00007f5b1c979300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:maybe_indirect_to_direct fs/reiserfs/stree.c:1566 [inline] RIP: 0010:reiserfs_cut_from_item+0xaeb/0x1b20 fs/reiserfs/stree.c:1692 Code: 11 f7 ff ff 48 89 ef e8 d3 72 b5 ff e9 42 fa ff ff 48 89 cf e8 c6 72 b5 ff e9 50 f9 ff ff e8 9c 9f 63 ff 0f 0b e8 95 9f 63 ff <0f> 0b e8 8e 9f 63 ff 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 RSP: 0018:ffffc90003f5f508 EFLAGS: 00010216 RAX: 000000000001b351 RBX: 0000000000000e00 RCX: ffffc9000b183000 RDX: 0000000000040000 RSI: ffffffff821fc77b RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000e00 R11: 0000000000000001 R12: ffff888040f673e0 R13: ffff888040f67390 R14: ffff88804dbf2000 R15: ffffc90003f5fa78 FS: 00007f5b1c979700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f403f7831b8 CR3: 0000000044b91000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400