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] [day] [month] [year] [list]
Message-ID: <20101216121115.GA9212@rhlx01.hs-esslingen.de>
Date:	Thu, 16 Dec 2010 13:11:15 +0100
From:	Andreas Mohr <andi@...as.de>
To:	Luben Tuikov <ltuikov@...oo.com>
Cc:	Ben Gamari <bgamari@...il.com>, Andreas Mohr <andi@...as.de>,
	Matthew Dharm <mdharm-kernel@...-eyed-alien.net>,
	Alan Cox <alan@...rguk.ukuu.org.uk>, Greg KH <greg@...ah.com>,
	linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org
Subject: Re: [PATCH] [USB] UASP: USB Attached SCSI (UAS) protocol driver

On Thu, Dec 16, 2010 at 01:46:50AM -0800, Luben Tuikov wrote:
> Andreas, the way you've cut out the quote above, it seems that you're replying to something I've written, when in fact you're replying to Ben Gamari.

Indeed, I had already realized that; that was a victim of me
_manually_ replying to external archive content in the case of LKML
(while preserving proper In-Reply-To ID).

> Hmm... Interesting and insightful stuff. So who are those people that can rewrite whole drivers and get theirs in and the old ones out?

<rhetorical question> :-P

I....
would like to say that I'm not really certain about this ;)

> Within the last two months, I've submitted more patches to uasp.c (4-5) than the original author to uas.c (none). As well as I've submitted patches to uas.c itself (three, first two accepted, third rejected since it changed 86% of the uas.c code), lsusb, sd.c, block/blk-tag.c, etc.

"two months". So it's probably a longer time than what I thought ("weeks"),
which probably is a large part of the reason why it got rejected
outright without its fair share of chance of review,
within the current kernel release interval.

Still, it's then not entirely PC if some people - admittedly people
other than the ones whose actual business it is/was to reject drivers :)) -
then claim that the reason the driver got rejected is firm "policy"
to always reject conflicting drivers.

> Also, uasp.c is a protocol driver.  The protocol will change a bit but not by that much.  When this happens I'll submit new patches to update it, unless someone submits them before that. Even if no patches are submitted to support latter version of the protocol, UAS devices will be backward compatible.
> 
> In effect, this driver doesn't warrant much maintenance by virtue of its nature, but support is there if need be.

*noted*

> > . for some certain reason, it's had "more testing", its
> > situation is "better", ...
> 
> "more testing" -- do you mean uasp.c or uas.c?  If you have a UAS device, try both drivers (do I/O) and see for yourself. uas.c also doesn't support the UAS protocol by definition as it doesn't support TMF and other features present in uasp.c.

Since I indicated this compiled list to be about the "original" submission, it's hopefully obvious.

> uasp.c wouldn't even make it in the kernel alongside uas.c, to give people a choice at least. (and we've heard the excuse for that one before, while there had been two drivers for the same device in the kernel before)

The situation of two drivers in direct conflict can get messy indeed
(especially if people don't know which they are using),
thus I can easily understand that.


> In the immediate future distros may include uasp.c since it provides UAS support. Independent Linux vendors may do the same for the same reason. HDD/ASIC manufacturers may use uasp.c to test their UAS devices (an alternative to the Windows tools).

And that's one thing that I'm worrying about.

Let's say one does the "proper", "good" way to achieve driver
improvements:
have the earlier submission get into released kernels
and then submit patches to it in (let's say) third-steps
to have it get to what a driver with combined
features/functionality/stability would provide.

This would mean to have an original driver implementation in kernels,
which would not last long, get updated significantly ("third-steps" above),
then re-released until we ultimately hit the full combined and
full-featured driver in further kernel releases.

Depending on how important API / user space stability/architecture
effects may become, we could IMNSUTVHO see a situation where it can get
moderately problematic on which distribution / version is using which
driver development version.

All this as opposed to doing a (admittedly not really painless) emergency-yank now
and cleanly releasing with UASP as the _first_ driver version (which probably
is much less likely to change drastically) to ever hit a kernel release.

> If you have a UAS device and would like to play with it, uasp.c is available on github: http://marc.info/?t=129227496000002&r=1&w=2

Given current mass-market unavailability of hardware (as indicated in
the discussion): sorry, nope.

Andreas Mohr
--
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