diff options
| author | Jorgen Hansen <jhansen@vmware.com> | 2018-12-18 00:34:06 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-03 19:26:27 +0200 |
| commit | e139d15e1d562562a04e3db3aff2468e5a4a6307 (patch) | |
| tree | 6bf4cf79827fd725704593eeddc97a9d49fed9ca /scripts/patch-kernel | |
| parent | 650a2e13b8e0789c595fa37e107c309d30095866 (diff) | |
VSOCK: Send reset control packet when socket is partially bound
commit a915b982d8f5e4295f64b8dd37ce753874867e88 upstream.
If a server side socket is bound to an address, but not in the listening
state yet, incoming connection requests should receive a reset control
packet in response. However, the function used to send the reset
silently drops the reset packet if the sending socket isn't bound
to a remote address (as is the case for a bound socket not yet in
the listening state). This change fixes this by using the src
of the incoming packet as destination for the reset packet in
this case.
Fixes: d021c344051a ("VSOCK: Introduce VM Sockets")
Change-Id: I7dbfdfde548d4b6bf4a89fb056cbcf59394a5e40
Reviewed-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Vishnu Dasa <vdasa@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
