------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/bpf/disasm.c:306:21 index 3 is out of range for type 'char *[3]' CPU: 3 UID: 0 PID: 5911 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xcc/0xf0 lib/ubsan.c:455 print_bpf_insn+0x2969/0x2a10 kernel/bpf/disasm.c:306 format_disasm_line kernel/bpf/diagnostics.c:633 [inline] diag_print_insn_context+0x3ab/0x9b0 kernel/bpf/diagnostics.c:783 bpf_diag_source+0x698/0x1540 kernel/bpf/diagnostics.c:896 bpf_diag_program_structure+0x200/0x290 kernel/bpf/diagnostics.c:1215 check_subprogs kernel/bpf/verifier.c:3057 [inline] bpf_check+0x5914/0xa7c0 kernel/bpf/verifier.c:21097 bpf_prog_load+0x1ac3/0x2a80 kernel/bpf/syscall.c:3133 __sys_bpf+0x1f46/0x4a30 kernel/bpf/syscall.c:6367 __do_sys_bpf kernel/bpf/syscall.c:6486 [inline] __se_sys_bpf kernel/bpf/syscall.c:6483 [inline] __x64_sys_bpf+0xce/0x140 kernel/bpf/syscall.c:6483 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f266ab9e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcd52dd658 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f266ae25fa0 RCX: 00007f266ab9e159 RDX: 0000000000000054 RSI: 000020000000e000 RDI: 0000000000000005 RBP: 00007f266ac35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f266ae25fac R14: 00007f266ae25fa0 R15: 00007f266ae25fa0 ---[ end trace ]---