Thread (3 messages) flat view 3 messages, 3 authors, 2025-12-10

Re: [PATCH v3] net/handshake: restore destructor on submit failure

From: patchwork-bot+netdevbpf@kernel.org
Date: 2025-12-10 09:23:20
Also in: lkml, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Thu,  4 Dec 2025 01:10:58 -0800 you wrote:
handshake_req_submit() replaces sk->sk_destruct but never restores it when
submission fails before the request is hashed. handshake_sk_destruct() then
returns early and the original destructor never runs, leaking the socket.
Restore sk_destruct on the error path.

Fixes: 3b3009ea8abb ("net/handshake: Create a NETLINK service for handling handshake requests")
Reviewed-by: Chuck Lever <redacted>
Cc: stable@vger.kernel.org
Signed-off-by: caoping <redacted>

[...]
Here is the summary with links:
  - [v3] net/handshake: restore destructor on submit failure
    https://git.kernel.org/netdev/net/c/6af2a01d65f8

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help