Re: [PATCH net] gve: Clear napi->skb before dev_kfree_skb_any()

From: patchwork-bot+netdevbpf
Date: Thu Jun 13 2024 - 10:40:53 EST


Hello:

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

On Wed, 12 Jun 2024 00:16:54 +0000 you wrote:
> gve_rx_free_skb incorrectly leaves napi->skb referencing an skb after it
> is freed with dev_kfree_skb_any(). This can result in a subsequent call
> to napi_get_frags returning a dangling pointer.
>
> Fix this by clearing napi->skb before the skb is freed.
>
> Fixes: 9b8dd5e5ea48 ("gve: DQO: Add RX path")
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Shailend Chand <shailend@xxxxxxxxxx>
> Signed-off-by: Ziwei Xiao <ziweixiao@xxxxxxxxxx>
> Reviewed-by: Harshitha Ramamurthy <hramamurthy@xxxxxxxxxx>
> Reviewed-by: Shailend Chand <shailend@xxxxxxxxxx>
> Reviewed-by: Praveen Kaligineedi <pkaligineedi@xxxxxxxxxx>
>
> [...]

Here is the summary with links:
- [net] gve: Clear napi->skb before dev_kfree_skb_any()
https://git.kernel.org/netdev/net/c/6f4d93b78ade

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