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 29E57C55179 for ; Fri, 23 Oct 2020 14:26:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB7562245A for ; Fri, 23 Oct 2020 14:26:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750564AbgJWO0Y (ORCPT ); Fri, 23 Oct 2020 10:26:24 -0400 Received: from mail-il1-f200.google.com ([209.85.166.200]:50157 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750553AbgJWO0X (ORCPT ); Fri, 23 Oct 2020 10:26:23 -0400 Received: by mail-il1-f200.google.com with SMTP id v29so1339703ilk.16 for ; Fri, 23 Oct 2020 07:26:23 -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=Z4Tr5QAzJ2lgG9KcvZ/0qJAH0HusoMoqaOHz0jBjIaI=; b=LXaEW1mHPFUIGmPPGpJMjSvmF7BImOoAFG+V/RxlbO+C6dzy0UtK/nAzd3K8tCVLGI rhs0Qa31PQ0XIQYx9BxDWjMqVDndAeDCVJUewSdJ8NnE6ENYX0fv6/eZC0ssM6s0oe7h cik4CQhvJEr+VAfAwKM9FLKC510pSlAfrEjadBuTHsW3GBgEu0cBbfjvn0vH3Yu8Mj74 CngkAvQUkwawD6MT05xFbkxIjyTcnLR1Rjdkg2XQUdViC9ZlAGFvdgW4hjqdj5O/oH7D v+MoTVjOq18R+PMM7r6ZA1nmCKeyDvYfpsQ+FnOS/XtiPWFKkZkOfS/062RpjJAqBR5R 14eA== X-Gm-Message-State: AOAM531jegRHdBkPphRIhZsiH8H1EVvbm21hTIKx2dsfdzXocSyNgrI1 y4qU7w92/KTpUCZTYlGEgk0AxMJEVADUSKwyLT/u6cTSVMsN X-Google-Smtp-Source: ABdhPJzk4dcF/J0Wz+uXYl+HclT4T5n1i7kObeQdlcQAz/kIqfGHvOjOEZbAfOVCThSryxrSWYp2eXuQ9Z8QH5LfDSm+F91vCNe7 MIME-Version: 1.0 X-Received: by 2002:a92:99d7:: with SMTP id t84mr1074072ilk.108.1603463182790; Fri, 23 Oct 2020 07:26:22 -0700 (PDT) Date: Fri, 23 Oct 2020 07:26:22 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006bb5d505b2575d29@google.com> Subject: memory leak in xdp_umem_create From: syzbot To: andrii@kernel.org, ast@kernel.org, bjorn.topel@intel.com, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, hawk@kernel.org, john.fastabend@gmail.com, jonathan.lemon@gmail.com, kafai@fb.com, kpsingh@chromium.org, kuba@kernel.org, linux-kernel@vger.kernel.org, magnus.karlsson@intel.com, 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: f804b315 Merge tag 'linux-watchdog-5.10-rc1' of git://www... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1797677f900000 kernel config: https://syzkaller.appspot.com/x/.config?x=504c0405f28172a dashboard link: https://syzkaller.appspot.com/bug?extid=eb71df123dc2be2c1456 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10f27544500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12fc4de8500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+eb71df123dc2be2c1456@syzkaller.appspotmail.com Warning: Permanently added '10.128.10.22' (ECDSA) to the list of known hosts. executing program executing program BUG: memory leak unreferenced object 0xffff888110c1e400 (size 96): comm "syz-executor230", pid 8462, jiffies 4294942469 (age 13.280s) hex dump (first 32 bytes): 00 50 e0 00 00 c9 ff ff 00 00 02 00 00 00 00 00 .P.............. 00 00 00 00 00 10 00 00 20 00 00 00 20 00 00 00 ........ ... ... backtrace: [<00000000c4608c2b>] kmalloc include/linux/slab.h:554 [inline] [<00000000c4608c2b>] kzalloc include/linux/slab.h:666 [inline] [<00000000c4608c2b>] xdp_umem_create+0x33/0x630 net/xdp/xdp_umem.c:229 [<00000000551a05ed>] xsk_setsockopt+0x4ad/0x590 net/xdp/xsk.c:852 [<00000000f143ff32>] __sys_setsockopt+0x1b0/0x360 net/socket.c:2132 [<0000000076c65982>] __do_sys_setsockopt net/socket.c:2143 [inline] [<0000000076c65982>] __se_sys_setsockopt net/socket.c:2140 [inline] [<0000000076c65982>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2140 [<00000000d47a7174>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<00000000fb8e5852>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 BUG: memory leak unreferenced object 0xffff88810e018f00 (size 256): comm "syz-executor230", pid 8462, jiffies 4294942469 (age 13.280s) hex dump (first 32 bytes): 00 00 4f 04 00 ea ff ff 40 00 4f 04 00 ea ff ff ..O.....@.O..... 80 00 4f 04 00 ea ff ff c0 00 4f 04 00 ea ff ff ..O.......O..... backtrace: [<00000000257d0c74>] kmalloc_array include/linux/slab.h:594 [inline] [<00000000257d0c74>] kcalloc include/linux/slab.h:605 [inline] [<00000000257d0c74>] xdp_umem_pin_pages net/xdp/xdp_umem.c:89 [inline] [<00000000257d0c74>] xdp_umem_reg net/xdp/xdp_umem.c:207 [inline] [<00000000257d0c74>] xdp_umem_create+0x3cc/0x630 net/xdp/xdp_umem.c:240 [<00000000551a05ed>] xsk_setsockopt+0x4ad/0x590 net/xdp/xsk.c:852 [<00000000f143ff32>] __sys_setsockopt+0x1b0/0x360 net/socket.c:2132 [<0000000076c65982>] __do_sys_setsockopt net/socket.c:2143 [inline] [<0000000076c65982>] __se_sys_setsockopt net/socket.c:2140 [inline] [<0000000076c65982>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2140 [<00000000d47a7174>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<00000000fb8e5852>] 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