Re: [PATCH] ethernet: myri10ge: Fix a use after free in myri10ge_sw_tso

From: patchwork-bot+netdevbpf
Date: Mon Mar 29 2021 - 16:50:47 EST


Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Mon, 29 Mar 2021 05:36:48 -0700 you wrote:
> In myri10ge_sw_tso, the skb_list_walk_safe macro will set
> (curr) = (segs) and (next) = (curr)->next. If status!=0 is true,
> the memory pointed by curr and segs will be free by dev_kfree_skb_any(curr).
> But later, the segs is used by segs = segs->next and causes a uaf.
>
> As (next) = (curr)->next, my patch replaces seg->next to next.
>
> [...]

Here is the summary with links:
- ethernet: myri10ge: Fix a use after free in myri10ge_sw_tso
https://git.kernel.org/netdev/net/c/63415767a244

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