================================================================================ UBSAN: array-index-out-of-bounds in kernel/bpf/verifier.c:5393:12 index -1 is out of range for type 'u8[8]' (aka 'unsigned char[8]') CPU: 1 PID: 32758 Comm: syz-executor.0 Not tainted 6.1.68-syzkaller-00105-gf085398f0e8f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x13a/0x160 lib/ubsan.c:282 check_stack_range_initialized+0x1349/0x1770 kernel/bpf/verifier.c:5393 check_helper_mem_access+0x4c3/0xf80 kernel/bpf/verifier.c:5497 check_helper_call+0x2fcf/0x6cd0 kernel/bpf/verifier.c:7564 do_check+0x78b7/0xe040 kernel/bpf/verifier.c:12672 do_check_common+0x6ce/0xed0 kernel/bpf/verifier.c:14940 do_check_main kernel/bpf/verifier.c:15003 [inline] bpf_check+0x673b/0x16560 kernel/bpf/verifier.c:15577 bpf_prog_load+0x1304/0x1bf0 kernel/bpf/syscall.c:2605 __sys_bpf+0x52c/0x7f0 kernel/bpf/syscall.c:4972 __do_sys_bpf kernel/bpf/syscall.c:5076 [inline] __se_sys_bpf kernel/bpf/syscall.c:5074 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5074 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f17d3a7dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f17d48250c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f17d3babf80 RCX: 00007f17d3a7dda9 RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f17d3aca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f17d3babf80 R15: 00007ffe72602f38 ================================================================================