From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SORTED_RECIPS, SPF_HELO_PASS,SPF_SOFTFAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 340B4C433FE for ; Mon, 21 Mar 2022 06:55:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344651AbiCUG4t (ORCPT ); Mon, 21 Mar 2022 02:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344643AbiCUG4r (ORCPT ); Mon, 21 Mar 2022 02:56:47 -0400 Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0244B36168 for ; Sun, 20 Mar 2022 23:55:23 -0700 (PDT) Received: by mail-io1-f69.google.com with SMTP id s14-20020a0566022bce00b00645e9bc9773so9949659iov.20 for ; Sun, 20 Mar 2022 23:55:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=daSupJTaLEMjCQlcgBlg0/J8zG8qmmsadR+tY63b3gs=; b=ZzsGq+wAqbgo0GGoQgaSGKj0UrhYnEHhzJKnTrQrevbTWFAayDQ+GC76UFxhP9JSJw 3qQQuYVsWXSIuZPccnB1vVDzuL8yc9s8mxN/lZOAZW64aJZ9PpHHBNB7tOvJ5V/1H7c0 xa1TFEuMQVTvYmzwK+wWdnfQKWjUIpQ9C981WCXLWB9NsIlzcnCK2ZnXmcfnyoythli+ v3hHW7gkrRVfLsHmbhYoFFvb4tYvMl7cNik64soTnUCNs/oaxnHhEJP7F3qEthWoB6r4 DRdXAjEpCdx0MBRcfIswqwok9kWzBMlQwx4RTgXQ5cIysPKoviF1dOcaLYIK7YuEyKHg Selw== X-Gm-Message-State: AOAM531Lj9j5Z19EBYuHbOqaazzi+TGRPsVaIo04s0uzwRD1T5pazooy LeSrSbkzae+Q+0LsBIiCxXJrfuJ+eUDngqXiczXPp9vmGQyo X-Google-Smtp-Source: ABdhPJyaYb68cejI/NR0p5vkFV1JTMagoK9de7VunW25JL+u2gSHf2xZ1AF9cWOrhDNbTSrjR7+4DCvM8TADQF5NhhPKg9edY2Nj MIME-Version: 1.0 X-Received: by 2002:a02:bb01:0:b0:31a:a11:1c39 with SMTP id y1-20020a02bb01000000b0031a0a111c39mr10494944jan.233.1647845722331; Sun, 20 Mar 2022 23:55:22 -0700 (PDT) Date: Sun, 20 Mar 2022 23:55:22 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ec9cf305dab4faae@google.com> Subject: [syzbot] bpf-next boot error: WARNING in bpf_prog_pack_free 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: 7ada3787e91c bpf: Check for NULL return from bpf_get_btf_v.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=14079871700000 kernel config: https://syzkaller.appspot.com/x/.config?x=820db791969fe863 dashboard link: https://syzkaller.appspot.com/bug?extid=c946805b5ce6ab87df0b compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c946805b5ce6ab87df0b@syzkaller.appspotmail.com ------------[ cut here ]------------ bpf_prog_pack bug WARNING: CPU: 0 PID: 8 at kernel/bpf/core.c:947 bpf_prog_pack_free+0x2fc/0x3a0 kernel/bpf/core.c:947 Modules linked in: CPU: 0 PID: 8 Comm: kworker/0:1 Not tainted 5.17.0-rc6-syzkaller-02056-g7ada3787e91c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events bpf_prog_free_deferred RIP: 0010:bpf_prog_pack_free+0x2fc/0x3a0 kernel/bpf/core.c:947 Code: 0b 31 ff 89 de e8 64 44 f3 ff 84 db 0f 85 82 fe ff ff e8 d7 41 f3 ff 48 c7 c7 60 df b2 89 c6 05 e2 99 fa 0b 01 e8 6b 10 87 07 <0f> 0b e9 63 fe ff ff e8 b8 41 f3 ff 0f 0b 0f 0b 41 be ff ff ff ff RSP: 0000:ffffc900000d7c60 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888010e65700 RSI: ffffffff815fe3a8 RDI: fffff5200001af7e RBP: ffffffff8bc177e0 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff815f8a3e R11: 0000000000000000 R12: ffff8881449f4010 R13: ffffffffa0400000 R14: ffffffffa0600640 R15: 0000000000000540 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88823ffff000 CR3: 000000000b88e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_jit_binary_pack_free kernel/bpf/core.c:1151 [inline] bpf_jit_free+0x11d/0x2b0 kernel/bpf/core.c:1180 bpf_prog_free_deferred+0x5c1/0x790 kernel/bpf/core.c:2553 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 --- 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.