<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hid/hid-core.c, branch linux-3.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-04-28T18:02:51Z</updated>
<entry>
<title>HID: Fix slab-out-of-bounds read in hid_field_extract</title>
<updated>2020-04-28T18:02:51Z</updated>
<author>
<name>Alan Stern</name>
</author>
<published>2019-12-10T21:26:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5475bdfed8c45c8323f17059589b44ac18caee29'/>
<id>urn:sha1:5475bdfed8c45c8323f17059589b44ac18caee29</id>
<content type='text'>
commit 8ec321e96e056de84022c032ffea253431a83c3c upstream.

The syzbot fuzzer found a slab-out-of-bounds bug in the HID report
handler.  The bug was caused by a report descriptor which included a
field with size 12 bits and count 4899, for a total size of 7349
bytes.

The usbhid driver uses at most a single-page 4-KB buffer for reports.
In the test there wasn't any problem about overflowing the buffer,
since only one byte was received from the device.  Rather, the bug
occurred when the HID core tried to extract the data from the report
fields, which caused it to try reading data beyond the end of the
allocated buffer.

This patch fixes the problem by rejecting any report whose total
length exceeds the HID_MAX_BUFFER_SIZE limit (minus one byte to allow
for a possible report index).  In theory a device could have a report
longer than that, but if there was such a thing we wouldn't handle it
correctly anyway.

Reported-and-tested-by: syzbot+09ef48aa58261464b621@syzkaller.appspotmail.com
Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: sony: Support DS4 dongle</title>
<updated>2020-01-11T02:04:40Z</updated>
<author>
<name>Roderick Colenbrander</name>
</author>
<published>2016-11-23T22:07:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b334b21e3bbf17c00ed226c5521ef7e5fbed27e2'/>
<id>urn:sha1:b334b21e3bbf17c00ed226c5521ef7e5fbed27e2</id>
<content type='text'>
commit de66a1a04c25f2560a8dca7a95e2a150b0d5e17e upstream.

Add support for USB based DS4 dongle device, which allows connecting
a DS4 through Bluetooth, but hides Bluetooth from the host system.

Signed-off-by: Roderick Colenbrander &lt;roderick.colenbrander@sony.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: sony: Update device ids</title>
<updated>2020-01-11T02:04:40Z</updated>
<author>
<name>Roderick Colenbrander</name>
</author>
<published>2016-10-07T19:39:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8010c0f5d45992601e8b19995869d955b6f1411e'/>
<id>urn:sha1:8010c0f5d45992601e8b19995869d955b6f1411e</id>
<content type='text'>
commit cf1015d65d7c8a5504a4c03afb60fb86bff0f032 upstream.

Support additional DS4 model.

Signed-off-by: Roderick Colenbrander &lt;roderick.colenbrander@sony.com&gt;
Reviewed-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: fix error message in hid_open_report()</title>
<updated>2019-12-19T15:57:52Z</updated>
<author>
<name>Michał Mirosław</name>
</author>
<published>2019-08-23T19:15:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1720c6f9aefcab68a4e7c058db44127a646ca9bf'/>
<id>urn:sha1:1720c6f9aefcab68a4e7c058db44127a646ca9bf</id>
<content type='text'>
commit b3a81c777dcb093020680490ab970d85e2f6f04f upstream.

On HID report descriptor parsing error the code displays bogus
pointer instead of error offset (subtracts start=NULL from end).
Make the message more useful by displaying correct error offset
and include total buffer size for reference.

This was carried over from ancient times - "Fixed" commit just
promoted the message from DEBUG to ERROR.

Fixes: 8c3d52fc393b ("HID: make parser more verbose about parsing errors by default")
Signed-off-by: Michał Mirosław &lt;mirq-linux@rere.qmqm.pl&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: core: Fix size as type u32</title>
<updated>2018-10-21T07:44:48Z</updated>
<author>
<name>Aaron Ma</name>
</author>
<published>2018-01-08T02:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffd2e9037f651b13bea1b32dcf86e75718bca10b'/>
<id>urn:sha1:ffd2e9037f651b13bea1b32dcf86e75718bca10b</id>
<content type='text'>
commit 6de0b13cc0b4ba10e98a9263d7a83b940720b77a upstream.

When size is negative, calling memset will make segment fault.
Declare the size as type u32 to keep memset safe.

size in struct hid_report is unsigned, fix return type of
hid_report_len to u32.

Signed-off-by: Aaron Ma &lt;aaron.ma@canonical.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
[bwh: Backported to 3.16: adjust filename, context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>usb: ldusb: add PIDs for new CASSY devices supported by this driver</title>
<updated>2018-06-16T21:22:16Z</updated>
<author>
<name>Karsten Koop</name>
</author>
<published>2018-02-09T09:12:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bc3d708a3bd873b4edfb4b82af067954b63067d7'/>
<id>urn:sha1:bc3d708a3bd873b4edfb4b82af067954b63067d7</id>
<content type='text'>
commit 52ad2bd8918158266fc88a05f95429b56b6a33c5 upstream.

This patch adds support for new CASSY devices to the ldusb driver. The
PIDs are also added to the ignore list in hid-quirks.

Signed-off-by: Karsten Koop &lt;kkoop@ld-didactic.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
[bwh: Backported to 3.16: adjust filename]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: microsoft: Add Surface 4 type cover pro 4 not JP versions</title>
<updated>2017-09-15T17:30:02Z</updated>
<author>
<name>Daniel Keller</name>
</author>
<published>2016-11-22T15:24:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ad80eb4df540ecbf37954ae8dcf1aa588045cd11'/>
<id>urn:sha1:ad80eb4df540ecbf37954ae8dcf1aa588045cd11</id>
<content type='text'>
commit 2ae3986b84e9d325bc92a1efbcf0c6b0f5016b35 upstream.

Adding support for not JP versions of the Microsoft Surface 4 Type Cover Pro

[jkosina@suse.cz: The identical patch has been sent by Jeff Farthing, so I am
 including his signoff as well]

Signed-off-by: Jeff Farthing &lt;jeff@jfarthing.com&gt;
Signed-off-by: Daniel Keller &lt;daniel.keller@gcd.de&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: microsoft: Add Surface 4 type cover pro 4 (JP)</title>
<updated>2017-09-15T17:30:02Z</updated>
<author>
<name>Yuta Kobayashi</name>
</author>
<published>2016-08-12T07:49:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e93563e7dcba1bba161301b3b70e89634278be3'/>
<id>urn:sha1:5e93563e7dcba1bba161301b3b70e89634278be3</id>
<content type='text'>
commit b490a8537df60d449199e162417da74ee9262515 upstream.

Adding support for the Microsoft Surface 4 Type Cover Pro (JP).

Signed-off-by: Yuta Kobayashi &lt;alu.ula@outlook.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: Add new Microsoft Type Cover 3 product ID</title>
<updated>2017-09-15T17:30:00Z</updated>
<author>
<name>Donavan Lance</name>
</author>
<published>2015-09-15T16:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3139070255f49ba37dad2e199345d1bf4de5c24c'/>
<id>urn:sha1:3139070255f49ba37dad2e199345d1bf4de5c24c</id>
<content type='text'>
commit c6956eb70e2549a3c2fa6ee525e02776d293caf4 upstream.

Adds support for Microsoft Type Cover 3 with 0x07e2 product ID.

Signed-off-by: Donavan Lance &lt;shvr@fedoraproject.org&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>HID: microsoft: Add Surface 3 type cover</title>
<updated>2017-09-15T17:29:59Z</updated>
<author>
<name>Stephen Just</name>
</author>
<published>2015-07-23T03:11:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0578b233489bd5acdb834529279168d33cb00ae7'/>
<id>urn:sha1:0578b233489bd5acdb834529279168d33cb00ae7</id>
<content type='text'>
commit 0439de75d32c249bd9f5824ffd5e40c4c2109d77 upstream.

Adding support for the Microsoft Surface 3 (non-pro) Type Cover.

The existing definitions and quirks are actually for the Surface
Pro 3 type covers. I've renamed the old constants to reflect that
they belong to the Surface Pro 3, and added a new constant and
matching code for the Surface 3.

Signed-off-by: Stephen Just &lt;stephenjust@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
</feed>
