REISERFS (device loop5): Remounting filesystem read-only ------------[ cut here ]------------ kernel BUG at fs/reiserfs/stree.c:1566! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10086 Comm: syz-executor.5 Not tainted 6.4.0-rc2-next-20230515-syzkaller #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 23 96 b5 ff e9 42 fa ff ff 48 89 cf e8 16 96 b5 ff e9 50 f9 ff ff e8 ec 95 62 ff 0f 0b e8 e5 95 62 ff <0f> 0b e8 de 95 62 ff 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 RSP: 0018:ffffc9000363f508 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000e00 RCX: ffffc90005aa2000 RDX: 0000000000040000 RSI: ffffffff82218dcb RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000e00 R11: 205d363830303154 R12: ffff8880aa490f20 R13: ffff8880aa490ed0 R14: ffff888095510000 R15: ffffc9000363fa78 FS: 00007f7cfda13700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0e909f0000 CR3: 000000007e64e000 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:0x7f7cfcc8c169 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:00007f7cfda13168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f7cfcdac120 RCX: 00007f7cfcc8c169 RDX: 0000000000000000 RSI: 0000000000000e00 RDI: 0000000000000006 RBP: 00007f7cfcce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffed90300f R14: 00007f7cfda13300 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 23 96 b5 ff e9 42 fa ff ff 48 89 cf e8 16 96 b5 ff e9 50 f9 ff ff e8 ec 95 62 ff 0f 0b e8 e5 95 62 ff <0f> 0b e8 de 95 62 ff 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 RSP: 0018:ffffc9000363f508 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000e00 RCX: ffffc90005aa2000 RDX: 0000000000040000 RSI: ffffffff82218dcb RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000e00 R11: 205d363830303154 R12: ffff8880aa490f20 R13: ffff8880aa490ed0 R14: ffff888095510000 R15: ffffc9000363fa78 FS: 00007f7cfda13700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f18d1d86058 CR3: 000000007e64e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400