Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp849628pxt; Thu, 5 Aug 2021 13:17:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7IUDHCnwpKgberxPxSHF1xbIr8k4474RwrZ8+ezg/D2/YmsCQDXSNj5xmYBtI4Ul7Kv+D X-Received: by 2002:a92:cd0c:: with SMTP id z12mr578658iln.190.1628194627217; Thu, 05 Aug 2021 13:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628194627; cv=none; d=google.com; s=arc-20160816; b=sdrZLmGXBu8v90d7XPvtoVJnvf7e12twVtqbdc/iktgCUMnz0XqSIW4NrgHC2EUdoZ faMQ/h0dGyrUL7+p8ILmQPVxYFsoBJRYFtRAF5LnfGUDslKh0B780xuwfI5m8puw5/Mu Sa9gCy0i0kQavy110mrNEAHhUw3aRJwBwDt0kcYIdrikZGr5pVnOFAN8m2rdbvwMHjYL HGW24enXkUrsQBIwKMPRVPbqtXnmTrzLo+Qw78JeJYWR6/BY3zAKR91zr/d9NZVfQ4OO h3MVKK1CPM9dkZxJegpcK1fexlgqdUNA5MfJ2G6zuuHL/NbGPpiN2Op/oET1xGUv8BfM V+Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=t9Ts88lolZ/MeoZRZZVuR+WkCwcT0pb1nslRHlcpjxA=; b=FtGQCglof5FS1OGEKRgByaTKsaHmBGYuLu3QGi0bLybZYYkMrUdEI92D5qawl5VB5e /MU41q024EDR4Qi+52Z6czfzh4uLKUHOn61HF04IxfylI/3fGLbFpRDVIdoKA3kUeKOn wdwpiEW1ScsJ/uhDE+IXPhzrDXV/HNY4BBfq4GQ46lPI+KBAKLEoRQu1RN11VihASLbT YN/w7dnwUJUFpU7v1GmR4kKoq2+0Itg8G+3ysc3HZdhA3ekw/Ap+o3ErsMwP918LGM8j 5DkRd/CcgCSeTE1uuzBdQ3/7CgaNeHrup0cuAOU0L+1oONHZsgCe30CnyDNM2P5e3Zuo blTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OGwO6SNG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s12si6343269ild.148.2021.08.05.13.16.55; Thu, 05 Aug 2021 13:17:07 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=OGwO6SNG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240983AbhHESMB (ORCPT + 99 others); Thu, 5 Aug 2021 14:12:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:44734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239986AbhHESMA (ORCPT ); Thu, 5 Aug 2021 14:12:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AF09A60F25; Thu, 5 Aug 2021 18:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628187106; bh=bCqDkZoewa4Itcg2pGQD3OuK7e6G6yDkQbh7McanSR0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OGwO6SNGjiVK5Uq/XID5d1YgoYhkFNieVoUh+bHUsdRjlPZMThcU0IIO53CnhjE69 bA59vHAXgdHt/JtWtHKZ1lSjIvTHaIN0A6g2hF8F0TCAPShBpr1EgCfed+MCjzrTkt Xnw+/NMmG+g89eMEKeObNB3r3zhIWqSfVz54z4Io= Date: Thu, 5 Aug 2021 20:11:43 +0200 From: Greg Kroah-Hartman To: Andi Kleen Cc: "Kuppuswamy, Sathyanarayanan" , Dan Williams , "Rafael J . Wysocki" , Jonathan Corbet , Kuppuswamy Sathyanarayanan , Linux Kernel Mailing List , Linux Doc Mailing List Subject: Re: [PATCH v1] driver: base: Add driver filter support Message-ID: References: <20210804174322.2898409-1-sathyanarayanan.kuppuswamy@linux.intel.com> <1e9efeb3-4aef-68e2-6af3-cf6bb5decb38@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 10:52:10AM -0700, Andi Kleen wrote: > > On 8/5/2021 10:25 AM, Kuppuswamy, Sathyanarayanan wrote: > > > > > > On 8/5/21 9:37 AM, Dan Williams wrote: > > > I overlooked the "authorized" attribute in usb and thunderbolt. The > > > collision problem makes sense. Are you open to a core "authorized" > > > attribute that buses like usb and thunderbolt would override in favor > > > of their local implementation? I.e. similar to suppress_bind_attrs: > > > > Even if such overriding is allowed in default boot, it should not be > > allowed in protected guest + driver_filter model. > > > Allowing overriding would be acceptable, as long as nobody does it by > default. In theory a (root) user program can already do other things that > make the guest insecure. > > Still it's not clear to me how this proposal solves the builtin and platform > drivers problem. AFAIK that needs a builtin allowlist in any case. And once > we have that likely we don't need anything else for current TDX at least, > because the allowlist is so small and there is no concept of hotplug or > similar. What specific platform drivers do you need on these systems that you would ever want to exclude some and not just allow them all? > Also another consideration is that we were trying to avoid relying too much > on user space for this. One of the goals was to move an existing guest image > to a confidential guest with only minor changes (new kernel / enable > attestation). Complex changes for securing it would make that much harder. Just deny all and only allow the ones you "trust". That is a well-defined policy that (/me checks notes) Intel created for USB a very long time ago. greg k-h