Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp743263rwl; Fri, 31 Mar 2023 01:31:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YuxCptG6/rLfskiGwnVvTBl9v4MCttiotKuVs/LLtucgcPGTIoz2n6vCHb81p5A5saM2WN X-Received: by 2002:a17:902:7593:b0:1a2:8871:b430 with SMTP id j19-20020a170902759300b001a28871b430mr5399992pll.2.1680251517725; Fri, 31 Mar 2023 01:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680251517; cv=none; d=google.com; s=arc-20160816; b=bPAMHK1H1pUGjYtAo7ZCZ6FBNSwUEOgNx3eIuQfMxnQ8oqmSaIqCOYKd8riMJ3qWxx DzAf/aoLgCpriO/5vRjdKPoJmZy0YjgNq/ou1rHthPBwN7/2A59DbB9IqiC99kQvTLss soxXpNSNp3IC2V1V938UsIof2IahdXsWn82H7rGLHaDYc8nO4Fl628U+renhCgp0Tinq nOIoOk6LtlK49Dnqy4xy7XcZMIPSgO4M9qrH33oor7G7Oh2mY5S8sbrvVkvTAm0T2E7g mJioq9yxuQWhLbbft/SJLbOSvoRC6fNFYBv00oNbPGj350ZdqWP5eXoIiq/vi8bhUANx rziw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=pqjXAqs2DRSWbPBj27RGZik0y4iEbLdzngqYWtSW1vw=; b=aFvra70q2S/a3+LOiIys2Doq8wGVaIm/ND6zhy9lPWK4OrWDhnvGlZnBvPT6cpuW/y Y7aa8gBOnW7FVikoBvrQkjk9VIropw87d1rHwEVuuqmxn90lJVYE2RQ8EzNR8uZy3QpM 3VJQ0AawewIVkctRek9fdQDn3zISOWmuunhy2UrnMVQlySOXoJyhqGe12V70iklooUBJ jDp1nV+5JMt0oxJ2MaMIZlesat9PLbF5KZVp+OROkNKoEA+nx1cVcEq5N+34mY2Vx7nn rCOMuQk4Ii6nYc+tF3eOi5E/sodBGMFeI5yR1Jrur9gcV6auYIZ6NWqrO/1mXREqCQNF EVTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p8rQfzc1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a1709026b4c00b001a048529dd3si1690425plt.54.2023.03.31.01.31.45; Fri, 31 Mar 2023 01:31:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p8rQfzc1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231548AbjCaIU0 (ORCPT + 99 others); Fri, 31 Mar 2023 04:20:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbjCaIUY (ORCPT ); Fri, 31 Mar 2023 04:20:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 036E6AF3B; Fri, 31 Mar 2023 01:20:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 965F7B82CF3; Fri, 31 Mar 2023 08:20:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 422FBC4339B; Fri, 31 Mar 2023 08:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680250817; bh=V+bfnvlS+kOmBBeElvXS7vrBIjidlHmWIetDz9gZ2Fc=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=p8rQfzc1uGsVvHTd7Ewy0ywh0zOHBOm99RCtK/jO3kJ/EvUhnFAJmCWVCqT+LB7gZ oMAhL68de6QogCqVcdPAB+tSFznhNcqn/mSAI+xyzrhsVvKR75jLEO299cURmoU1YZ C6MTqVRHuWmyFffrxcKxgJZW/olvqcHQ5x4y1K9t66D6+v/nKXPl2F2MExvloG58pr 5+LKbiTQ7KDciS0m/l2L3fwTKWD6giOfwKRttZNiYdRvuHH73cU9Kw48gnhCqBz0Zi HN5OyaB5+Y1LC/JRH20UjFZrxx/XXB6lBz2i/4NrIFGhC11d76RrUnq+sfELgWJhBm uOB76fvNDi/LQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 1F8E8C0C40E; Fri, 31 Mar 2023 08:20:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net: qrtr: Fix a refcount bug in qrtr_recvmsg() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168025081712.23963.16327516163139075912.git-patchwork-notify@kernel.org> Date: Fri, 31 Mar 2023 08:20:17 +0000 References: <20230330012532.1065159-1-william.xuanziyang@huawei.com> In-Reply-To: <20230330012532.1065159-1-william.xuanziyang@huawei.com> To: Ziyang Xuan Cc: mani@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, andersson@kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Thu, 30 Mar 2023 09:25:32 +0800 you wrote: > Syzbot reported a bug as following: > > refcount_t: addition on 0; use-after-free. > ... > RIP: 0010:refcount_warn_saturate+0x17c/0x1f0 lib/refcount.c:25 > ... > Call Trace: > > __refcount_add include/linux/refcount.h:199 [inline] > __refcount_inc include/linux/refcount.h:250 [inline] > refcount_inc include/linux/refcount.h:267 [inline] > kref_get include/linux/kref.h:45 [inline] > qrtr_node_acquire net/qrtr/af_qrtr.c:202 [inline] > qrtr_node_lookup net/qrtr/af_qrtr.c:398 [inline] > qrtr_send_resume_tx net/qrtr/af_qrtr.c:1003 [inline] > qrtr_recvmsg+0x85f/0x990 net/qrtr/af_qrtr.c:1070 > sock_recvmsg_nosec net/socket.c:1017 [inline] > sock_recvmsg+0xe2/0x160 net/socket.c:1038 > qrtr_ns_worker+0x170/0x1700 net/qrtr/ns.c:688 > process_one_work+0x991/0x15c0 kernel/workqueue.c:2390 > worker_thread+0x669/0x1090 kernel/workqueue.c:2537 > > [...] Here is the summary with links: - [net] net: qrtr: Fix a refcount bug in qrtr_recvmsg() https://git.kernel.org/netdev/net/c/44d807320000 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html