------------[ cut here ]------------ kernel BUG at fs/reiserfs/stree.c:1568! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5907 Comm: syz.1.589 Not tainted 5.15.162-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:maybe_indirect_to_direct fs/reiserfs/stree.c:1568 [inline] RIP: 0010:reiserfs_cut_from_item+0x22ff/0x2560 fs/reiserfs/stree.c:1694 Code: 44 89 e1 80 e1 07 38 c1 0f 8c 7b f5 ff ff be 04 00 00 00 4c 89 e7 e8 40 2b b9 ff 48 8b 54 24 28 e9 64 f5 ff ff e8 81 5b 6f ff <0f> 0b e8 7a 5b 6f ff 0f 0b e8 73 5b 6f ff 0f 0b e8 6c 7d 0d 08 e8 RSP: 0018:ffffc900030d7300 EFLAGS: 00010287 RAX: ffffffff8210ffdf RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000a251000 RSI: 000000000002717a RDI: 000000000002717b RBP: ffffc900030d7830 R08: ffffffff8210e304 R09: ffffffff82106559 R10: 0000000000000002 R11: ffff88801a559dc0 R12: 0000000000000e5c R13: 1ffff1100e64b1e4 R14: 0000000000001000 R15: ffff88807c3a2678 FS: 00007ff8b06986c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f674ac1efa8 CR3: 0000000066013000 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+0x638/0xda0 fs/reiserfs/inode.c:2318 reiserfs_setattr+0xa4d/0xf90 fs/reiserfs/inode.c:3409 notify_change+0xc6d/0xf50 fs/attr.c:505 do_truncate+0x21c/0x300 fs/open.c:65 do_sys_ftruncate+0x2eb/0x390 fs/open.c:193 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ff8b1c38bd9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff8b0698048 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007ff8b1dc7038 RCX: 00007ff8b1c38bd9 RDX: 0000000000000000 RSI: 0000000000000e5c RDI: 0000000000000004 RBP: 00007ff8b1ca7e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff8b1dc7038 R15: 00007ffc191dd7b8 Modules linked in: ---[ end trace 9d18b26af1b12dc0 ]--- RIP: 0010:maybe_indirect_to_direct fs/reiserfs/stree.c:1568 [inline] RIP: 0010:reiserfs_cut_from_item+0x22ff/0x2560 fs/reiserfs/stree.c:1694 Code: 44 89 e1 80 e1 07 38 c1 0f 8c 7b f5 ff ff be 04 00 00 00 4c 89 e7 e8 40 2b b9 ff 48 8b 54 24 28 e9 64 f5 ff ff e8 81 5b 6f ff <0f> 0b e8 7a 5b 6f ff 0f 0b e8 73 5b 6f ff 0f 0b e8 6c 7d 0d 08 e8 RSP: 0018:ffffc900030d7300 EFLAGS: 00010287 RAX: ffffffff8210ffdf RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000a251000 RSI: 000000000002717a RDI: 000000000002717b RBP: ffffc900030d7830 R08: ffffffff8210e304 R09: ffffffff82106559 R10: 0000000000000002 R11: ffff88801a559dc0 R12: 0000000000000e5c R13: 1ffff1100e64b1e4 R14: 0000000000001000 R15: ffff88807c3a2678 FS: 00007ff8b06986c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30909ff8 CR3: 0000000066013000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400