Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp644514ybt; Fri, 10 Jul 2020 08:49:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza/B66Tv2GaOae6nldhYnNPGx1Ia+UKhf7tlZu7VsTkXdawWJKxJlFi0pn4uxO30BYKr2V X-Received: by 2002:a17:906:2b12:: with SMTP id a18mr60731924ejg.186.1594396171002; Fri, 10 Jul 2020 08:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594396170; cv=none; d=google.com; s=arc-20160816; b=miINvezlFXVob2YrDzgEL3NFgsi7k3BLgCq8+2Ux2qRULPSCIw1CPHvnH3ZxwRxBMF lcFWsIlboHQ5cXAkJbqUSbeu2i5obmRvYqtwVzMPqJ7H1NeeTm3jbxIsuIStORxMf+lu Zm8Ny+baniKhFv5tfaw4m+qJ3Na7eA1Mq1WcuY72NmxV6R2Gxdm5Xe00Au5qVQZNdfJX npcU/5ErxYcr+UQIltfyjbhgqSjdcmWAryG+xoIv9uEgtC7pkOyCvH5T4TVb5eOhJLAO /tKuUY1C7rrDKO1m1OSekvXaWeBf0JKVS+R8xaLPinOFqH+9c1uUhL498XptBoo5kE/s YfQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9AtbCOMTaB9TfwaJoiXvcEqoE4bI1Zlr762TPY5bg7c=; b=RmmVse0fG3tqghU1QtFPuhKp10p1Bd+nuIt8gWuNuJnVY/lEqEdlagG5K+9H7uryX6 /AI0sA56H3/SdWZ4mJkNm1d8+SvSvOy7qbIvM4NgfbN2k0W4mNyyCeFu7Dp/dxDQ7Jp4 oWWmeHnNXe3kEO7R5RAL6oNaTmp11XYik4lL62EyV+fHLt415UXCICzZvxlO2U9d1/ag jsHZo35bKAANTveqcGjyUnPzWJzZ3Hoxt9g4eMeNcYMs8wO/6U+FdlJrYaRtDAg6VAMa itcEFFpl7X6ZH5UxozvDtw4kXRJD8fI2XdyWXWJrNyayyNJvkHRGKy9/4mrQkrvosFjq A3dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=OXRoxJfs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y26si4423858edi.339.2020.07.10.08.49.08; Fri, 10 Jul 2020 08:49:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=OXRoxJfs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728200AbgGJPsi (ORCPT + 99 others); Fri, 10 Jul 2020 11:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbgGJPsd (ORCPT ); Fri, 10 Jul 2020 11:48:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E951CC08C5CE; Fri, 10 Jul 2020 08:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9AtbCOMTaB9TfwaJoiXvcEqoE4bI1Zlr762TPY5bg7c=; b=OXRoxJfsNINR7br0uKMyJjdYcl 6X48gTp/kiEodNwE1h+FcQV5JegQ7xLzmUUJMPEq042U+WEwTA9S6bK5gJCmF2vY+wZWbP9yMSeBo fDtjSM+peY/yGflCRuLRZNaEtdolGYlj6E69yMWatTZOzNcRgmXVf6P85JajST8fE8MkaybEZ8rZB GT5Gbo+Gi291k2ksp5XvmSfXd6ASZEPcWfxhgODXeM+EWAS0pDkwoYUF2rv8dfEiusfQoSiw6u1LJ wTp/mXuSsfIZkxYtR9gmS6Gv57A6SShRG+4SducoOIEIGCU4a1HG0Cxp/KzzEK0yP2hhjaa6u+H0p HfaOsmgQ==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtvFv-0001yh-FL; Fri, 10 Jul 2020 15:48:07 +0000 Date: Fri, 10 Jul 2020 16:48:07 +0100 From: Christoph Hellwig To: Giovanni Cabiddu Cc: alex.williamson@redhat.com, herbert@gondor.apana.org.au, cohuck@redhat.com, nhorman@redhat.com, vdronov@redhat.com, bhelgaas@google.com, mark.a.chambers@intel.com, gordon.mcfadden@intel.com, ahsan.atta@intel.com, qat-linux@intel.com, kvm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] vfio/pci: add blocklist and disable qat Message-ID: <20200710154807.GA7292@infradead.org> References: <20200701110302.75199-1-giovanni.cabiddu@intel.com> <20200701124209.GA12512@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200701124209.GA12512@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 01, 2020 at 01:42:09PM +0100, Christoph Hellwig wrote: > On Wed, Jul 01, 2020 at 12:02:57PM +0100, Giovanni Cabiddu wrote: > > This patchset defines a blocklist of devices in the vfio-pci module and adds > > the current generation of Intel(R) QuickAssist devices to it as they are > > not designed to run in an untrusted environment. > > How can they not be safe? If any device is not safe to assign the > whole vfio concept has major issues that we need to fix for real instead > of coming up with quirk lists for specific IDs. No answer yet: how is this device able to bypass the IOMMU? Don't we have a fundamental model flaw if a random device can bypass the IOMMU protection? Except for an ATS bug I can't really think of a way how a device could bypass the IOMMU, and in that case we should just disable ATS.