Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp521068ybt; Wed, 1 Jul 2020 04:10:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz0LYe/CXdi4SqILzTu5DhmNFH+xXB1RnBW41nKIF1vMCkt/octXheGnY++2gfn1Pf7M9i X-Received: by 2002:a17:906:2b52:: with SMTP id b18mr22867451ejg.158.1593601800292; Wed, 01 Jul 2020 04:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593601800; cv=none; d=google.com; s=arc-20160816; b=u8pPzalcEGqULMD62oI2oWbKRt2+AG6Esnn8ZThhv8xuse1wW5B7Yvasxl3z8/xAA0 D12bRZQSUszYEtw6qf3+OQCV9+HF3uAppuKpZMcMPfvgOiwS1LU9+wTBxwim+FPzGo4g FLXxnI6g3naBGSr+w9BdxWtAl7XxC0Q7oDpfQsHeLn99ryKSML5K0kLtcGSj9ry40xkC +etJ4iyvVI9EEQvNev27g/PRCDCPGoTluKRyzvNyu/32lRF+3psklIwWk1PtMWKRtwls 7rGpQ6n70Z7u3/ZC587LluRuJrucXt5vWdHMeFOzmAIZXXvbnkSyoxIuYVkSWfEoX0WN l2BA== 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; bh=BJ2Eu+uO42nkmNoAA2rirPXlRrE2E/aBM23uhaxy6GM=; b=o+/5l2S9htQjKjIjzZh7SMRyPbDNryluguNgsYb6woAMJiexqxaAMEJ7gRieajyQmV xGtjYS/ruKy6XqYOJ/SZL9NyVbGM8XlK0iYucruErAR9q9RpFXp6hTRWO3kZdhxqd5GX SQjNvZuIkc63ltJzq5EyDsvlSnuWU+YmwNLd93Ly5BYN11lxT82ale0MQYviQGvagk5X 6ISG39yH4CD9QdxnWFkpbbvwEM9KlqhXsL+gXajhbqTQvEopBJLD7UEnrJ+c7wg3Ev02 /KBL5Xi5wUmC7kEKkOs1e7o4KsoRvaliV/tw/YWrbTaHIjiebeDuNEcJFp7O9Pmw25eb IEjw== ARC-Authentication-Results: i=1; mx.google.com; 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 g24si3436984eje.347.2020.07.01.04.09.37; Wed, 01 Jul 2020 04:10:00 -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; 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 S1730322AbgGALIQ (ORCPT + 99 others); Wed, 1 Jul 2020 07:08:16 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:46708 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730159AbgGALIP (ORCPT ); Wed, 1 Jul 2020 07:08:15 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 949071C0C0A; Wed, 1 Jul 2020 13:08:13 +0200 (CEST) Date: Wed, 1 Jul 2020 13:08:13 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: Pavel Machek , Jesse Barnes , Rajat Jain , Rajat Jain , Bjorn Helgaas , "Raj, Ashok" , "Krishnakumar, Lalithambika" , Bjorn Helgaas , linux-pci , Mika Westerberg , Jean-Philippe Brucker , Prashant Malani , Benson Leung , Todd Broch , Alex Levin , Mattias Nissler , Zubin Mithra , Bernie Keany , Aaron Durbin , Diego Rivas , Duncan Laurie , Furquan Shaikh , Christian Kellner , Alex Williamson , Joerg Roedel , Linux Kernel Mailing List Subject: Re: [RFC] Restrict the untrusted devices, to bind to only a set of "whitelisted" drivers Message-ID: <20200701110813.GA11023@amd> References: <20200603121613.GA1488883@kroah.com> <20200605080229.GC2209311@kroah.com> <20200607113632.GA49147@kroah.com> <20200630214559.GA7113@duo.ucw.cz> <20200701065426.GC2044019@kroah.com> <20200701084750.GA7144@amd> <20200701105714.GA2098169@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20200701105714.GA2098169@kroah.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > Yes, it originally was designed that way, but again, the world has > > > changed so we have to change with it. That is why USB has for a long > > > time now, allowed you to not bind drivers to devices that you do not > > > "trust", and that trust can be determined by userspace. That all came > > > about thanks to the work done by the wireless USB spec people and ker= nel > > > authors, which showed that maybe you just don't want to trust any dev= ice > > > that comes within range of your system :) > >=20 > > Again, not disagreeing; but note the scale here. > >=20 > > It is mandatory to defend against malicious wireless USB devices. >=20 > Turns out there are no more wireless USB devices in the world, and the > code for that is gone from Linux :) >=20 > > We probably should work on robustness against malicious USB devices. >=20 > We are, and do have, that support today. >=20 > > Malicious PCI-express devices are lot less of concern. >=20 > Not really, they are a lot of concern to some people. Valid attacks are > out there today, see the thunderbolt attacks that numerous people have > done and published recently and for many years. In this case PCI-express meant internal cards in PCs. Yes, thunderbolt would be higher concern than internal card. > > Defending against malicious CPU/RAM does not make much sense. >=20 > That's what the spectre and rowhammer fixes have been for :) Yeah, and that's why we have whitelist of working CPUs and only work on those, riiight? :-). [There's difference between "malicious" and "buggy".] Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl78bp0ACgkQMOfwapXb+vIMwQCgxMUU2uCXMx6F3qqoXwrtOcsB PR4AoIv02DSIJXj0/Qp/43XbkGAtf5kj =O1gR -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--