Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp67664pxt; Thu, 5 Aug 2021 18:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSzxzHt48LZiv0ZbUsSyYZoWLxNRze0vAafHqL55iz8Pfd+kddyVIiFmgt1TVtHR7+37kr X-Received: by 2002:a17:906:ece1:: with SMTP id qt1mr7566290ejb.281.1628212332548; Thu, 05 Aug 2021 18:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628212332; cv=none; d=google.com; s=arc-20160816; b=Uhb2zailB2HhycGOb7Ha9CvZ38V4u1tq5UmIi4+v+X0otQe+TkyMKW0mr1Hez4W6Di CGlaBXSOBbhxIF2UVTUxsqVsd+cYYTsG03gfOaPAX2an5kpaDy2ReYTpMofXmm87oSp1 hS8jMavJ5y8yu4aOw3AaLAaWttHFjSslDQaXWfLlSHViXWMXQ3JWmEJHeamohAzXTE3b 2tYakggXqErwMR66v6fHVZ3ySgPQTv5CcgyPwAsCk+MsqCvCvRqlhRuXIY+BLg6zH4EC LKw8yDCF5LPnjQDnQrf1f+8V7cRzFzw4kDwp51KLZkwFO76Sg6Gf3dGfexwAaG26hhv4 792Q== 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=PIx9f//E9DM75KWdBN0FFMHkiLR5UKwlz50VWcH0cx8=; b=sj9N3BLYYPSEOHoF5dGkG6/xjrePWrB1brrr420ooGszlFgDx/9Vrpi9sh+hwSC5GR qNS5rdoEiG7qdicxBJ+BfdD90g3/3xVCn0AoE25hk7lv4Cd5mfeSHCz9ed+ejBQb/8e5 r4IcbZq/N7QDBjy/5QYo/NsZ+VXh0SgbDdcdN6dz4Te3T78mES5ZcBYzyiMC5IyX+fiE xYe4R82MYchZSvNY35MbU8QAaI+a5V3M3Ov3+6WhsraJzPz/pbrdoP3geZPfkOaBA9E1 goDMp70Uqr6tlcywRpOiOBKcKSQXoMpwSDFZEp7C6zMe4WbvD4e7qUdftMl/Onigj+aT Tnww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qXJLPYpu; 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 z3si7203141ejm.118.2021.08.05.18.11.48; Thu, 05 Aug 2021 18:12:12 -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=qXJLPYpu; 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 S230342AbhHET3A (ORCPT + 99 others); Thu, 5 Aug 2021 15:29:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:47726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235961AbhHET27 (ORCPT ); Thu, 5 Aug 2021 15:28:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 482AF60F35; Thu, 5 Aug 2021 19:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628191724; bh=c0Vs2HNByH4Fwmy8Vxl8UQ27uBsApQZgZhBBXqQepZ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qXJLPYpu3rpE8NBbGezgtyv/6usNCSrqixGehji/uZOhWmKxo55UXnWggZPCAjlG0 iBE+anl1msqQhP9pnh22ackMBtwgSvcrNUTqwMMNzLxrChbkS1UV7/Gal9p7L/veib kVE07QIORwUa4vHhS18vPCjEJoMokdx/NEoevmaE= Date: Thu, 5 Aug 2021 21:28:42 +0200 From: Greg Kroah-Hartman To: "Kuppuswamy, Sathyanarayanan" Cc: Dan Williams , Andi Kleen , "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: <21db8884-5aa1-3971-79ef-f173a0a95bef@linux.intel.com> <1e0967ee-c41e-fd5d-f553-e4d7ab88838c@linux.intel.com> <179a8351-5541-a4f0-bbb2-5d4f398e2476@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179a8351-5541-a4f0-bbb2-5d4f398e2476@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 12:08:52PM -0700, Kuppuswamy, Sathyanarayanan wrote: > > > On 8/5/21 12:01 PM, Dan Williams wrote: > > What's wrong with the generic authorized proposal? The core can > > default to deauthorizing devices on the platform bus, or any bus, > > unless on an allow list. It's a bit more work to uplevel the local > > "authorized" implementations from USB and Thunderbolt to the core, but > > it's functionally identical to the "filter" approach in terms of > > protection, i.e. avoiding probe of unnecessary unvetted drivers. > > I have not yet read about the "authorized" model in USB and Thunderbolt. > So bear with me if my question is basic or obvious. In the case USB > authorized model, who maintains the allow list? kernel or userspace? Please go read the documentation and don't ask others to do your work for you...