Thread (3 messages) 3 messages, 3 authors, 2025-03-05

Re: [PATCH net-next] net: Prevent use after free in netif_napi_set_irq_locked()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2025-03-05 02:40:00
Also in: kernel-janitors, lkml

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

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 <redacted>

[...]
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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help