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=ham 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 964C8C43381 for ; Mon, 8 Feb 2021 11:14:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43EB364E87 for ; Mon, 8 Feb 2021 11:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232842AbhBHLNu (ORCPT ); Mon, 8 Feb 2021 06:13:50 -0500 Received: from mail-io1-f70.google.com ([209.85.166.70]:38610 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232997AbhBHLKz (ORCPT ); Mon, 8 Feb 2021 06:10:55 -0500 Received: by mail-io1-f70.google.com with SMTP id a12so6590696ioe.5 for ; Mon, 08 Feb 2021 03:10:39 -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=mPCbokCYCpjU+f1kvG8q1JfzTyfLjf02MHrBI6a5DbU=; b=DQb5a5nFzNy+2gGQQUwyxgeDeRw/XLa0UxypifEE537fsCoYZwK9tBCtdFgfvCzT59 d0ljXLrco3b0jqj3cE9FTfzafbE2+EPCqBv0Y48EkKc79dkgNnlRUOVBd2Z+Tfb8CHej Em64pOFhUuf/F/3CbXZB9cL/VB/lRpVfS2zD/CEE+9LybK4Hs93kkUBM0XOuuU2j4sCf PWd6TjT9/8swyQ5vm+ElKaMkeLbJum0kQOK80/Kj6xCrl+XQfYdkcvXSnbxc7tTn0Fl3 GNyQ3t2ZA8KpGzfiDCHOQowMVCg4kbAbq9KCgwLGekWD9ociQqS0rSy6MMPodviJ1uaA IWSQ== X-Gm-Message-State: AOAM532aj5dOjteILqd/Y32qLnhYvW7tXXIe3Y+PVjh9Dm7n6AnbgYOr 3Q6nsuj97DeNCbphZSv4FBE6v0bHp3sV84ggCeex+IyDEhsI X-Google-Smtp-Source: ABdhPJyTQRZEntJC1YlvSEsMdoQld4jNf2v4AzyxA8gpMEGEm/BZqSh0APYLDYj0OrDeFSXLY8cCAFpf2bQ6DOlvlcvSIBn8fP2S MIME-Version: 1.0 X-Received: by 2002:a6b:3b53:: with SMTP id i80mr14479074ioa.203.1612782614531; Mon, 08 Feb 2021 03:10:14 -0800 (PST) Date: Mon, 08 Feb 2021 03:10:14 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d6d06a05bad13604@google.com> Subject: memory leak in qrtr_create From: syzbot To: bjorn.andersson@linaro.org, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org, manivannan.sadhasivam@linaro.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.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: 13391c60 Merge branch 'linus' of git://git.kernel.org/pub/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15eb761b500000 kernel config: https://syzkaller.appspot.com/x/.config?x=e7e6ee96c9292f22 dashboard link: https://syzkaller.appspot.com/bug?extid=35a511c72ea7356cdcf3 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=103c58a0d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1040bc54d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+35a511c72ea7356cdcf3@syzkaller.appspotmail.com Warning: Permanently added '10.128.0.186' (ECDSA) to the list of known hosts. executing program executing program BUG: memory leak unreferenced object 0xffff88810127da40 (size 824): comm "syz-executor472", pid 8431, jiffies 4294942269 (age 13.980s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 2a 00 01 40 00 00 00 00 00 00 00 00 00 00 00 00 *..@............ backtrace: [<0000000041c0b1fe>] sk_prot_alloc+0x3e/0x1c0 net/core/sock.c:1679 [<00000000f73c2f2d>] sk_alloc+0x30/0x3f0 net/core/sock.c:1739 [<0000000069049cba>] qrtr_create+0x4d/0xb0 net/qrtr/qrtr.c:1258 [<0000000077afae5e>] __sock_create+0x1ab/0x2b0 net/socket.c:1406 [<000000007f58f353>] sock_create net/socket.c:1457 [inline] [<000000007f58f353>] __sys_socket+0x6f/0x140 net/socket.c:1499 [<00000000217ba93a>] __do_sys_socket net/socket.c:1508 [inline] [<00000000217ba93a>] __se_sys_socket net/socket.c:1506 [inline] [<00000000217ba93a>] __x64_sys_socket+0x1a/0x20 net/socket.c:1506 [<00000000632eec5e>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<00000000a6403a3c>] 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