lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 23 Mar 2011 11:38:08 -0400 (EDT)
From:	Nicolas Pitre <nicolas.pitre@...aro.org>
To:	Greg KH <greg@...ah.com>
cc:	Mark Brown <broonie@...nsource.wolfsonmicro.com>,
	Alan Cox <alan@...rguk.ukuu.org.uk>,
	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	andy.green@...aro.org,
	Jaswinder Singh <jaswinder.singh@...aro.org>,
	Linux USB list <linux-usb@...r.kernel.org>,
	lkml <linux-kernel@...r.kernel.org>, arnd@...db.de,
	roger.quadros@...ia.com, grant.likely@...retlab.ca
Subject: Re: RFC: Platform data for onboard USB assets

On Wed, 23 Mar 2011, Greg KH wrote:

> On Wed, Mar 23, 2011 at 10:53:35AM +0000, Mark Brown wrote:
> > In the specific case of MACs and device names for network adaptors we
> > have userspace solutions which are obscuring the discussion but there
> > are other things which get configured this way which one would usually
> > expect to be handled in kernel.
> 
> No, this isn't obsucuring the discussion, it's exactly the point here.
> 
> I asked for concrete examples of a need for this type of thing (i.e.
> platform data on USB devices), and this was the only need cited.  I
> then pointed out that this is correctly solved in userspace, as it has
> for other devices like this, and that it's not a valid example of this
> need.

It was also pointed out that, unlike those examples for which the user 
space solution has been developed to deal with other devices not exactly 
like this, that in this case determining the specific instance of the 
device that require a quirk is extremely cumbersome, hackish, fragile, 
and way more ugly and complex to maintain than some in-kernel solution 
where the actual knowledge of the specific board and device instance is 
obvious.  Again we're not after some particular customization for this 
particular board, but rather after a way to make the kernel behavior 
uniform across similar platforms.  From that point people are still free 
to use udev to apply customizations over the kernel default as they see 
fit.  It is that kernel default that we want to get.

> So again, this problem, for this device, has been solved in userspace
> without any kernel changes needed.

No it has not.  We are not going to convince every distributions to 
start accumulating complex and fragile user space hacks into their udev 
rules which would be justifiably seen as unneeded cruft for exceptional 
cases when the kernel can make things look regular and uniform to user 
space with much less code and infrastructure.  And so far it seems that 
everyone else agrees with dealing with such issues in the kernel, while 
the actual implementation is still debated.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ