Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp933096ybp; Wed, 9 Oct 2019 06:30:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiI7NT2vhd5NC8gMN0yD7eMI1xZ6cWXc88blpV6AAER50iYLQ3CGNs6OvcMuIBbUjwIwi7 X-Received: by 2002:a05:6402:649:: with SMTP id u9mr2908202edx.200.1570627857440; Wed, 09 Oct 2019 06:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570627857; cv=none; d=google.com; s=arc-20160816; b=wIRMQRqQjDwPAKGnIhnIKNAE3++ELbVtqEiWV903NYyg/ZtH4DLIGao7n37lOf+PAv lKGbodNkCDaveXNmtkML+LzN1ntAVcKPZLIdzk9B9ybbqnzv1A2ARFgAEh/sxpzJo8n+ RkuT9WupwRg5WMq8lechV3vzYE21b8luXf+YDbLK3WQWWOEew3Wask9MCGNA6dkARbaP yGq8Xluz69S83wCqn6THfSkoBe//MVWmbl17X99Jluet5hQJOzmY8X6BFxM9K5jDZ4d3 u8OnvTbTvlIqKR5ot/+DoeJdgf7waVqF5HShgkjFosKffQvl3K+ZgU5UGy5IMcPCUuEF jqoA== 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:dkim-signature; bh=GDuh8wOWud4/h7FBqgUO27K9UbX8e3rhEg2xYH7BQNg=; b=bQPgecOrn+hop4Va0VfVw3XWIRCCOFPR0L1glh9ZQiA2ZeTjX1gv04WRKjSi2NfrXJ 5L8vfbNv8CuIQwgr4kVV97OrMhn3kNQqopC7luNPhxwCVR+Hp6DDE/z36xYFBsuL+F2y iiVmWi3+6cTuBdQpgTELMjdaxvOaD4JsWH1pBpBJ6yTupO+ih4wdgTJIeHYttIDlJC+D xFU8kgWSP2GZqdrZ8pFHszqLidVvseopGBPkwCUKinirXfoQBfZXAuGkR+R0Glc5DtL5 hS/YVcr76Ls/Cy0J6dcvVl6j+5ZZdcfe3HKbT8rdW7OD3+w5wj5n4zc0R+6rP/kSzoyj 7vCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="f+nXm2f/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si1103288ejp.378.2019.10.09.06.30.33; Wed, 09 Oct 2019 06:30:57 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="f+nXm2f/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731566AbfJIN3Y (ORCPT + 99 others); Wed, 9 Oct 2019 09:29:24 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40806 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731181AbfJIN3X (ORCPT ); Wed, 9 Oct 2019 09:29:23 -0400 Received: by mail-wm1-f65.google.com with SMTP id b24so2611017wmj.5; Wed, 09 Oct 2019 06:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GDuh8wOWud4/h7FBqgUO27K9UbX8e3rhEg2xYH7BQNg=; b=f+nXm2f/x4SFc3z61bN/4O+TQEsVxwJLm1a8Ysx2R0Jwt5UoKtc7Rb9yu4+9HgkILs 2wvIwU68sXGIVb1+YrM4MaTImBjZfYmarAqMC2Y7wZCPqcBvarWKAZ06VBSN8aGr/yhu CFfyXyi9K+DxQ8OHAp3bJFHDFyGpXl+PfCZPVC9Rmphk88/T5Y2xYIxo91ECmlJC8BZk 9H6aB0DiFx3hQa1Z9M2a4UJbePb/vpazuPthF2V4dtM+Qx0r8gHkCyjKoAqa0IzscDd2 GeUfBWin4JZN/V8wtLAGvLX3g816AfgCZG/57Xt3zlpLYNh+I6iatUhB3mS76zoyZ0ss ZNuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GDuh8wOWud4/h7FBqgUO27K9UbX8e3rhEg2xYH7BQNg=; b=khLE/CPVTXAleTvOTe0cyHUiwO1HmVxuhOASHbTlpjB7IXmI9plWaY0IHpU5Y/Wr0N sBYry0IFyXPiioFvGoQDG3ob/Huq+MIXhum3q4RfM569wzrP3qW7f5C6uYH7ai6ajt7n yLR0Yic2fQbnbhIulAXVnjjrbFnxqJHMyhzNYAgZG3E/9ytoT+nALmNuDf+ol/QhyeXu P2M84RgaZ1LEZLb+R4OeugZGG4ovkXzgRYXzb74Zk+UJ2+gGjtr0lWi38D6nvzODE8qN TJFcKHm6V2GXzueLkuqmxI3VamMdJ+D8gYCLo1jQ6laT7qIDQf8Sbv4Uax0kJ6xUpXo7 ipVA== X-Gm-Message-State: APjAAAVXlMnhzZQ7noAJjylVgOpoYN8Vyq7LCdRQq10OLu2tAg9z3bG/ vqxvUfNl7RS20Ttg9x/Xbas= X-Received: by 2002:a1c:f210:: with SMTP id s16mr2434290wmc.24.1570627761339; Wed, 09 Oct 2019 06:29:21 -0700 (PDT) Received: from localhost ([51.15.41.238]) by smtp.gmail.com with ESMTPSA id t83sm3862315wmt.18.2019.10.09.06.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 06:29:20 -0700 (PDT) Date: Wed, 9 Oct 2019 14:29:19 +0100 From: Stefan Hajnoczi To: Stefano Garzarella Cc: netdev@vger.kernel.org, Sasha Levin , linux-hyperv@vger.kernel.org, Stephen Hemminger , kvm@vger.kernel.org, "Michael S. Tsirkin" , Dexuan Cui , Haiyang Zhang , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Stefan Hajnoczi , "David S. Miller" , Jorgen Hansen Subject: Re: [RFC PATCH 13/13] vsock: fix bind() behaviour taking care of CID Message-ID: <20191009132919.GN5747@stefanha-x1.localdomain> References: <20190927112703.17745-1-sgarzare@redhat.com> <20190927112703.17745-14-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cs5saTBZh7UZl2eX" Content-Disposition: inline In-Reply-To: <20190927112703.17745-14-sgarzare@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cs5saTBZh7UZl2eX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 27, 2019 at 01:27:03PM +0200, Stefano Garzarella wrote: > When we are looking for a socket bound to a specific address, > we also have to take into account the CID. >=20 > 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. >=20 > Signed-off-by: Stefano Garzarella > --- > net/vmw_vsock/af_vsock.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) Reviewed-by: Stefan Hajnoczi --cs5saTBZh7UZl2eX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl2d4K8ACgkQnKSrs4Gr c8jIHQgArLXLyHXwZu55EHHu9yiNNFHasNE5dRT3AdGHmJvK/neRvEFmuyQ2w9Xr Ap1yzIgihhRbUNxJaiyxXeuB1KwSQmWUSs15m027eetOieQFnnPZodUYF1PVRloj +2ol43xqmHW4vOlqdXbTrl6Ggr97gSNylVBDC5naNbR/r7/md1MYEmkpRTGHlUFe IPQ5Ip2z8hWKLnK70fs1yYKmj8Tbb+pZBDN68i3iC5+98SzrvY9Tix1SfeQwVSn+ HKXhugUiYvtl2VwaqSEud28/3Hqcxe3wnfZcYXFJkPhj5p0/gprCBUeLUfP4jwlz b42+Ttg66N+HW7vXgrTesK83l3PpJA== =f3oL -----END PGP SIGNATURE----- --cs5saTBZh7UZl2eX--