Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp378799pxf; Wed, 10 Mar 2021 08:08:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyk1XCRk+esVSVlnTFZztXQE0iee82VFQjngg9+ePbBgy5qYxE6a5DSvXh5uYXpdJSZ+6Az X-Received: by 2002:a17:906:a147:: with SMTP id bu7mr4351487ejb.383.1615392505638; Wed, 10 Mar 2021 08:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615392505; cv=none; d=google.com; s=arc-20160816; b=HI8DK/jc7AwAnHQnOnPAXb6aUJ/Dh+EKHfwfc6NlYZ1mO8PYH5jr1xwwCcv1qhgB+7 qo6MQAzqw5rYeg3EqG3q8L7veIeriIqMTsuaHa+CkvTPig7V8WLJQaKOEURCRIDTssBj L5xluWWjxc0AgBwqOZ6N7Q+pbIbmhMCT2ZBQi/YvzOg5a2s1Y0yJXmTp7oEilKWMi1Lf vRk5PZDm7tTSxomodxEIuXkuftiqYoI27g0OtoMsj805D0Jdmg1qEdELkJ+CYdNEImVp tQ8ra1uu230irW9vU33DPLGd8PT7s8orgj4kjiGEbIAmLCm1pR9YNiZXZPRmH0Oj8tvE S5WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=qZNVHnR/bDC9xj148yuWgAcFlo0xsdJ2gWgHjhJ2R70=; b=RFzNMS6ZfqK2ASFOWTgtFTAhrdyegDubFbBCKF/5eAjQzT0TcVKKHXtKyPkNCY/Bwg Q0dDYDYRRvzRv6CTDMexKG4r0JIl0b0TJQx8EdbvGFMgixP56FsnKTIuFxW0oXr9TC5v ShbaXxC9Oy7tQCHqR5J8Q4ns5YT/AjuVtgc1Zdb1mFUy/5EsTdihoyFHJNtA+qJ/5l09 yLBL6/BAhHPrSFnjTgUOMo1oKJaz3Up4YWHP1UoNgve2TCAsitHcAz2jEOSFZ53eoufa UOowsfOR/sLBbjVmVku+R9XjF0aAWCQ5847hmLJk1Ahe/5jL3zy3q92cZVjjvQrEn3QC cgFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si14069126edm.320.2021.03.10.08.07.57; Wed, 10 Mar 2021 08:08:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232931AbhCJQFh (ORCPT + 99 others); Wed, 10 Mar 2021 11:05:37 -0500 Received: from mail-il1-f197.google.com ([209.85.166.197]:50981 "EHLO mail-il1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233087AbhCJQF0 (ORCPT ); Wed, 10 Mar 2021 11:05:26 -0500 Received: by mail-il1-f197.google.com with SMTP id x11so13250971ill.17 for ; Wed, 10 Mar 2021 08:05:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=qZNVHnR/bDC9xj148yuWgAcFlo0xsdJ2gWgHjhJ2R70=; b=nOvjOfbFUixhp1Z2Bou2DZKMFYd+TS9X/r43sUtZv15ibrcq3t41K2Kux8sjcIJR8h bRFDt8LniuD9qTUjRv8gVV0M+EuzPo8/sXWndjenubM821UVbR3Z59HLFo+CtRS1KFNV /d/VJWKQDQ4avI1Oc8TmrmZ0GGGLr0Ag42zvT7cd8RylOlvSxdZmnuQwSbyl+LSYLsHy c5oSy4N56mq3rJwfj2ld9Y0W4eyMvcRAAo8Lk7PAdmkC8dbt+bqRa+Wyzn58nnWweuMa txcefVBvI3SwQqeLhwIy3H+Mnl4jGesYOJBb0JOGkFh9qeHInCGaXNo1OvCPQPsYyPNG Ld6g== X-Gm-Message-State: AOAM530PHTffRNl1XkxyRiLf6TMq8jhXEFEDw4Sd36CLJtHtUcYMxp0h DKKzn5Y8qX6vVFrkv9bFyiI/1Bjb0G9WJStWbITqvhw+7xJ/ MIME-Version: 1.0 X-Received: by 2002:a02:a809:: with SMTP id f9mr3529472jaj.63.1615392322586; Wed, 10 Mar 2021 08:05:22 -0800 (PST) Date: Wed, 10 Mar 2021 08:05:22 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008f912605bd30d5d7@google.com> Subject: [syzbot] UBSAN: shift-out-of-bounds in ___bpf_prog_run From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, hawk@kernel.org, john.fastabend@gmail.com, kafai@fb.com, kpsingh@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 144c79ef Merge tag 'perf-tools-fixes-for-v5.12-2020-03-07'.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1572d952d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=ccdd84f79f45b23d dashboard link: https://syzkaller.appspot.com/bug?extid=bed360704c521841c85d Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+bed360704c521841c85d@syzkaller.appspotmail.com ================================================================================ UBSAN: shift-out-of-bounds in kernel/bpf/core.c:1420:2 shift exponent 255 is too large for 64-bit type 'long long unsigned int' CPU: 1 PID: 11097 Comm: syz-executor.4 Not tainted 5.12.0-rc2-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:1420 __bpf_prog_run32+0x8f/0xd0 kernel/bpf/core.c:1735 bpf_dispatcher_nop_func include/linux/bpf.h:644 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:624 [inline] bpf_prog_run_clear_cb include/linux/filter.h:755 [inline] run_filter+0x1a1/0x470 net/packet/af_packet.c:2031 packet_rcv+0x313/0x13e0 net/packet/af_packet.c:2104 dev_queue_xmit_nit+0x7c2/0xa90 net/core/dev.c:2387 xmit_one net/core/dev.c:3588 [inline] dev_hard_start_xmit+0xad/0x920 net/core/dev.c:3609 __dev_queue_xmit+0x2121/0x2e00 net/core/dev.c:4182 __bpf_tx_skb net/core/filter.c:2116 [inline] __bpf_redirect_no_mac net/core/filter.c:2141 [inline] __bpf_redirect+0x548/0xc80 net/core/filter.c:2164 ____bpf_clone_redirect net/core/filter.c:2448 [inline] bpf_clone_redirect+0x2ae/0x420 net/core/filter.c:2420 ___bpf_prog_run+0x34e1/0x77d0 kernel/bpf/core.c:1523 __bpf_prog_run512+0x99/0xe0 kernel/bpf/core.c:1737 bpf_dispatcher_nop_func include/linux/bpf.h:644 [inline] bpf_test_run+0x3ed/0xc50 net/bpf/test_run.c:50 bpf_prog_test_run_skb+0xabc/0x1c50 net/bpf/test_run.c:582 bpf_prog_test_run kernel/bpf/syscall.c:3127 [inline] __do_sys_bpf+0x1ea9/0x4f00 kernel/bpf/syscall.c:4406 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465f69 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:00007f2797f63188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 00000000004bfa3f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffcd53d929f R14: 00007f2797f63300 R15: 0000000000022000 ================================================================================ --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.