Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp504852ybg; Wed, 3 Jun 2020 06:32:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpRD8Hn82gWUdYuvR0TRAKay+FRBFnLYdT/JkV93bRyZpYmmALPdaaOEt0KLM6LOThDNKF X-Received: by 2002:a17:906:2c08:: with SMTP id e8mr27460840ejh.385.1591191131227; Wed, 03 Jun 2020 06:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591191131; cv=none; d=google.com; s=arc-20160816; b=THTx59nXZ0LR1HtQ8FsKT0aVA8u44XgIkXgfYt//Qm6wZ7G1rKqTxpJkbrackGRNOc iDoGSlihOppi6CIzrRVYFQ5/rUCykNqtwV9unDOZEe+wUDGrpLl+AFrDr5uXEUzlSHMU 38I5O3fU7bHokLTs1zuGCZ287Hf4ApZVPemZ/MnuTlNcYEzGO5nUQ7mkLB6dIv8lFfGV 6rTQCpqwlqeV6kscgemfI+SqxxxTt9ZpNo66lpTjYW0xs7TcbZ99blj8hvEXglKpU9kf MOTroD7RdPpmh7HdxWvr5MD4PvGWxC1EJoXZkIlYTB6yPNLm4BVFHqOg9I/Znt3pK82Y 3RRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7ZtBqQXiKb6SlLfOHNNw346Hlhas1K6ICfrmxyi9D54=; b=EgU2eZm7L5NysKo1VyDqHIb0toQGJlHyELLvyCseu4nfO8cPlFt44STdRl9xwbYAAI 2KG01UrswDzcq0hxYT6Ssc2gY3uJBQfqcrCmbkiySEEqSBER6So9gB+HAme1D362iH0/ B6+ZO0SloF1jkTAgiW6ZmZe9lKjkgFPWcLRtj0079gCR/f88/uVuAzBJHEsWSuFh5NN+ 9lq+Fh164oLAHukeOVMnOt+eiDr62LJBRuLZLQOeydQYb0ChjZuPuSIoAaVR53J96/ru UvhhsHTPUxjksO869wyT5URFZ1uzxVWBXZnPSoKlq+GCtqAducP/UKZlcCAi9GkhyjZg yzxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K5gXOOyg; 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 s8si1130470eji.349.2020.06.03.06.31.16; Wed, 03 Jun 2020 06:32:11 -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=@kernel.org header.s=default header.b=K5gXOOyg; 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 S1725884AbgFCN3S (ORCPT + 99 others); Wed, 3 Jun 2020 09:29:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:48232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725833AbgFCN3S (ORCPT ); Wed, 3 Jun 2020 09:29:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7A22020679; Wed, 3 Jun 2020 13:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591190958; bh=xp8S5uRdLpHTssSel0DvZQsI7IRlTP5pP3UlhihHxkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K5gXOOyg9zFDn5uQLf3I5QYs0e7Y5q38gkxDjvrAVk/SqXTV/2XaWPrDZpAvcSDWr ii6fkTLI+uftI1ORJFo5lN7CfFeLGRMfZ00GNfAn2F1xWGn+8OGsiksqLQ2Y3AH1bM /TzIHYQWMmpaN9fXL03NtGgj/otRH6tLUhwoykVM= Date: Wed, 3 Jun 2020 15:29:15 +0200 From: Greg Kroah-Hartman To: Rajat Jain Cc: 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 , Jesse Barnes , 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: <20200603132915.GA1584791@kroah.com> References: <20200601232542.GA473883@bjorn-Precision-5520> <20200602050626.GA2174820@kroah.com> <20200603060751.GA465970@kroah.com> <20200603121613.GA1488883@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 03, 2020 at 05:57:02AM -0700, Rajat Jain wrote: > > So please, in summary: > > - don't think this is some new type of thing, it's an old issue > > transferred to yet-another-hardware-bus. Not to say this is > > not important, just please look at the work that others have > > done in the past to help mitigate and solve this (reading the > > Wireless USB spec should help you out here too, as they > > detailed all of this.) > > - do copy what USB did, by moving that logic into the driver > > core so that all busses who want to take advantage of this > > type of functionality, easily can do so. > > Understood, will keep that in mind. I may first present a "PCI > subsystem only" draft just to get a feel for it, since that is more > familiar to me and also already has some bits and pieces we need for > this. Why? Do it right the first time. To waste reviewer's time on something that you know you have to throw away and do it "correctly" again, is not very nice. I know I would put you on the bottom of my "patches to review" list if you did that to me :) thanks, greg k-h