================================================================================ UBSAN: array-index-out-of-bounds in arch/x86/kernel/uprobes.c:263:56 index 4 is out of range for type 'insn_byte_t [4]' CPU: 3 PID: 15863 Comm: syz-executor.1 Not tainted 5.10.0-rc6-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:356 is_prefix_bad arch/x86/kernel/uprobes.c:263 [inline] uprobe_init_insn arch/x86/kernel/uprobes.c:286 [inline] arch_uprobe_analyze_insn+0x8f4/0xa40 arch/x86/kernel/uprobes.c:856 prepare_uprobe kernel/events/uprobes.c:860 [inline] install_breakpoint.isra.0+0x6c4/0x7c0 kernel/events/uprobes.c:903 uprobe_mmap+0x5ec/0x1080 kernel/events/uprobes.c:1394 mmap_region+0x56c/0x1760 mm/mmap.c:1886 do_mmap+0xcf9/0x11d0 mm/mmap.c:1583 vm_mmap_pgoff+0x195/0x200 mm/util.c:507 ksys_mmap_pgoff+0x444/0x580 mm/mmap.c:1634 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x56/0x80 arch/x86/entry/common.c:137 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fb6549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f55b00bc EFLAGS: 00000296 ORIG_RAX: 00000000000000c0 RAX: ffffffffffffffda RBX: 0000000020007000 RCX: 0000000000003000 RDX: 0000000000000000 RSI: 0000000000000412 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================