Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8419677imu; Thu, 15 Nov 2018 11:13:18 -0800 (PST) X-Google-Smtp-Source: AJdET5cos9YaZM3VZGP25Kpo5Vc6YDmdq4coTPxnsx6yZKIXSFN5irxFSxRKJvNH+Ti/jkZ2WK9h X-Received: by 2002:a62:8a0d:: with SMTP id y13-v6mr7782948pfd.142.1542309198735; Thu, 15 Nov 2018 11:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542309198; cv=none; d=google.com; s=arc-20160816; b=gv46emM/QTjRv4nSB4slO2oHQk8BHUQYqJnCDaJMQ9AnStom7nvaqv8K80emRMWz6G aEUk+bU++YFLpL2K1b4CWH04GJ+WeMsxIH3z95vLDmskwjMZyYc09Kvbeqy35r+srIuL U3fnIt9hDfxgLWprVpxVXdpI6vo2pkqbR2X8V4nkWa9aIyMFQ/50Rz9plzGW18WTvNY5 0mXZ+O8o5MfeMA+e13wvNjE7/XJtZD3y2gdYtG7fk2EFnhYCQh3jOFQJyWjWUn5g8JG2 XpPYDtaj8dg6fSpBc2d0S5ijpdr0uipHvkF3L+lif6AAE0s7QfuRRlMtuFfcl2KnJ2as yCjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bGR2Cf9hDtN9kMvb2kMRVhVzs3/JHSs68IRmTWc68iM=; b=PHaTtkTKD63Sh6SrMcF7+20tsFzazY3P9fufhtfuRoqrePtzu14FPiDXv+xa0pnXoK VAsu6wlMKoPRkOZSe5c80meUFh6iim8p1YqHZwNO9a4vcFt5lj81muwFAI7FNkG9duea FEm3jv8o7teVhBIluS06WfnkpJzkK+2yABaadk9pSV2XIRFLIEmOR1P8lWmsWACvmBcV 0+sUiRxjD8Fs1eZFZlRUIhj4/lH/vhBinAVXfilh7WpzUFcDib2lWKBXpl3VbtfF4lYv ReC2UTcMOYNbaN+frSq4VidRDGLn3HPsa0NSkJGhHJAr4mgjALr+8ZMnAfNehkrOFbtv peOA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h37-v6si26242480pgh.537.2018.11.15.11.13.03; Thu, 15 Nov 2018 11:13:18 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388900AbeKPFTh (ORCPT + 99 others); Fri, 16 Nov 2018 00:19:37 -0500 Received: from mga09.intel.com ([134.134.136.24]:23686 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725742AbeKPFTg (ORCPT ); Fri, 16 Nov 2018 00:19:36 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Nov 2018 11:10:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,237,1539673200"; d="scan'208";a="108431466" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 15 Nov 2018 11:10:27 -0800 Received: by lahna (sSMTP sendmail emulation); Thu, 15 Nov 2018 21:10:26 +0200 Date: Thu, 15 Nov 2018 21:10:26 +0200 From: Mika Westerberg To: Yehezkel Bernat Cc: lorenzo.pieralisi@arm.com, lukas@wunner.de, iommu@lists.linux-foundation.org, joro@8bytes.org, David Woodhouse , baolu.lu@linux.intel.com, ashok.raj@intel.com, Bjorn Helgaas , rjw@rjwysocki.net, jacob.jun.pan@intel.com, Andreas Noever , michael.jamet@intel.com, Christian Kellner , Mario Limonciello , Anthony Wong , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, LKML Subject: Re: [PATCH 1/4] PCI / ACPI: Identify external PCI devices Message-ID: <20181115191026.GE4179@lahna.fi.intel.com> References: <20181113105636.GB11202@e107981-ln.cambridge.arm.com> <20181113112700.GT2500@lahna.fi.intel.com> <20181113114527.GA12821@e107981-ln.cambridge.arm.com> <20181115102239.GU2500@lahna.fi.intel.com> <20181115111356.GA599@e107981-ln.cambridge.arm.com> <20181115113737.GW2500@lahna.fi.intel.com> <20181115120736.pscly6zwd3k2tvd2@wunner.de> <20181115121627.GA2500@lahna.fi.intel.com> <20181115174608.GA17691@e107981-ln.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 07:58:13PM +0200, Yehezkel Bernat wrote: > From what I know, there are more devices that suffer from similar security > issues like Thunderbolt, e.g. FireWire [1]. > My assumption is that the same protection may be applied to such devices too, > even if currently it sounds like vendors care mostly about Thunderbolt (probably > because it removes the need for user approval for device connection; it becames > a simple plug-and-play experience). FireWire is kind of different but there are connectors such as ExpressCard and NVMe (over U.2 connector) which carry PCIe and are relatively easy to access without need for a screwdriver. AFAIK some eGPUs are also using some other proprietary (non-TBT) connector that carries PCIe. I was thinking we could cover all these with is_external filling them based on the _DSD or some other means in the kernel. We would then deal all such devices as "untrusted" by default. > Thus, I don't think binding it with dev->is_thunderbolt is the correct > thing to do. One option that I suggested already is that we keep both and mark all is_thunderbolt devices as is_external as well. But I guess this is up to Bjorn and Rafael to decide :-)