Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp932066ybp; Wed, 9 Oct 2019 06:30:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrpROxqn8KtLgSso3b8pYqyC9AkblFpob/6yJQrOWDixKqpoJD/U2orW5mVJYavC9P9q23 X-Received: by 2002:a17:906:27c5:: with SMTP id k5mr2779947ejc.173.1570627811036; Wed, 09 Oct 2019 06:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570627811; cv=none; d=google.com; s=arc-20160816; b=gvEge2LRQ8j0X3YWq3V+LNPXIb1d1A1sIWSJpm3Ux/UBDdrTerW2s/rY2cyd8uDp8L 6Rcf8HUfdUhhk5pQkBMD0bbh6DMctu+/PQlvh1ZAy83QgGTV5vfoDoA23yvy6l+FOIrR UG8ZB0yIc/Bv4lmHNEN9yMH4bEIZmOXZrl7vPzFxXgR7B96vdeRKn8m8w41dKNMLrG3P 5ARRYm2W+tN216UTN3/25128VNQcpeYhQsnuo8sBCCbAso1Vo2aKDsTyiZ1V0t/WlxHx sWtTWocjI3RC99MLdyqh3dH2RoYiyC3R8oRE29oB0+pgVquu0seWMuJsE7LkmZ/GyoTD 1B5Q== 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=I7jMF/Qy1gpLzvR/kN34jEJdNQ3gvhWQW+1n1B3riaI=; b=MHtpv5uaOoGEXww+AnHZG0OXnkt4XoHYE316zD+h6qrxUbYZLXX43q898bZyfV7jiR 4xNnUs1JzRRv8k5VLVAl4kg9a4CRtF12I7p4K8sKXo88Xhpms13fovRvQsYh15f/+LN8 /SmXlwy0Mvh0uAwi5okHcgLx9ykC5VP6lJQbSzSXOVz5ipV4Bv4p/BldsdLF+/8iXeFM igPOe7JG+mDriJgtGRF1+Ca0jbEwJdq+MmAR3FWzZdbvSB/qKZfM9/pAkl3U6XgyA41W IypAnS4NH38mSaNC7GWo5SFDy2dxDPyB7uq7VtmtyBRMyk0Fhf0ip5/8YWjT41pajwd/ ph0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LMKtmy8h; 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 f31si1509202ede.253.2019.10.09.06.29.46; Wed, 09 Oct 2019 06:30:11 -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=LMKtmy8h; 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 S1731533AbfJIN2j (ORCPT + 99 others); Wed, 9 Oct 2019 09:28:39 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36536 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731138AbfJIN2i (ORCPT ); Wed, 9 Oct 2019 09:28:38 -0400 Received: by mail-wm1-f65.google.com with SMTP id m18so2627268wmc.1; Wed, 09 Oct 2019 06:28:36 -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=I7jMF/Qy1gpLzvR/kN34jEJdNQ3gvhWQW+1n1B3riaI=; b=LMKtmy8hlP943Yo/NfDhtwq/wBaNOX0zpKbxyEeVZyrNN1kGf7yoo+/6R2c9OZNEZs k/fQbrQhamPPC4uKg8s4ic+2Hm3gLRfw7nwlsDdVUc5CYMtR9mFFosPvhv2gPkBu0q5j Fr31uCccDz26FsVg/EeINyhgyvEWsKjCIfZzCsr4gTkbWHo6YOJoG9pWmGWtCX+QVEqc 9X4bhfhfHqfVOamQ3hFW4xhq1sG8HU9vDQhFlzc7Aya/VFqeKTNlgFtCKSBIIbVXu3dx /+IUVX6MghDY4n+V08lebyJDwIdWQeCzV72IK8gWQWEf5Sq2ff1Bb5ZhhXVk41uvhGvm HrEg== 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=I7jMF/Qy1gpLzvR/kN34jEJdNQ3gvhWQW+1n1B3riaI=; b=S4gm70sEgfUhZIWkKEDWe4IqGmcJJ84YK1G8D8XvK4BTMgE+GbLHgrm/ENV5VaF081 X1k6HsYWmB8iC9HzbaUMBp8wb8WJ/bbOaIrf/urgm6D3Xl1I0EGawgqWbbm6WIqQ85dN tp2AzlNjTwh8AzJSf+jdEQp3e4Ub3WL+UouAIILZ+ork+LVCuzKVdK7x/geY3BS4s0dl tuiUPGKsRJdqDSV+0AGIhcerW0IKsR3gZgSKzyPxnGKh8/py3ZPfmeoesyUPUxZ4lz+T +ehHNVWUyKu9JRKUkGI1+paO2pVWHdSdkOkI64z7y9QwSiGum/dgv0savoAXWC3XNZeQ Y53w== X-Gm-Message-State: APjAAAX/zkc2IbWRF+DRZXAZZfXlQbxFlJqdYAbgIOf7IZSK828ctOIv c5fJuZRyN08TihoK/VNt05g= X-Received: by 2002:a1c:658a:: with SMTP id z132mr2596866wmb.174.1570627715977; Wed, 09 Oct 2019 06:28:35 -0700 (PDT) Received: from localhost ([51.15.41.238]) by smtp.gmail.com with ESMTPSA id b7sm2763342wrx.56.2019.10.09.06.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 06:28:35 -0700 (PDT) Date: Wed, 9 Oct 2019 14:28:33 +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 12/13] vsock: prevent transport modules unloading Message-ID: <20191009132833.GM5747@stefanha-x1.localdomain> References: <20190927112703.17745-1-sgarzare@redhat.com> <20190927112703.17745-13-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kunpHVz1op/+13PW" Content-Disposition: inline In-Reply-To: <20190927112703.17745-13-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 --kunpHVz1op/+13PW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 27, 2019 at 01:27:02PM +0200, Stefano Garzarella wrote: > diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c > index c5f46b8242ce..750b62711b01 100644 > --- a/net/vmw_vsock/af_vsock.c > +++ b/net/vmw_vsock/af_vsock.c > @@ -416,13 +416,28 @@ int vsock_assign_transport(struct vsock_sock *vsk, = struct vsock_sock *psk) > return -ESOCKTNOSUPPORT; > } > =20 > - if (!vsk->transport) > + /* We increase the module refcnt to prevent the tranport unloading s/tranport/transport/ Otherwise: Reviewed-by: Stefan Hajnoczi --kunpHVz1op/+13PW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl2d4IEACgkQnKSrs4Gr c8gJ2gf/fEP3ucMouPO/fhEeGplHc1JeWTI82mmjT2/LiJgxHaNqylqpIMASW19q 7nn9yxlVS1rBu7D/Os+q4CtQwAc3ea5KvmwwHgFa4v/N1Sm25jklsw/zWMyus6gw 0xc5zcifHOfttIiSKldJuRCc1nYYUnUrakwm1MJjlzB+LEIYUm2/264mLBbyxWqa TxQBVZSI0BlpISSAry9LKNQIqZU/3gWBa1sIHT3PElSZQ5Z9be7XQciuLi84Hfag uOky8F3zdmzG2REAu8mKuF0thOyFpPP05O2qo6GML9+ERqf1PwR2qenlTO/cMBzS KwNQ3ydpast9dLj7idIKHuiQgTIxcQ== =qIxu -----END PGP SIGNATURE----- --kunpHVz1op/+13PW--