================================================================================ UBSAN: array-index-out-of-bounds in arch/x86/kernel/uprobes.c:263:36 index 4 is out of range for type 'insn_byte_t [4]' CPU: 0 PID: 21558 Comm: syz-executor.4 Not tainted 5.10.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x137/0x1be lib/dump_stack.c:118 ubsan_epilogue lib/ubsan.c:148 [inline] __ubsan_handle_out_of_bounds+0xdb/0x130 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+0x1e7/0x12c0 arch/x86/kernel/uprobes.c:856 prepare_uprobe kernel/events/uprobes.c:860 [inline] install_breakpoint+0x3f1/0x450 kernel/events/uprobes.c:903 uprobe_mmap+0xd6f/0x1270 kernel/events/uprobes.c:1394 mmap_region+0xa44/0x1bc0 mm/mmap.c:1886 do_mmap+0x964/0x11e0 mm/mmap.c:1583 vm_mmap_pgoff+0x12c/0x1c0 mm/util.c:507 ksys_mmap_pgoff+0x358/0x4f0 mm/mmap.c:1634 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45deb9 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f1087779c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000021480 RCX: 000000000045deb9 RDX: 0000000000000000 RSI: 0000000000003000 RDI: 0000000020007000 RBP: 000000000118bf78 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000412 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffc3487e1ef R14: 00007f108777a9c0 R15: 000000000118bf2c ================================================================================