Messages in this thread | | | Subject | Re: [PATCH net v2] vsock: prevent unnecessary refcnt inc for nonblocking connect | From | patchwork-bot+netdevbpf@kernel ... | Date | Wed, 10 Nov 2021 14:40:08 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>:
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
| |