https://github.com/torvalds/linux
Revision 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 authored by Stefano Garzarella on 27 May 2020, 07:56:55 UTC, committed by David S. Miller on 27 May 2020, 18:20:23 UTC
The accept(2) is an "input" socket interface, so we should use
SO_RCVTIMEO instead of SO_SNDTIMEO to set the timeout.

So this patch replace sock_sndtimeo() with sock_rcvtimeo() to
use the right timeout in the vsock_accept().

Fixes: d021c344051a ("VSOCK: Introduce VM Sockets")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5b186cd
History
Tip revision: 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 authored by Stefano Garzarella on 27 May 2020, 07:56:55 UTC
vsock: fix timeout in vsock_accept()
Tip revision: 7e0afbd
File Mode Size
Kconfig -rw-r--r-- 2.3 KB
Makefile -rw-r--r-- 492 bytes
actions.c -rw-r--r-- 38.6 KB
conntrack.c -rw-r--r-- 59.9 KB
conntrack.h -rw-r--r-- 2.7 KB
datapath.c -rw-r--r-- 62.6 KB
datapath.h -rw-r--r-- 7.3 KB
dp_notify.c -rw-r--r-- 2.0 KB
flow.c -rw-r--r-- 23.9 KB
flow.h -rw-r--r-- 7.9 KB
flow_netlink.c -rw-r--r-- 95.5 KB
flow_netlink.h -rw-r--r-- 2.4 KB
flow_table.c -rw-r--r-- 23.0 KB
flow_table.h -rw-r--r-- 2.4 KB
meter.c -rw-r--r-- 14.5 KB
meter.h -rw-r--r-- 1.1 KB
vport-geneve.c -rw-r--r-- 2.9 KB
vport-gre.c -rw-r--r-- 2.1 KB
vport-internal_dev.c -rw-r--r-- 6.9 KB
vport-internal_dev.h -rw-r--r-- 442 bytes
vport-netdev.c -rw-r--r-- 4.7 KB
vport-netdev.h -rw-r--r-- 539 bytes
vport-vxlan.c -rw-r--r-- 3.7 KB
vport.c -rw-r--r-- 12.4 KB
vport.h -rw-r--r-- 5.6 KB

back to top