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 2E4BC63B1 for ; Thu, 8 Jun 2023 04:30:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 772B8C4339B; Thu, 8 Jun 2023 04:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686198620; bh=+DMYfaZqNxNT6uJpx1QlJAqBKJO+dRWsxXEUzGF1Hck=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=o7g6+/HOCWZEI6pS1m5DplWLh7eFqMl7gecnpsf5lQbgHr+Ue4sr/Js6DdeuAdnO9 1wJ01aaSw8Sr7O3Ut/vMtD95ZY9QDf/lwTy8B45mGsFex1MSvdkQHJA1gTor3YjxLQ d4nUxYFJ+i+RkvignVwLBdNoMs3nCnBFbTi1/XtU9rk6Tduyn/9TvVKJGSjx4VHl+t 20NNzXWvFhwOFBGAUVskjC8UWZJu3z3UoAD7ewMIj6PzWbrNgFDrLGy1zIt5+Rhg+N QY3deRa5yhMgC5loOZwhBEDkZyoUeyiBboQlSl6wya4OvL1Cws3BqnQFmVlQAYK6Zy nuMUGqw8yTZCw== 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 56D4BE87232; Thu, 8 Jun 2023 04:30:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] lib: cpu_rmap: Fix potential use-after-free in irq_cpu_rmap_release() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168619862035.10114.4240315179189704298.git-patchwork-notify@kernel.org> Date: Thu, 08 Jun 2023 04:30:20 +0000 References: In-Reply-To: To: Ben Hutchings Cc: netdev@vger.kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, elic@nvidia.com Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Fri, 2 Jun 2023 20:28:15 +0200 you wrote: > irq_cpu_rmap_release() calls cpu_rmap_put(), which may free the rmap. > So we need to clear the pointer to our glue structure in rmap before > doing that, not after. > > Fixes: 4e0473f1060a ("lib: cpu_rmap: Avoid use after free on rmap->obj ...") > Signed-off-by: Ben Hutchings > > [...] Here is the summary with links: - [net] lib: cpu_rmap: Fix potential use-after-free in irq_cpu_rmap_release() https://git.kernel.org/netdev/net/c/7c5d4801ecf0 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html