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 7D089C43603 for ; Thu, 1 Apr 2021 01:09:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5DA1A6108C for ; Thu, 1 Apr 2021 01:09:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbhDABI4 (ORCPT ); Wed, 31 Mar 2021 21:08:56 -0400 Received: from mail-il1-f199.google.com ([209.85.166.199]:55579 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbhDABIR (ORCPT ); Wed, 31 Mar 2021 21:08:17 -0400 Received: by mail-il1-f199.google.com with SMTP id x15so2757031ilg.22 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=kmFD2eWoeui6mzzfpyEEvyQHoPeKrXrpAje3+sLDxRHwVYRtCuTuhv2qJodpupRlcz SNj2XC5MVB7KFufLYueHiHY/iIHWYkQ6Ay6aorvIhegvtpw9yV9GmWDPtm/wAwmdpGrz Wt8ADBsN5euDHjmLsUnRQj3b+OUOsDcx4TF1ahACPrnWpC0v9dcVb8wDgL6WjPD/JsaF 9zUxkX4OgEFNHqCypb6GJRCnUPbq5D8E5CkWH8XLr+RfaKeTlAXTsMOKFmE+Vilu19mt VU2rhVdDGF33o4wWYCaM5jfRhX7kErebiDrAeCiSRLXRhbBqVtd4lnSFdZ2qeGfjaTWk mB8A== X-Gm-Message-State: AOAM5328BBTROSHPJ5iYVPYRLccZqpLt1zNmZlgj3IXUoPw5vXuVA8dB Rn0WVE2CewqYErXVGy3SXGpz1C7zfv7toHyyHS8e1V+Qtdex 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: linux-kernel@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