Re: [PATCH net] net: mvpp2: fix double free of the replaced rule in mvpp2_ethtool_cls_rule_ins()

From: patchwork-bot+netdevbpf

Date: Mon Nov 09 2026 - 22:03:55 EST


Hello:

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

On Wed, 4 Nov 2026 13:02:23 +0100 you wrote:
> When a rule already exists at the requested location,
> mvpp2_ethtool_cls_rule_ins() removes it from the hardware and frees it,
> but leaves port->rfs_rules[loc] pointing at the freed structure. If
> inserting the new rule then fails, the next rule insertion will free the
> rule once again.
>
> Clear the slot as soon as the old rule has been freed.
>
> [...]

Here is the summary with links:
- [net] net: mvpp2: fix double free of the replaced rule in mvpp2_ethtool_cls_rule_ins()
https://git.kernel.org/netdev/net-next/c/d26955e57475

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html