Revert "af_vsock: Set VMADDR_FLAG_TO_HOST flag on the receive path"
This reverts commit 0e7a8ad0d7 which is
commit 1b5f2ab98e7f99f1a83960b17c5596012a7c5e88 upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: I1602985f2b0101ba5b3720d3bf799f1ee8c58639
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -436,18 +436,6 @@ int vsock_assign_transport(struct vsock_sock *vsk, struct vsock_sock *psk)
|
||||
unsigned int remote_cid = vsk->remote_addr.svm_cid;
|
||||
int ret;
|
||||
|
||||
/* If the packet is coming with the source and destination CIDs higher
|
||||
* than VMADDR_CID_HOST, then a vsock channel where all the packets are
|
||||
* forwarded to the host should be established. Then the host will
|
||||
* need to forward the packets to the guest.
|
||||
*
|
||||
* The flag is set on the (listen) receive path (psk is not NULL). On
|
||||
* the connect path the flag can be set by the user space application.
|
||||
*/
|
||||
if (psk && vsk->local_addr.svm_cid > VMADDR_CID_HOST &&
|
||||
vsk->remote_addr.svm_cid > VMADDR_CID_HOST)
|
||||
vsk->remote_addr.svm_flags |= VMADDR_FLAG_TO_HOST;
|
||||
|
||||
switch (sk->sk_type) {
|
||||
case SOCK_DGRAM:
|
||||
new_transport = transport_dgram;
|
||||
|
||||
Reference in New Issue
Block a user