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 loop5): vs-5150 search_by_key: invalid format found in block 532. Fsck? ------------[ cut here ]------------ kernel BUG at fs/reiserfs/stree.c:1568! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4142 Comm: syz-executor.5 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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 01 a8 b3 ff 48 8b 54 24 28 e9 45 f5 ff ff e8 12 1e 5c ff <0f> 0b e8 0b 1e 5c ff 0f 0b e8 04 1e 5c ff 0f 0b e8 4d 45 62 08 e8 RSP: 0018:ffffc90004f4f320 EFLAGS: 00010293 RAX: ffffffff822e7dde RBX: 0000000000000000 RCX: ffff88801fe73b80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000e00 RBP: ffffc90004f4f850 R08: ffffffff822e60e4 R09: ffffffff822de339 R10: 0000000000000002 R11: ffff88801fe73b80 R12: 0000000000000e00 R13: 1ffff1100e1de38c R14: 0000000000001000 R15: ffff88806289c678 FS: 00007fdeb65dd6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f978e1fedd3 CR3: 0000000018253000 CR4: 00000000003506e0 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:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fdebf27cb29 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:00007fdeb65dd0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fdebf39c050 RCX: 00007fdebf27cb29 RDX: 0000000000000000 RSI: 0000000000000e00 RDI: 0000000000000006 RBP: 00007fdebf2c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fdebf39c050 R15: 00007ffc4f093c38 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 01 a8 b3 ff 48 8b 54 24 28 e9 45 f5 ff ff e8 12 1e 5c ff <0f> 0b e8 0b 1e 5c ff 0f 0b e8 04 1e 5c ff 0f 0b e8 4d 45 62 08 e8 RSP: 0018:ffffc90004f4f320 EFLAGS: 00010293 RAX: ffffffff822e7dde RBX: 0000000000000000 RCX: ffff88801fe73b80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000e00 RBP: ffffc90004f4f850 R08: ffffffff822e60e4 R09: ffffffff822de339 R10: 0000000000000002 R11: ffff88801fe73b80 R12: 0000000000000e00 R13: 1ffff1100e1de38c R14: 0000000000001000 R15: ffff88806289c678 FS: 00007fdeb65dd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc7951215e8 CR3: 0000000018253000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400