linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rajat Jain <rajatja@google.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rajat Jain <rajatxjain@gmail.com>,
	"Raj, Ashok" <ashok.raj@intel.com>,
	"Krishnakumar,
	Lalithambika" <lalithambika.krishnakumar@intel.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	linux-pci <linux-pci@vger.kernel.org>,
	Mika Westerberg <mika.westerberg@linux.intel.com>,
	Jean-Philippe Brucker <jean-philippe@linaro.org>,
	Prashant Malani <pmalani@google.com>,
	Benson Leung <bleung@google.com>, Todd Broch <tbroch@google.com>,
	Alex Levin <levinale@google.com>,
	Mattias Nissler <mnissler@google.com>,
	Zubin Mithra <zsm@google.com>,
	Bernie Keany <bernie.keany@intel.com>,
	Aaron Durbin <adurbin@google.com>,
	Diego Rivas <diegorivas@google.com>,
	Duncan Laurie <dlaurie@google.com>,
	Furquan Shaikh <furquan@google.com>,
	Jesse Barnes <jsbarnes@google.com>,
	Christian Kellner <christian@kellner.me>,
	Alex Williamson <alex.williamson@redhat.com>,
	Joerg Roedel <joro@8bytes.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] Restrict the untrusted devices, to bind to only a set of "whitelisted" drivers
Date: Wed, 10 Jun 2020 16:46:37 -0700	[thread overview]
Message-ID: <CACK8Z6G1dKzSCABvu_Sh1NV81GM0fBZ7HXNBY0jGvgj0FkiQRw@mail.gmail.com> (raw)
In-Reply-To: <20200610230119.GA1528268@bjorn-Precision-5520>

On Wed, Jun 10, 2020 at 4:01 PM Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> On Tue, Jun 09, 2020 at 05:30:13PM -0700, Rajat Jain wrote:
> > On Tue, Jun 9, 2020 at 5:04 PM Bjorn Helgaas <helgaas@kernel.org> wrote:
> > > On Tue, Jun 09, 2020 at 04:23:54PM -0700, Rajat Jain wrote:
> > > > Thanks for sending out the summary, I was about to send it out but got lazy.
> > > > ...
>
> > > > The one thing that still needs more thought is how about the
> > > > "pcieport" driver that enumerates the PCI bridges. I'm unsure if it
> > > > needs to be whitelisted for further enumeration downstream. What do
> > > > you think?
> > >
> > > The pcieport driver is required for AER, PCIe native hotplug, PME,
> > > etc., and it cannot be a module, so the whitelist wouldn't apply to
> > > it.
> >
> > Not that I see the need, but slight clarification needed just to make
> > sure I understand it clearly:
> >
> > Since pcieport driver is statically compiled in, AER, pciehp, PME, DPC
> > etc will always be enabled for devices plugged in during boot. But I
> > can still choose to choose to allow or deny for devices added *after
> > boot* using the whitelist, right?
>
> Yes, I think so.  However, if pcieport doesn't claim hot-added devices
> like a dock, I don't think hotplug of PCI things downstream from the
> dock will work, e.g., if there are Thunderbolt switches in a monitor
> or something.

Yes, understood, thanks.

>
> > Also, denying pcieport driver for hot-added PCIe bridges only disables
> > these pcieport services on those bridges, but device enumeration
> > further downstream those bridges is not an issue?
>
> Right.  Devices without pcieport would not be able to report hotplug
> events, so we wouldn't notice hot-adds or -removes involving those
> devices.

Understood.

Thanks,

Rajat

  reply	other threads:[~2020-06-10 23:47 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CACK8Z6F3jE-aE+N7hArV3iye+9c-COwbi3qPkRPxfrCnccnqrw@mail.gmail.com>
2020-06-01 23:25 ` [RFC] Restrict the untrusted devices, to bind to only a set of "whitelisted" drivers Bjorn Helgaas
2020-06-02  5:06   ` Greg Kroah-Hartman
2020-06-03  2:27     ` Rajat Jain
2020-06-03  6:07       ` Greg Kroah-Hartman
2020-06-03 11:51         ` Rajat Jain
2020-06-03 12:16           ` Greg Kroah-Hartman
2020-06-03 12:57             ` Rajat Jain
2020-06-03 13:29               ` Greg Kroah-Hartman
2020-06-04 19:38             ` Rajat Jain
2020-06-05  8:02               ` Greg Kroah-Hartman
2020-06-06  1:08                 ` Rajat Jain
2020-06-07 11:36                   ` Greg Kroah-Hartman
2020-06-08 17:03                     ` Jesse Barnes
2020-06-08 17:50                       ` Greg Kroah-Hartman
2020-06-08 18:29                         ` Jesse Barnes
2020-06-08 18:41                           ` Rajat Jain
2020-06-09  9:54                             ` Greg Kroah-Hartman
2020-06-30 21:46                               ` Pavel Machek
2020-06-09  5:57                           ` Greg Kroah-Hartman
2020-06-30 21:45                       ` Pavel Machek
2020-07-01  6:54                         ` Greg Kroah-Hartman
2020-07-01  8:47                           ` Pavel Machek
2020-07-01 10:57                             ` Greg Kroah-Hartman
2020-07-01 11:08                               ` Pavel Machek
2020-06-09 21:04                     ` Bjorn Helgaas
2020-06-09 23:23                       ` Rajat Jain
2020-06-10  0:04                         ` Bjorn Helgaas
2020-06-10  0:30                           ` Rajat Jain
2020-06-10 20:17                             ` Rajat Jain
2020-06-10 23:09                               ` Bjorn Helgaas
2020-06-10 23:01                             ` Bjorn Helgaas
2020-06-10 23:46                               ` Rajat Jain [this message]
2020-06-10  7:13                         ` Greg Kroah-Hartman
2020-06-10  1:34                       ` Oliver O'Halloran
2020-06-10 19:57                         ` Rajat Jain
2020-06-16  1:24                           ` Rajat Jain
2020-06-10  7:12                       ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACK8Z6G1dKzSCABvu_Sh1NV81GM0fBZ7HXNBY0jGvgj0FkiQRw@mail.gmail.com \
    --to=rajatja@google.com \
    --cc=adurbin@google.com \
    --cc=alex.williamson@redhat.com \
    --cc=ashok.raj@intel.com \
    --cc=bernie.keany@intel.com \
    --cc=bhelgaas@google.com \
    --cc=bleung@google.com \
    --cc=christian@kellner.me \
    --cc=diegorivas@google.com \
    --cc=dlaurie@google.com \
    --cc=furquan@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=helgaas@kernel.org \
    --cc=jean-philippe@linaro.org \
    --cc=joro@8bytes.org \
    --cc=jsbarnes@google.com \
    --cc=lalithambika.krishnakumar@intel.com \
    --cc=levinale@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=mnissler@google.com \
    --cc=pmalani@google.com \
    --cc=rajatxjain@gmail.com \
    --cc=tbroch@google.com \
    --cc=zsm@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).