================================================================================ UBSAN: shift-out-of-bounds in kernel/bpf/core.c:1415:2 shift exponent 255 is too large for 64-bit type 'long long unsigned int' CPU: 0 PID: 20463 Comm: syz-executor.5 Not tainted 5.13.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:327 ___bpf_prog_run.cold+0x19/0x56c kernel/bpf/core.c:1415 __bpf_prog_run32+0x8a/0xd0 kernel/bpf/core.c:1730 bpf_dispatcher_nop_func include/linux/bpf.h:684 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:624 [inline] bpf_prog_run_clear_cb include/linux/filter.h:756 [inline] run_filter+0x1a1/0x470 net/packet/af_packet.c:2035 packet_rcv+0x313/0x13e0 net/packet/af_packet.c:2108 dev_queue_xmit_nit+0x7c2/0xa90 net/core/dev.c:2445 xmit_one net/core/dev.c:3649 [inline] dev_hard_start_xmit+0xad/0x920 net/core/dev.c:3670 __dev_queue_xmit+0x2133/0x3130 net/core/dev.c:4246 __bpf_tx_skb net/core/filter.c:2113 [inline] __bpf_redirect_no_mac net/core/filter.c:2138 [inline] __bpf_redirect+0x548/0xc80 net/core/filter.c:2161 ____bpf_clone_redirect net/core/filter.c:2445 [inline] bpf_clone_redirect+0x2ae/0x420 net/core/filter.c:2417 ___bpf_prog_run+0x34e1/0x77d0 kernel/bpf/core.c:1518 __bpf_prog_run512+0x91/0xd0 kernel/bpf/core.c:1732 bpf_dispatcher_nop_func include/linux/bpf.h:684 [inline] bpf_test_run+0x459/0xa90 net/bpf/test_run.c:117 bpf_prog_test_run_skb+0xabc/0x1c70 net/bpf/test_run.c:656 bpf_prog_test_run kernel/bpf/syscall.c:3150 [inline] __do_sys_bpf+0x218b/0x4f40 kernel/bpf/syscall.c:4429 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb81bf8b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fffbe35fc9f R14: 00007fb81bf8b300 R15: 0000000000022000 ================================================================================