]> www.infradead.org Git - users/dwmw2/linux.git/commit
vsock: Allow retrying on connect() failure
authorMichal Luczaj <mhal@rbox.co>
Tue, 28 Jan 2025 13:15:28 +0000 (14:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Jan 2025 02:50:37 +0000 (18:50 -0800)
commitaa388c72113b7458127b709bdd7d3628af26e9b4
treeeebc0631103196010cf3c08cce0cf7cf5e88e196
parentfcdd2242c0231032fc84e1404315c245ae56322a
vsock: Allow retrying on connect() failure

sk_err is set when a (connectible) connect() fails. Effectively, this makes
an otherwise still healthy SS_UNCONNECTED socket impossible to use for any
subsequent connection attempts.

Clear sk_err upon trying to establish a connection.

Fixes: d021c344051a ("VSOCK: Introduce VM Sockets")
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Luigi Leonardi <leonardi@redhat.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://patch.msgid.link/20250128-vsock-transport-vs-autobind-v3-2-1cf57065b770@rbox.co
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/vmw_vsock/af_vsock.c