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]
Message-ID: <20160725091404.GD19383@mail.corp.redhat.com>
Date:	Mon, 25 Jul 2016 11:14:04 +0200
From:	Benjamin Tissoires <benjamin.tissoires@...hat.com>
To:	Antonio Ospite <ao2@....it>
Cc:	Mikko Perttunen <mikko.perttunen@...si.fi>, jikos@...nel.org,
	linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
	Mikko Perttunen <mperttunen@...dia.com>
Subject: Re: [PATCH] HID: sony: disable descriptor fixup for FutureMax Dance
 Mat

On Jul 21 2016 or thereabouts, Antonio Ospite wrote:
> On Tue, 19 Jul 2016 09:08:27 +0300
> Mikko Perttunen <mikko.perttunen@...si.fi> wrote:
> 
> > On 07/18/16 17:28, Benjamin Tissoires wrote:
> [...]
> > >
> > > Also, I think it would be better to have a check on the existing report
> > > descriptor instead of blindly fixing it. Other drivers make sure they
> > > are fixing the correct region before overriding it, but I think using a
> > > md5sum might be just easier (though that's not required for your patch I
> > > think).
> > 
> > I agree. In fact, the mat used to work back in 3.15 when the driver did 
> > some rudimentary checks before overwriting the descriptor. In any case, 
> > it would be difficult for me to add the checks since the mat is the only 
> > piece of hardware I own that is handled by this driver.
> > 
> 
> The fact that the report gets fixed up unconditionally is from
> commit c607fb8 (HID: sony: Always override the Sixaxis descriptor).
> 
> The rationale behind this change was that compatible devices are
> supposed to send exactly the same _raw_ data as the original ones, so
> overriding the _whole_ descriptor unconditionally should keep them
> working.
> 
> I would be interesting to understand why some (supposedly) compatible
> devices break, maybe they rely on the fact that the PS3 would use the
> original report?

[just speculating]
I would be *really* surprised if the Sony software were to overwrite the
report descriptor of their own sony controllers. My guess is that their
HID stack or their Playstation driver is compatible with the original
report descriptors and so they can handle the differences between
original and weirdo controllers.

> 
> BTW I'd slightly prefer the current way of having a straight path for
> the common case (original and actually compatible devices) and handle
> the exceptions explicitly using quirks, but I am open to changes and I
> can test patches with some original controllers if needed.

Would the v2 of Mikko's patch be OK with you?

Cheers,
Benjamin

> 
> Ciao ciao,
>    Antonio
> 
> -- 
> Antonio Ospite
> http://ao2.it
> 
> A: Because it messes up the order in which people normally read text.
>    See http://en.wikipedia.org/wiki/Posting_style
> Q: Why is top-posting such a bad thing?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ