Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp903995pxt; Thu, 5 Aug 2021 14:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0WatmsU6LBbCBfHoZliFRJf+ge7CeVk/X5k7CD6JnRVhydtF9gsnaBAI68VOT26uLxsy/ X-Received: by 2002:a05:6402:8cf:: with SMTP id d15mr9402731edz.8.1628200310797; Thu, 05 Aug 2021 14:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628200310; cv=none; d=google.com; s=arc-20160816; b=AhHxHwLsK0g0jAVKhUCkYNnnOdR0cEOEggmP6FXTHiIHxXbfcZtGCSEf2S++d2c3lL Amg9Zv9oyO5lkybr+jLz7U1OZJv44DCr/lCAJXY0usbupZ7Xo7mc4ohfxpBeka2izXsX WqUEj3gnPHiKurCQDnM01FAOTmWlGQe1fS2AMIdjVS13R8KRXGht7jFs+wzjvr/CN5l8 UV+5NR3E725hSxwWBnRxxUr571j1Gy1kjpXYPqxkh3mv8QWQQia52OBhCbllm+JIHl/k 8GWQURfd1unOkggFixSVM6zhblf6I6SCPEvL6Fcj4H288Jt892kTilQCVpbJIGzi+U15 K8lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=vNn8LdPxNw6Bsw8Odmky8yx6PV5GxXY19etnO00Yi+A=; b=iImbyBmIOLOsj1TLBhGs8yWR25b4Wr3kS55dZu/cRd8iE40rvQ2VZ5tDKvo3eEKk2A PbK2bTvYH0TCHJ06qJsJHHjlH78tWPnIMcddiKNY/lHgOBBMLhdpU6ey7xnLvvdXwXNC GRcElQlZxYaudxZ3zikC786QIJ+/ABBeErm+s4rySpHop3iWJ1d3lohOn9743UC0s6Gu 7uY5ohHTzN70IBOGtSIML9qlfeRm8pp8H1B0Ws7xGJMq2M0XGjLmRCyJtRwjUs9mKZE9 wcepKU1n49KoYLXEySiYATYmoIgcrCyQhzBMAig20cJwZeSmX/oJeBmGOPiLFwbbVC9s WrvA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b33si7559672edf.242.2021.08.05.14.51.27; Thu, 05 Aug 2021 14:51:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241763AbhHEVKY (ORCPT + 99 others); Thu, 5 Aug 2021 17:10:24 -0400 Received: from mga03.intel.com ([134.134.136.65]:28323 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241748AbhHEVKY (ORCPT ); Thu, 5 Aug 2021 17:10:24 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10067"; a="214281567" X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="214281567" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2021 14:10:09 -0700 X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="437941254" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.183.241]) ([10.212.183.241]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2021 14:10:09 -0700 Subject: Re: [PATCH v1] driver: base: Add driver filter support To: Dan Williams Cc: Greg Kroah-Hartman , Kuppuswamy Sathyanarayanan , "Rafael J . Wysocki" , Jonathan Corbet , Kuppuswamy Sathyanarayanan , Linux Kernel Mailing List , Linux Doc Mailing List References: <20210804174322.2898409-1-sathyanarayanan.kuppuswamy@linux.intel.com> <21db8884-5aa1-3971-79ef-f173a0a95bef@linux.intel.com> <1e0967ee-c41e-fd5d-f553-e4d7ab88838c@linux.intel.com> From: Andi Kleen Message-ID: <9b2956f5-3acf-e798-ff0f-002d2d5254db@linux.intel.com> Date: Thu, 5 Aug 2021 14:10:08 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/5/2021 12:01 PM, Dan Williams wrote: >> That's why I think the builtin allow list hook is still needed. Thoughts? > I see nothing that prevents a built-in allow list to augment the > driver-core default. Is there a gap I'm missing? Okay so you're suggesting to build the builtin allow list on top of the existing framework? I thought Greg's suggestion was to only rely on user space only. But if we have a way to change the authorized defaults by device (not just bus) from inside the kernel at early boot that could well work. Doing it only on the bus level I suspect wouldn't work though. -Andi