Re: [PATCH] net/handshake: Fix memory leak in tls_handshake_accept()

From: patchwork-bot+netdevbpf
Date: Mon Nov 10 2025 - 21:16:41 EST


Hello:

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

On Thu, 6 Nov 2025 14:45:11 +0000 you wrote:
> In tls_handshake_accept(), a netlink message is allocated using
> genlmsg_new(). In the error handling path, genlmsg_cancel() is called
> to cancel the message construction, but the message itself is not freed.
> This leads to a memory leak.
>
> Fix this by calling nlmsg_free() in the error path after genlmsg_cancel()
> to release the allocated memory.
>
> [...]

Here is the summary with links:
- net/handshake: Fix memory leak in tls_handshake_accept()
https://git.kernel.org/netdev/net/c/3072f00bba76

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