Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp15018ybg; Tue, 9 Jun 2020 15:00:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCSOznRZxsY/LZdygkB2MN7Fv0XQQ2ionUkpU6TTGJGhubA8UZ5PLijnxmPINGKy596vHe X-Received: by 2002:a17:906:f10a:: with SMTP id gv10mr409556ejb.309.1591740045793; Tue, 09 Jun 2020 15:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591740045; cv=none; d=google.com; s=arc-20160816; b=m2Q+UqXSzSxXwHOpchy4cRPmzHc7MnwFhBnlbHxLl1pI8uI3c9gBVrfRG1Hj7Sx45H HkJvtdeDP0eW9oHn7VY/8JjnTNz0RHHf6yiK9rIaYw9p9A2fgjSX4cByEwEmxzUpass2 1y8TDOXZQ3fkuPB59AIvVzk8QLNknHSuoPSLOHL0JvBzpS529JljCzlYwjYu9ttq/yJT D9L9X7yokeTZpNobeIVvAYxNuCWq1uQ2vpY+gwyeyMRkYJkqF3ZB2k+PoLSCe0zVMg5i xqMbL0FclTjZXjoPrf4WH6wSbrs2Nlo5w1wiw87xWA88pGfpVAYI2GMuY6sjZkztCk+P X6eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=pw0UgTHVe4ORi9w9G47RxZH+2R3g4C+RyCbV9ziJVuQ=; b=iZA3PuHR+Isys4IYRwSCimI38/7KjuG1nCDFTJ5s+7oCW9fnx5gDlMhW4SH3zV/P55 LumucF9IcgaT8tIRU2HYTepPOKjUMrHy5XuO8xiomMEjlEMxBFYagqD3cm3vPxL97cxD N+3Ga/LCXzTilFoq7ebFNg+Z7S0zYg1TgHwMO12By932VDIoJehWObUxnprelG+p1cyb TdSC0EszMEvqoVt8+LERBC4njSpql4TOlVTwSmwOK65sRl9X0SWGDupywC0caBUx2EOj fN5nZ7UUrVOMzdNAKDC648yBBBSN5RtHaJFzuB6zNfg22SGxUTAOK7FpD9M1VbfmDq+a x1xQ== 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 y18si11418175ejm.315.2020.06.09.15.00.22; Tue, 09 Jun 2020 15:00:45 -0700 (PDT) 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 S1728353AbgFIV63 (ORCPT + 99 others); Tue, 9 Jun 2020 17:58:29 -0400 Received: from mail-il1-f200.google.com ([209.85.166.200]:42827 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728185AbgFIV6O (ORCPT ); Tue, 9 Jun 2020 17:58:14 -0400 Received: by mail-il1-f200.google.com with SMTP id j71so93424ilg.9 for ; Tue, 09 Jun 2020 14:58:12 -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=pw0UgTHVe4ORi9w9G47RxZH+2R3g4C+RyCbV9ziJVuQ=; b=AjcJkMmJ0xZmWkjfAgcMmNIfE7tdOiK7TvRxmzhRjSVQ+tExqW51yeqtvh+d9C5UJn pjF6PwxNJAhy3IW+sdAtJjX6s3CEztzeuWbLgBWsAkw8BE1PF7aGF6Bp8qysPIE4nGnI 26wQs6KZhROA5tJujc5uPPXaMW0Ed8fYLB0HKZwkFj/nr6qEzQBmhzDyYbtToQqnyOQu zS9GcBgx9Q9/Cner6vBc4PiaJBr5P7BdqHZ5ZCBuK8xdEK3STbgrAXa8bTiV8EuyegXF kJofElOUwp1gWvOKHWXuVkP0OTCF8vAuH2svkKjX/1ZruUr77qLUtOsW0VcvkeELOI2X arNg== X-Gm-Message-State: AOAM5338e1HdBG6DM364KLd/CZPM6BVivnvZlgPdx7SLmwLUcEonQaey i2kkO8FbVAPmhAAOewQiI0VW6H3GuBSMwg36K3qJjctvTXQt MIME-Version: 1.0 X-Received: by 2002:a05:6602:1616:: with SMTP id x22mr229920iow.70.1591739892592; Tue, 09 Jun 2020 14:58:12 -0700 (PDT) Date: Tue, 09 Jun 2020 14:58:12 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000df74f605a7add28b@google.com> Subject: memory leak in ctnetlink_start From: syzbot To: coreteam@netfilter.org, davem@davemloft.net, fw@strlen.de, kadlec@netfilter.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, pablo@netfilter.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=128a9df2100000 kernel config: https://syzkaller.appspot.com/x/.config?x=9a1aa05456dfd557 dashboard link: https://syzkaller.appspot.com/bug?extid=b005af2cfb0411e617de compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17304a96100000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=168a9df2100000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+b005af2cfb0411e617de@syzkaller.appspotmail.com executing program executing program executing program BUG: memory leak unreferenced object 0xffff88811c797900 (size 128): comm "syz-executor256", pid 6458, jiffies 4294947022 (age 13.050s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000004276332a>] kmalloc include/linux/slab.h:555 [inline] [<000000004276332a>] kzalloc include/linux/slab.h:669 [inline] [<000000004276332a>] ctnetlink_alloc_filter+0x3a/0x2a0 net/netfilter/nf_conntrack_netlink.c:924 [<000000000047e6fb>] ctnetlink_start+0x3a/0x80 net/netfilter/nf_conntrack_netlink.c:998 [<00000000a431a924>] __netlink_dump_start+0x1a3/0x2e0 net/netlink/af_netlink.c:2343 [<0000000016b073fa>] netlink_dump_start include/linux/netlink.h:246 [inline] [<0000000016b073fa>] ctnetlink_get_conntrack+0x26d/0x2f0 net/netfilter/nf_conntrack_netlink.c:1611 [<00000000d311138b>] nfnetlink_rcv_msg+0x32f/0x370 net/netfilter/nfnetlink.c:229 [<0000000008feca87>] netlink_rcv_skb+0x5a/0x180 net/netlink/af_netlink.c:2469 [<0000000088caad78>] nfnetlink_rcv+0x83/0x1b0 net/netfilter/nfnetlink.c:563 [<0000000052160488>] netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] [<0000000052160488>] netlink_unicast+0x20a/0x2f0 net/netlink/af_netlink.c:1329 [<00000000ee36d991>] netlink_sendmsg+0x2b5/0x560 net/netlink/af_netlink.c:1918 [<00000000dee2cafe>] sock_sendmsg_nosec net/socket.c:652 [inline] [<00000000dee2cafe>] sock_sendmsg+0x4c/0x60 net/socket.c:672 [<00000000b0b655cb>] ____sys_sendmsg+0x2c4/0x2f0 net/socket.c:2352 [<000000005bba2f8d>] ___sys_sendmsg+0x8a/0xd0 net/socket.c:2406 [<0000000060ac6563>] __sys_sendmsg+0x77/0xe0 net/socket.c:2439 [<000000002f7b34b0>] do_syscall_64+0x6e/0x220 arch/x86/entry/common.c:295 [<00000000941009bb>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches