Re: [PATCH net-next] net: Prevent use after free in netif_napi_set_irq_locked()
From: patchwork-bot+netdevbpf
Date: Tue Mar 04 2025 - 21:40:09 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 3 Mar 2025 15:02:12 +0300 you wrote:
> The cpu_rmap_put() will call kfree() when the last reference is dropped
> so it could result in a use after free when we dereference the same
> pointer the next line. Move the cpu_rmap_put() after the dereference.
>
> Fixes: bd7c00605ee0 ("net: move aRFS rmap management and CPU affinity to core")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
>
> [...]
Here is the summary with links:
- [net-next] net: Prevent use after free in netif_napi_set_irq_locked()
https://git.kernel.org/netdev/net-next/c/f252f23ab657
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html