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

patchwork-bot+netdevbpf
2025-11-11T02:10:43Z

Hello:

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

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.