Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1551237

Re: [PATCH] Allow userspace to request device probing even if defer_all_probes is true

From Matthew Garrett <mjg59@coreos.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Allow userspace to request device probing even if defer_all_probes is true
Date 2017-01-04 21:30 +0100
Message-ID <sW02K-12y-29@gated-at.bofh.it> (permalink)
References <sVGnn-4J3-7@gated-at.bofh.it> <sVQ3n-2IT-9@gated-at.bofh.it> <sVYki-8gW-47@gated-at.bofh.it> <sVZJo-Ez-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jan 4, 2017 at 1:42 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Wed, Jan 04, 2017 at 12:11:49PM -0600, Matthew Garrett wrote:
>> Userspace doesn't know the order that the kernel will use when
>> attempting to bind drivers, so punting binding out to userspace may
>> result in different behaviour.
>
> How can the order in which drivers are bound result in different
> behavior?

If you have two loaded drivers that could bind to the device then the
order you attempt to bind them in will matter.

>> The kernel already has the code to do this, so we should just reuse
>> it.
>
> That's fine, but I don't understand the problem you are trying to solve,
> please explain better.  What am I missing here?

If you plug in a device while defer_all_probes is true, it won't be
bound - that's the point. But if you have a USB keyboard and unplug it
and plug it, you'd then end up with no keyboard. So you want userspace
to be able to make an appropriate policy decision around which devices
should be bound, and you need a mechanism to allow userspace to
trigger that binding.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] Allow userspace to request device probing even if  defer_all_probes is true Kees Cook <keescook@chromium.org> - 2017-01-04 00:10 +0100
  Re: [PATCH] Allow userspace to request device probing even if  defer_all_probes is true Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-01-04 10:30 +0100
    Re: [PATCH] Allow userspace to request device probing even if  defer_all_probes is true Matthew Garrett <mjg59@coreos.com> - 2017-01-04 19:20 +0100
      Re: [PATCH] Allow userspace to request device probing even if  defer_all_probes is true Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-01-04 20:50 +0100
        Re: [PATCH] Allow userspace to request device probing even if  defer_all_probes is true Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-01-04 21:10 +0100
          Re: [PATCH] Allow userspace to request device probing even if  defer_all_probes is true Matthew Garrett <mjg59@coreos.com> - 2017-01-04 21:30 +0100
        Re: [PATCH] Allow userspace to request device probing even if  defer_all_probes is true Matthew Garrett <mjg59@coreos.com> - 2017-01-04 21:30 +0100

csiph-web