RE: [PATCH net-next 14/14] vsock: fix bind() behaviour taking care of CID

From
Jorgen Hansen <hidden>
Date
2019-11-11 16:54:01
Also in
kvm, linux-hyperv, lkml
Reply to
Stefano Garzarella, 2019-10-23
From: Stefano Garzarella [mailto:sgarzare@redhat.com]
Sent: Wednesday, October 23, 2019 11:56 AM
When we are looking for a socket bound to a specific address,
we also have to take into account the CID.

This patch is useful with multi-transports support because it
allows the binding of the same port with different CID, and
it prevents a connection to a wrong socket bound to the same
port, but with different CID.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
---
 net/vmw_vsock/af_vsock.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Reviewed-by: Jorgen Hansen <redacted>
Thread (46 messages) 46 messages, 3 authors, last reply 2019-11-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help