Re: [PATCH] net: kcm: fix memory leak in kcm_sendmsg

From: patchwork-bot+netdevbpf
Date: Thu Jun 03 2021 - 17:20:06 EST


Hello:

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

On Wed, 2 Jun 2021 22:26:40 +0300 you wrote:
> Syzbot reported memory leak in kcm_sendmsg()[1].
> The problem was in non-freed frag_list in case of error.
>
> In the while loop:
>
> if (head == skb)
> skb_shinfo(head)->frag_list = tskb;
> else
> skb->next = tskb;
>
> [...]

Here is the summary with links:
- net: kcm: fix memory leak in kcm_sendmsg
https://git.kernel.org/netdev/net/c/c47cc304990a

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