From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33DAFC433ED for ; Thu, 1 Apr 2021 01:09:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E0C9A61059 for ; Thu, 1 Apr 2021 01:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232271AbhDABIy (ORCPT ); Wed, 31 Mar 2021 21:08:54 -0400 Received: from mail-io1-f71.google.com ([209.85.166.71]:48240 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbhDABIR (ORCPT ); Wed, 31 Mar 2021 21:08:17 -0400 Received: by mail-io1-f71.google.com with SMTP id g12so2778471ion.15 for ; Wed, 31 Mar 2021 18:08:17 -0700 (PDT) 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=HhXZSdtRdZONG6W//ZnC0o+E0uXZyzIdW05SEDejhRI=; b=YOEbu76NZGyv1ROsvPoIUK+GXlbaks0wnhSRe4x4UlpS6VGN67R8tIDFcN8Jisu0UO t8/ARps++wj02se0WJ/mGVsGfdTSqT7If8mzyMfP/SgguTENZ8+95dWGssstd0SffLfr BCGxpYki8UMtUXTIITwEepkDYnUPaCeeSo5kYH1Guuickbauq88y4SL1YJSzdbbMW4Cn Bs8NV+Mi8mgQUxdLhoTWnIagVrc54m1tsbuOz5WF5ZicaHDCEsfhyhoW3xWjvA2yaAgn JVqTejW/P4daYlmjY2PP5DVrksRLw0/M/j3InhZsdhQnNe6WV9wGt4GaLtTCpkNvf1PI bVEg== X-Gm-Message-State: AOAM532wf7kZjSJHf5pqyEPV+ZVZaJU63S+YrlEyk29vL6nXdakyQy6h R7pGjZyY+bmKJKcGTEsAUa4EGQ8TFuTP0k5SrkoRn0Rv8AGX X-Google-Smtp-Source: ABdhPJxRG2A1XbTYVHAQer5B/AXXuXwpzcTQx1FSnrCnLb4+x+o7eoZfn1yC5fbJYF3rbpC7Co0C7bW0E1x7QM8/fB+BYzDMfYxn MIME-Version: 1.0 X-Received: by 2002:a92:c90c:: with SMTP id t12mr79501ilp.248.1617239296423; Wed, 31 Mar 2021 18:08:16 -0700 (PDT) Date: Wed, 31 Mar 2021 18:08:16 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c7bbd305bededd29@google.com> Subject: [syzbot] memory leak in bpf (2) 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: netdev@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 0f4498ce Merge tag 'for-5.12/dm-fixes-2' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1250e126d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=49f2683f4e7a4347 dashboard link: https://syzkaller.appspot.com/bug?extid=5d895828587f49e7fe9b syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10a17016d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10a32016d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+5d895828587f49e7fe9b@syzkaller.appspotmail.com Warning: Permanently added '10.128.0.74' (ECDSA) to the list of known hosts. executing program executing program BUG: memory leak unreferenced object 0xffff8881133295c0 (size 64): comm "syz-executor529", pid 8395, jiffies 4294943939 (age 8.130s) hex dump (first 32 bytes): 40 48 3c 04 00 ea ff ff 00 48 3c 04 00 ea ff ff @H<......H<..... c0 e7 3c 04 00 ea ff ff 80 e7 3c 04 00 ea ff ff ..<.......<..... backtrace: [] kmalloc_node include/linux/slab.h:577 [inline] [] __bpf_map_area_alloc+0xfc/0x120 kernel/bpf/syscall.c:300 [] bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:90 [inline] [] bpf_ringbuf_alloc kernel/bpf/ringbuf.c:131 [inline] [] ringbuf_map_alloc kernel/bpf/ringbuf.c:170 [inline] [] ringbuf_map_alloc+0x134/0x350 kernel/bpf/ringbuf.c:146 [] find_and_alloc_map kernel/bpf/syscall.c:122 [inline] [] map_create kernel/bpf/syscall.c:828 [inline] [] __do_sys_bpf+0x7c3/0x2fe0 kernel/bpf/syscall.c:4375 [] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [] entry_SYSCALL_64_after_hwframe+0x44/0xae --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches