Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2022063pxu; Sun, 13 Dec 2020 10:52:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7RoX9jtwrH1lEyOk1Sms4gOMvwU+wA9f//WEZw3a1R2ymk1s8lVLoLRoh5M+AkJiHjrPi X-Received: by 2002:a17:907:206a:: with SMTP id qp10mr20023879ejb.432.1607885522864; Sun, 13 Dec 2020 10:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607885522; cv=none; d=google.com; s=arc-20160816; b=m41voGzbNRsyzPpcmu83uOYgv9/Mq03S246s8jJiRwXPHgjqG9et3RhjNfd995+UD7 UkMunIzuUgEVhM7DvAMGY3fQ/c+e0nSIAv4rddEQ38t8BCW7kG3z0PdijAhg2Bxo+LYR 2coNxE7U4pffip9mHYwS9QaNcUjfhX5fw52t9Q7FDR3szRsTS32ePbtWM6uyvLeAiGGB v0wbJTxshsC4x6LmS7ICWxQTbzYHQWt6D3EsKWYn6lFwbGPh0qiO+9LasVsMwrFgtbkB GparOg9amUDHQvPvn/1B79qHVAnqki02RDmgGD7czI0Em1ieLrCEYhNxGRBIGHXUFYaB Pucw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=fWF53rcHi8QspkjztKtg7fthAltlqOrg0gZKXd1Tx+4=; b=cPBxQJ4jTwaKIX0YRq5l2eibxqGvaZBTKbyVYTANJVOpWVH3bDRZUCo1neCPflxdPs 94SOSJDGVJzOYaReABJamvYIlk5zf/MIngHTTHRVmTiMyIsu0q8qHDO39biwGjyScyzk lzdI1U84dXBxiobyzhYV3pbTHiDeFxmL1yQSQMKsmSYcwfqv6YVr5XcG4TLxpDPL131P rPHpaJMCsgw4IgkNHzEjR77qS3Fh7EOhVZfaT+lvlGHp3eCTbHuIjNZvgRpHENO8tm8j /W2d9liMBYXCm8/Qt6PTkqMUYphcZ7PmXWpRcVFCgtJ0vHgc7uzOyJZKxNZaF8nhaV6w 1vOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si8752356edq.353.2020.12.13.10.51.39; Sun, 13 Dec 2020 10:52:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395347AbgLMOxv (ORCPT + 99 others); Sun, 13 Dec 2020 09:53:51 -0500 Received: from mail-il1-f200.google.com ([209.85.166.200]:57179 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395200AbgLMOxv (ORCPT ); Sun, 13 Dec 2020 09:53:51 -0500 Received: by mail-il1-f200.google.com with SMTP id r20so11486809ilh.23 for ; Sun, 13 Dec 2020 06:53:36 -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=fWF53rcHi8QspkjztKtg7fthAltlqOrg0gZKXd1Tx+4=; b=DviFXAAK7K6c7N0hyFO+9YEACtEvWhXFS7/O32IFxuI7s5hWoKtMD3uYBlw47OYkGd 6Hv4j1kvUFqt6oUY69F3y0QUhVtCYrrGUXv+U0etMWETeMJW9r89goe3yoKlZlq+hJAj 9X7WZoqb6F/yEXwtjQa30LG0M/kut7GezvUzvPiQHA/2qc1RqWrHaQWODAr3M1iWWj1u ETcFPabVAQdcrvV98/kGCkDy4m+Q0reGoSZByGSmA/5VyuzjjhOj04nPA4wVZ7EC79ev vjyx7OQWxzpv6udX1oZeZ6EmLRQrFnyok2i3JdphSkfVa0QkB2AEi2zodXiSeXBZrSZV UuWA== X-Gm-Message-State: AOAM531+0Id1z24C3iUJLuHaplvHm/Zz/ze6GZ3IGsB208Kqop9C2JlL lAPVlgjyjh7VWnILx0xwlyO0FBb6YKdYxgJmqgUhr/DYQUcO MIME-Version: 1.0 X-Received: by 2002:a92:5802:: with SMTP id m2mr4547791ilb.271.1607871190712; Sun, 13 Dec 2020 06:53:10 -0800 (PST) Date: Sun, 13 Dec 2020 06:53:10 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002aca2e05b659af04@google.com> Subject: memory leak in xskq_create From: syzbot To: 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, kuba@kernel.org, linux-kernel@vger.kernel.org, magnus.karlsson@intel.com, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.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: a68a0262 mm/madvise: remove racy mm ownership check git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=165b9413500000 kernel config: https://syzkaller.appspot.com/x/.config?x=4305fa9ea70c7a9f dashboard link: https://syzkaller.appspot.com/bug?extid=cfa88ddd0655afa88763 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1180a237500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=114067cf500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+cfa88ddd0655afa88763@syzkaller.appspotmail.com Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.50' (ECDSA) to the list of known hosts. executing program executing program BUG: memory leak unreferenced object 0xffff88810f897940 (size 64): comm "syz-executor991", pid 8502, jiffies 4294942194 (age 14.080s) hex dump (first 32 bytes): 7f 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 ................ 00 a0 37 0c 81 88 ff ff 00 00 00 00 00 00 00 00 ..7............. backtrace: [<00000000639d0dd1>] xskq_create+0x23/0xd0 include/linux/slab.h:552 [<00000000b680b035>] xsk_init_queue net/xdp/xsk.c:508 [inline] [<00000000b680b035>] xsk_setsockopt+0x1c4/0x590 net/xdp/xsk.c:875 [<000000002b302260>] __sys_setsockopt+0x1b0/0x360 net/socket.c:2132 [<00000000ae03723e>] __do_sys_setsockopt net/socket.c:2143 [inline] [<00000000ae03723e>] __se_sys_setsockopt net/socket.c:2140 [inline] [<00000000ae03723e>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2140 [<0000000005c2b4a0>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<0000000003db140f>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 BUG: memory leak unreferenced object 0xffff88810f8979c0 (size 64): comm "syz-executor991", pid 8503, jiffies 4294942194 (age 14.080s) hex dump (first 32 bytes): ff 03 00 00 00 04 00 00 00 00 00 00 00 00 00 00 ................ 00 00 13 12 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000639d0dd1>] xskq_create+0x23/0xd0 include/linux/slab.h:552 [<00000000b680b035>] xsk_init_queue net/xdp/xsk.c:508 [inline] [<00000000b680b035>] xsk_setsockopt+0x1c4/0x590 net/xdp/xsk.c:875 [<000000002b302260>] __sys_setsockopt+0x1b0/0x360 net/socket.c:2132 [<00000000ae03723e>] __do_sys_setsockopt net/socket.c:2143 [inline] [<00000000ae03723e>] __se_sys_setsockopt net/socket.c:2140 [inline] [<00000000ae03723e>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2140 [<0000000005c2b4a0>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<0000000003db140f>] 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