Re: [PATCH net] net: sparx5: Fix use after free inside sparx5_del_mact_entry

From: patchwork-bot+netdevbpf
Date: Mon Mar 04 2024 - 23:50:37 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

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