Re: [PATCH] net: macsec: fix double free of percpu stats

From: patchwork-bot+netdevbpf
Date: Thu Jun 15 2023 - 06:50:33 EST


Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Tue, 13 Jun 2023 22:22:20 +0300 you wrote:
> Inside macsec_add_dev() we free percpu macsec->secy.tx_sc.stats and
> macsec->stats on some of the memory allocation failure paths. However, the
> net_device is already registered to that moment: in macsec_newlink(), just
> before calling macsec_add_dev(). This means that during unregister process
> its priv_destructor - macsec_free_netdev() - will be called and will free
> the stats again.
>
> [...]

Here is the summary with links:
- net: macsec: fix double free of percpu stats
https://git.kernel.org/netdev/net/c/0c0cf3db83f8

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