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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5ED5C5478C for ; Tue, 5 Mar 2024 04:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Date: Message-Id:From:Subject:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZWZ8+mJgCMfX61foN/Fi1PY72p8Y1yT1cqXy7z2m76Y=; b=3Te9jaflK4QVH0 e5rerC5dPv3wYXLh9lWPx62YpyLN1w6VihiC/RG5+dEd33HbZsz7YRL9arA7tTVIes7tt6wHJdxuo 6JdEAZo/QL9OCVkp0HYPvaxH2i4mKdVEM4FPQghqqcxRpYbWzf2CYgWxWNebED6hXtzEffdQSEDe9 7SXliQ8Z2Ng/mnV3CtlQ7wFXGLSn5fhyErAMBACP32EHnZD1u3Q4yjDH8DW8t5BZoNH9rK4Wikhd5 QXFH1G21bKLeyZc/1RNpX8N68gMoChqIuVuYeZTPs2xji1x9/ILNjWDKpbKvH0FV1wAQK5Xy4kVL0 N+9XdNYfQr+/G7K6Lf2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhMl6-0000000BuJ2-3Rvx; Tue, 05 Mar 2024 04:50:32 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhMl4-0000000BuIP-24sV for linux-arm-kernel@lists.infradead.org; Tue, 05 Mar 2024 04:50:32 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 61E10CE17B2; Tue, 5 Mar 2024 04:50:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 94DDDC43390; Tue, 5 Mar 2024 04:50:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709614225; bh=cKLuwCiUhCsy1B8eb8rtuf8JGOKZ6cC7a04LUww1DPc=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=IcFWtqMsVsIPEmcVKowxDYMHjn9G7zlhZFBenGbvmtEGgKT6xQj27wT8WhHiywZ4v Hk2rSZr/Y+DR046aIxYS0IWvOQLcFBu4NCyIPwflyrB6Mppy6+l83417/9IDut0DF9 BqjptL4RFuLJAqQkpGqwndOmP4P+xpZSFUzmPn/m5UXbYySnzK6AUDclB8q0WgpALe QcSA8zWgWL3EauWwzUkcaAUs17F2MLkh1JT+XsDlKffgO+SNRuKjOy+HToze6ZiPrW 1CJ8NrYLItOEClRlKjEREpNX2648heAoPcab3E1ras0TojkFOqSGfLS4XP5eiOj0fQ RJXZP4v+H7mng== 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 7A9F4C595C4; Tue, 5 Mar 2024 04:50:25 +0000 (UTC) MIME-Version: 1.0 Subject: Re: [PATCH net] net: sparx5: Fix use after free inside sparx5_del_mact_entry From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170961422549.11055.14570418226395792148.git-patchwork-notify@kernel.org> Date: Tue, 05 Mar 2024 04:50:25 +0000 References: <20240301080608.3053468-1-horatiu.vultur@microchip.com> In-Reply-To: <20240301080608.3053468-1-horatiu.vultur@microchip.com> To: Horatiu Vultur Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, lars.povlsen@microchip.com, Steen.Hegelund@microchip.com, daniel.machon@microchip.com, UNGLinuxDriver@microchip.com, bjarni.jonasson@microchip.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240304_205030_797901_A066EA3C X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Fri, 1 Mar 2024 09:06:08 +0100 you wrote: > Based on the static analyzis of the code it looks like when an entry > from the MAC table was removed, the entry was still used after being > freed. More precise the vid of the mac_entry was used after calling > devm_kfree on the mac_entry. > The fix consists in first using the vid of the mac_entry to delete the > entry from the HW and after that to free it. > > [...] Here is the summary with links: - [net] net: sparx5: Fix use after free inside sparx5_del_mact_entry https://git.kernel.org/netdev/net/c/89d72d4125e9 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel