Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2233380imm; Thu, 21 Jun 2018 09:09:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLdvTee9aRySLAB1TEbjpOP4Zihv1Ow4BoXpGNt+yp6a2qXZdS7Pbh+8wlRxn5UJZ53yZs5 X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr29158204pls.169.1529597369709; Thu, 21 Jun 2018 09:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529597369; cv=none; d=google.com; s=arc-20160816; b=I7r4X0a37TpS91xKIPVjROJm4t1uxGm7GmrvLqj05dLcXvFr5af/JH2yrbY20AsVxG YpiEPubIm3yFrivHNMfOD/KJJ985sHB5rFiT+87MOYka6s+Il7Cy3RNSBkCZkuaV+7Tw QJhHDRLoo+mXkMzUH8vB6DCWHzDrZ+4RDkZV2N83ft7Gh9e4BZGqFFffxWXm13LHWlBZ 06DjzPpXYTWJd8uAW1icBeJYUV8zuDX3JeNfUWGsMr9NztbOCn87pYcFTqILQLdmSSMC pgZsH7o0ZsImvul1r/CY5A2XlNxAfE0/ZA5LPef6ukIfh0y+A/Myt/fDezU6ulETpZ9k 6MlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VFMJseGfLUkn3ES8n9P7S7EKq+AwMeAPHBc9FWd6PGA=; b=VXoMHaow6DgkyNRogCHrGS7udbPSN0Q6Osbqn4dkxMFEC0oX2UxmejCBC5xdj/MPuj mFbeCbK7dshWcjJ5lCaHhVchXalJE/ZTWAz8w5S4MSrOIFiGnPNZIofxmMpgvPG45XFY 4yBMQj3j2+GkDBUbFbVKl12d5IumPgg3T0GBN77KVIlzAEqG6VnJeHW97LGz3yjwPFJh M294dUVqX9ngN28UO4Z+kTeZ3s0aV6lP/AbEsioVQ5qotgg5+naKqfv2+pW/GJAFWpyb c9zEm9HzWa3J0bBLVbr2tam/6aIgPfPayyBB0Nk6AK7DApTwIW/1OU81hJD322Z+nhfy MRoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19-v6si4251628pgv.127.2018.06.21.09.09.15; Thu, 21 Jun 2018 09:09:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933415AbeFUQHk (ORCPT + 99 others); Thu, 21 Jun 2018 12:07:40 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39926 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932858AbeFUQHj (ORCPT ); Thu, 21 Jun 2018 12:07:39 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A40D881663C3; Thu, 21 Jun 2018 16:07:38 +0000 (UTC) Received: from localhost (ovpn-116-75.ams2.redhat.com [10.36.116.75]) by smtp.corp.redhat.com (Postfix) with ESMTP id 21EBA11166E1; Thu, 21 Jun 2018 16:07:37 +0000 (UTC) Date: Thu, 21 Jun 2018 17:07:37 +0100 From: Stefan Hajnoczi To: Claudio Imbrenda Cc: davem@davemloft.net, jhansen@vmware.com, cavery@redhat.com, borntraeger@de.ibm.com, fiuczy@linux.ibm.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v1 1/1] VSOCK: fix loopback on big-endian systems Message-ID: <20180621160737.GB7460@stefanha-x1.localdomain> References: <1529502711-8028-1-git-send-email-imbrenda@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Content-Disposition: inline In-Reply-To: <1529502711-8028-1-git-send-email-imbrenda@linux.vnet.ibm.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 21 Jun 2018 16:07:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 21 Jun 2018 16:07:38 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'stefanha@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 20, 2018 at 03:51:51PM +0200, Claudio Imbrenda wrote: > The dst_cid and src_cid are 64 bits, therefore 64 bit accessors should be > used, and in fact in virtio_transport_common.c only 64 bit accessors are > used. Using 32 bit accessors for 64 bit values breaks big endian systems. >=20 > This patch fixes a wrong use of le32_to_cpu in virtio_transport_send_pkt. >=20 > Fixes: b9116823189e85ccf384 ("VSOCK: add loopback to virtio_transport") >=20 > Signed-off-by: Claudio Imbrenda > --- > net/vmw_vsock/virtio_transport.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJbK81JAAoJEJykq7OBq3PI0jIIAJy5eUCfQZQyGX30y2ZNcF30 RrAhXeCm5sQ72UVotBgIeloRPNtzpN0tbXPQIBl+YNDDY1l+ZXACQ395DMHhLsGs kgJJLcIDJVsojBlblxo1ZdVO4ZfvpSlN3gaM4HOqrYsb+Hwl+qJPP0fyB+duesRA rctwL6BjMF/VG+32yt418kwf1sf2jD0wDfrPRIUYah00JIjvV2SXCeJBQTsDZNyz poAuTEM2m5Pt6iNDC4+mcmJsMdwqNSIUs1xO29MGHNNEJyHi1zj5+KbKxBOPDlVS sosICssaxkVPZU5Z9Ymw+GTBUo0PD8n1VgHSbYAX3P4X3xlKDJ+QuFTIPLBUdKE= =/OTE -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj--