Re: [PATCH net v2] vsock: prevent unnecessary refcnt inc for nonblocking connect

From: patchwork-bot+netdevbpf
Date: Wed Nov 10 2021 - 09:40:24 EST


Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Tue, 9 Nov 2021 00:15:02 +0000 you wrote:
> Currently vosck_connect() increments sock refcount for nonblocking
> socket each time it's called, which can lead to memory leak if
> it's called multiple times because connect timeout function decrements
> sock refcount only once.
>
> Fixes it by making vsock_connect() return -EALREADY immediately when
> sock state is already SS_CONNECTING.
>
> [...]

Here is the summary with links:
- [net,v2] vsock: prevent unnecessary refcnt inc for nonblocking connect
https://git.kernel.org/netdev/net/c/c7cd82b90599

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