Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp898578ybp; Fri, 11 Oct 2019 06:11:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUbJ0OvmSIqRXrSHXcfMNO6bhoUxck+gAdIBEnyriVL8Sz8Do+0F2rltkW5dujyIgJesBU X-Received: by 2002:a17:906:6bd5:: with SMTP id t21mr13658260ejs.277.1570799516146; Fri, 11 Oct 2019 06:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570799516; cv=none; d=google.com; s=arc-20160816; b=LpdMmEDeVW0tiW0bdDp0z1md++V7g0MoItlwjX993amp6MahgsvivChpRiW/J9ww8z I4Qjq8qHSjfDvTiAQ66ZDfDAaO2UfoLB7TQRWKT6TTy2I6QuIPyX4YibKgy4l5AQGMdX XcnOA62fIIaKeCCsy1uPP1B25jwI+F357S0VPmpoNANhk6q604pjLvxaxuKZi5pgFMeY PVf5/aOSZigfVa5i6AvAtqgkjfYX8/y5cCVH9Z8IU3pCivIm2mU9RUyx5ka/a7WrJZ+c s2s6m1ujQ4ErpYD2CZLUmkM3NMM5Yb3idDxjUhZR8McNSx6iin6SybLdEmPL59UvV9v2 AWEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=smMHQL5CwMLP+2JR/mpxs9BAPAs3+pfZO87bWYxJbhE=; b=vPlIKMoLf89lTJljouaX7Lgdsj414OoJOPNYpuljekuz0XqCqmwaEXlOv6/mASmqnm 9mbMYxiTIxGRSGpsodK6W1CTC/dTapkQbwKVCzldhkkrLhBlmsxTbyyoY1dh9PpOXbvX 6V9fPmGYIk4iHttIWSBP6hGAMAUpRXopQ24CM0dHMnGsTsYOg1UUI5/Cg8t9sDokSC5i Ekoafbc909BdjNmzJUeQjCaNUSpyhq+5o4BZ4PzNjIRKlX66aEajlkDVoH1IGsDFZjv2 KG+FNIEHr2dIbm43lhDXvQeEN4x70whNQ9HkP1nqzgGeKDtj7HmIpWt7xaPIIEc8oNG2 M+/Q== 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 c31si5481555edb.309.2019.10.11.06.11.32; Fri, 11 Oct 2019 06:11:56 -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 S1728546AbfJKNIK (ORCPT + 99 others); Fri, 11 Oct 2019 09:08:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13287 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728511AbfJKNIH (ORCPT ); Fri, 11 Oct 2019 09:08:07 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0B6553082128; Fri, 11 Oct 2019 13:08:07 +0000 (UTC) Received: from steredhat.redhat.com (ovpn-117-54.ams2.redhat.com [10.36.117.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id AD59C60600; Fri, 11 Oct 2019 13:07:59 +0000 (UTC) From: Stefano Garzarella To: netdev@vger.kernel.org Cc: virtualization@lists.linux-foundation.org, Jorgen Hansen , "David S. Miller" , "Michael S. Tsirkin" , Stefan Hajnoczi , Adit Ranadive , Jason Wang , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net 0/2] vsock: don't allow half-closed socket in the host transports Date: Fri, 11 Oct 2019 15:07:56 +0200 Message-Id: <20191011130758.22134-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 11 Oct 2019 13:08:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are implementing a test suite for the VSOCK sockets and we discovered that vmci_transport never allowed half-closed socket on the host side. As Jorgen explained [1] this is due to the implementation of VMCI. Since we want to have the same behaviour across all transports, this series adds a section in the "Implementation notes" to exaplain this behaviour, and changes the vhost_transport to behave the same way. [1] https://patchwork.ozlabs.org/cover/847998/#1831400 Stefano Garzarella (2): vsock: add half-closed socket details in the implementation notes vhost/vsock: don't allow half-closed socket in the host drivers/vhost/vsock.c | 17 ++++++++++++++++- net/vmw_vsock/af_vsock.c | 4 ++++ 2 files changed, 20 insertions(+), 1 deletion(-) -- 2.21.0