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_DIGITS, 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 159ECC6379D for ; Wed, 18 Nov 2020 03:50:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8CBE2465E for ; Wed, 18 Nov 2020 03:50:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727827AbgKRDuV (ORCPT ); Tue, 17 Nov 2020 22:50:21 -0500 Received: from mail-il1-f200.google.com ([209.85.166.200]:33974 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727806AbgKRDuV (ORCPT ); Tue, 17 Nov 2020 22:50:21 -0500 Received: by mail-il1-f200.google.com with SMTP id l77so580146ili.1 for ; Tue, 17 Nov 2020 19:50:19 -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=/DoS+YQS9VBlKN6+t7kOlnb/cNhUvvMuTsydpQN3w74=; b=nzHs1K6NNuLbLO+mvvvu3W48Y36tLSISjyfVX2AixqpHK0TiXZs3G1F6kOy3k0f36x 6N37gBu3lNf5kFHShJOuPbSZqNgRgWhmUgeDfPHlx/kOuDxC0Nj2hho6evb1/I0s0LU1 evQ4HwQpBQZsbeFWJTzl4z5oKKlCwX7jybYbwP4FKgUi4dvjfc75bpoNtVzQyvhmysmj KobhadMoFulydf3wgthmy4m424k/2UBO1w0kizW6fsmG9/Dzp0bXYtqAwt+DSFYQjm00 OXXBdir3ITXLBgMvvlL4f90l+RHMzZVztOkQn+Ifwqi6YLsKvkgRZEP5pEMvHLpTHfDy cfbg== X-Gm-Message-State: AOAM530SW0ZMfJMQz1nhHBdcaNw2Th5jPCSBDgrg+KeH37Ob6+yP/90n RBe7NiPvP0i4tEWox6L9coMGr7f2FGwJBqSZLTzbkw1nkrpS X-Google-Smtp-Source: ABdhPJwi4a4IGODP4KC7xAUdxzicB5OMZ/EE96H2i+xQvPC8q+DXDy0d9Ou9uQDg6ciFNbahKMxSCVG5OnPh+ycAovjeZUGX6O5A MIME-Version: 1.0 X-Received: by 2002:a02:70ce:: with SMTP id f197mr6796213jac.120.1605671419188; Tue, 17 Nov 2020 19:50:19 -0800 (PST) Date: Tue, 17 Nov 2020 19:50:19 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000911d3905b459824c@google.com> Subject: memory leak in bpf From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, kafai@fb.com, kpsingh@chromium.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: bpf@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: f01c30de Merge tag 'vfs-5.10-fixes-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15b9b181500000 kernel config: https://syzkaller.appspot.com/x/.config?x=a3f13716fa0212fd dashboard link: https://syzkaller.appspot.com/bug?extid=f3694595248708227d35 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14b78b81500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f3694595248708227d35@syzkaller.appspotmail.com 2020/11/14 15:01:05 executed programs: 33 2020/11/14 15:01:11 executed programs: 35 2020/11/14 15:01:17 executed programs: 37 2020/11/14 15:01:22 executed programs: 39 BUG: memory leak unreferenced object 0xffff8881161c6440 (size 64): comm "syz-executor.0", pid 8961, jiffies 4295107077 (age 12.370s) hex dump (first 32 bytes): 80 62 58 04 00 ea ff ff c0 17 37 04 00 ea ff ff .bX.......7..... 80 6f 47 04 00 ea ff ff 40 64 58 04 00 ea ff ff .oG.....@dX..... backtrace: [<00000000189a27fd>] kmalloc_node include/linux/slab.h:575 [inline] [<00000000189a27fd>] bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:94 [inline] [<00000000189a27fd>] bpf_ringbuf_alloc kernel/bpf/ringbuf.c:135 [inline] [<00000000189a27fd>] ringbuf_map_alloc kernel/bpf/ringbuf.c:183 [inline] [<00000000189a27fd>] ringbuf_map_alloc+0x1be/0x410 kernel/bpf/ringbuf.c:150 [<000000009e5cec3e>] find_and_alloc_map kernel/bpf/syscall.c:122 [inline] [<000000009e5cec3e>] map_create kernel/bpf/syscall.c:825 [inline] [<000000009e5cec3e>] __do_sys_bpf+0x7d0/0x30a0 kernel/bpf/syscall.c:4381 [<00000000c513b5d1>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<0000000033006ec5>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- 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