Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp483614lqi; Thu, 7 Mar 2024 03:10:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUJ/GJc8z6rL0meGHzToM3xeRHaPpNtihheJGoyBMmRM50dG8FSVmYNszLy2eacl5yvnNHYb+WshDRFEtTFIGKv5QdOA6OPxHeVhKPzZQ== X-Google-Smtp-Source: AGHT+IE+UYgYau1WGvoXmqhFhtH/1/m0jrPPi2CZ3DVsaW+M6rRMaJv7DQEvJg4zWpkFExvo7Hlr X-Received: by 2002:a17:906:f355:b0:a43:a12b:1951 with SMTP id hg21-20020a170906f35500b00a43a12b1951mr13559679ejb.2.1709809840828; Thu, 07 Mar 2024 03:10:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709809840; cv=pass; d=google.com; s=arc-20160816; b=Gp6g6TnE04orGG6PH0qepJivKh/x1SinXpPbNstjQIzZtupfvixT++ZTRaPDt6Ix/l 22fsJVlKgg2zuTvVQ4e6zXHlf54J0l9jpcQ3F6bNQjaTN/a+WSwUkmqUVY+csE4TQ3ix blujzCrpJ7nvv7mSMVoS5lfaG/NXfR3D5mAChZtNP1cQlh0BKE963qcElu/igigcIp+U oTbOULNQQhDI5FZjG1M6QLEwPmFxuOOMOlAGF9pWH1MSLsaAZIbQDKcIcE+iphhkGw+4 yI4vr9yL3VeVldGczKoURmKlXmt2wcCtonwcls+EhOwj+UuUZj5DPEJCj2flwawtCdhu Q4Ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=edUE9P2Y6rbPp9QaK1DNtKB/iTOZXRmTHeLtrrku1LI=; fh=G9wu5/MZ8XIUw9/oZVa/rwZTmY8vj3jiqE3jlJ1PTmQ=; b=tZQNNGcxdhPrYtDNb6Ie16oxei5i14T55SWOLZdGFRNJmXIzfwtyTfrGKwHa21LjC/ IYYprbGkrGUqdL4Eavh6pCF7f862s2m5Fg9SyvXaXqTCX8WHX5Kx7sJPa3XegGAJ4tos eDIC/B9mBQo1+g9tYDG4SlTalwXFj+GAJrh6pAUdB4KHlDwZM6i/gOSvFIsxc/YSkMBz Cx+DPN0tFY+A1fna4Qo7YJiY1YSn9mm9mYP03wp3F9LYkFAuyEeToZkv+SBnH9yNUP3W twLyPobLIkNccznxuZAdjkVir6R0mSTsztRKTZZWHRy6Au2vp/Rt1mCec6tfxKqvKENR 8sfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JWzhpeWr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ga31-20020a1709070c1f00b00a45ccf40f7csi554271ejc.860.2024.03.07.03.10.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 03:10:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JWzhpeWr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 816B11F24269 for ; Thu, 7 Mar 2024 11:10:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C482C128390; Thu, 7 Mar 2024 11:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JWzhpeWr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D79BE86AC5; Thu, 7 Mar 2024 11:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709809829; cv=none; b=knDj8PJpBACrAXbmZ2h/K/23DBCWa2p2yCWAVMuN9vMtQ9MGIU5jtnSUfGUdFh+VxYVetf8NSmmurTq/iFXkGtJ2TY1ySqCCVHZFUHB9f1bQkyIUjazcs7ECXerGSeHdnCDcFqqge0OxApnhPgUWMOW3PXMwM/+Qh10DmLAL1/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709809829; c=relaxed/simple; bh=3C9xoeam283PUe/HcVMxnUvsIgDvsXGE4yT2Hi7mErE=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=bqe2CyawOHNRGE6Af0N+7O6lLjMRTp+od+QzyrVFYVkCBvciDHN7Otjj9Ory3PvpLnYcg8Xto9ShO/H41snxGj1+IRS+LjJA++bm3SwrzQO0ChkFFi63CRtOtpUzr2JpgikUYxFO2CGtpOrHdbyU73rbIUm2QtUw1TCxo+GsL/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JWzhpeWr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 5D457C43390; Thu, 7 Mar 2024 11:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709809829; bh=3C9xoeam283PUe/HcVMxnUvsIgDvsXGE4yT2Hi7mErE=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=JWzhpeWrJ3Oq7K/XOVqrBYc74eaIDnWL9kVQtW2a/R+oT6TGsKCmPTGswCjXwG/Lm XobEZSKyHjy7iYSDgx25TrgSsw6S7tzLuA9YyhU929n/B7zstXqPYYif9o8hGB5wZO F08A+sHK586TETtOwgHfCl2Fpu4+l7FwTgxcuq7JscReDd93DuSyg0L9WsqFVlMEBD xiMHqBuTFOcfn2nU/rHPyn4d8LaupQRwxC1kWMsPlzzIbvXKR2+eX+wDHYcyY0gMyP j4y/LsuZzCCjtxkfAEA7IuJR9FL05v9mn10I8Yl4ba7mKJHXfwqfIGBpCFvAU8Ax2T JiQUgf/pFWziw== 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 447DBD84BD7; Thu, 7 Mar 2024 11:10:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net V3] net: pds_core: Fix possible double free in error handling path From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170980982927.5477.544521045314815654.git-patchwork-notify@kernel.org> Date: Thu, 07 Mar 2024 11:10:29 +0000 References: <20240306105714.20597-1-hyperlyzcs@gmail.com> In-Reply-To: <20240306105714.20597-1-hyperlyzcs@gmail.com> To: Yongzhi Liu Cc: pabeni@redhat.com, shannon.nelson@amd.com, brett.creeley@amd.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jitxie@tencent.com, huntazhang@tencent.com Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Wed, 6 Mar 2024 18:57:14 +0800 you wrote: > When auxiliary_device_add() returns error and then calls > auxiliary_device_uninit(), Callback function pdsc_auxbus_dev_release > calls kfree(padev) to free memory. We shouldn't call kfree(padev) > again in the error handling path. > > Fix this by cleaning up the redundant kfree() and putting > the error handling back to where the errors happened. > > [...] Here is the summary with links: - [net,V3] net: pds_core: Fix possible double free in error handling path https://git.kernel.org/netdev/net/c/ba18deddd6d5 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html