<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/linux/hid.h, branch linux-2.6.32.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.32.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.32.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-05-19T05:53:29Z</updated>
<entry>
<title>HID: provide a helper for validating hid reports</title>
<updated>2014-05-19T05:53:29Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2013-09-11T19:56:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=70630fa3b7148ee07828587fedbf0ad3f895c8e8'/>
<id>urn:sha1:70630fa3b7148ee07828587fedbf0ad3f895c8e8</id>
<content type='text'>
commit 331415ff16a12147d57d5c953f3a961b7ede348b upstream

Many drivers need to validate the characteristics of their HID report
during initialization to avoid misusing the reports. This adds a common
helper to perform validation of the report exisitng, the field existing,
and the expected number of values within the field.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Cc: stable@vger.kernel.org
Reviewed-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;

[jmm: backported to 2.6.32]
[wt: dev_err() in 2.6.32 instead of hid_err()]
Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
</content>
</entry>
<entry>
<title>HID: validate HID report id size</title>
<updated>2014-05-19T05:53:27Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2013-08-28T20:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dc4108776e19ac3f653c288138b1f23da655eb61'/>
<id>urn:sha1:dc4108776e19ac3f653c288138b1f23da655eb61</id>
<content type='text'>
commit 43622021d2e2b82ea03d883926605bdd0525e1d1 upstream

The "Report ID" field of a HID report is used to build indexes of
reports. The kernel's index of these is limited to 256 entries, so any
malicious device that sets a Report ID greater than 255 will trigger
memory corruption on the host:

[ 1347.156239] BUG: unable to handle kernel paging request at ffff88094958a878
[ 1347.156261] IP: [&lt;ffffffff813e4da0&gt;] hid_register_report+0x2a/0x8b

CVE-2013-2888

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Cc: stable@kernel.org
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
[jmm: backport to 2.6.32]
Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
</content>
</entry>
<entry>
<title>HID: fixup quirk for NCR devices</title>
<updated>2010-01-28T23:01:20Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2009-11-05T13:08:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=001252f8ea9e1ce2e376d515d410c23d932b5a31'/>
<id>urn:sha1:001252f8ea9e1ce2e376d515d410c23d932b5a31</id>
<content type='text'>
commit 5b915d9e6dc3d22fedde91dfef1cb1a8fa9a1870 upstream.

NCR devices are terminally broken by design -- they claim themselves to contain
proper input applications in their HID report descriptor, but behave very badly
if treated in standard way.

According to NCR developers, the devices get confused when queried for reports
in a standard way, rendering them unusable.

NCR is shipping application called "RPSL" that can be used to drive these
devices through hiddev, under the assumption that in-kernel driver doesn't
perform initial report query.
If it does, neither in-kernel nor hiddev-based driver can operate with these
devices any more.

Introduce a quirk that skips the report query for all NCR devices. The previous
NOGET quirk was wrong and had been introduced because I misunderstood the nature
of brokenness of these devices.

Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>HID: consolidate connect and disconnect into core code</title>
<updated>2009-09-17T13:15:11Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2009-09-15T14:27:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c4c259bcc27c4242b012106afdba183622b1735f'/>
<id>urn:sha1:c4c259bcc27c4242b012106afdba183622b1735f</id>
<content type='text'>
HID core registers input, hidraw and hiddev devices, but leaves
unregistering it up to the individual driver, which is not really nice.
Let's move all the logic to the core.

Reported-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Reported-by: Brian Rogers &lt;brian@xyzw.org&gt;
Acked-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>Merge branches 'upstream', 'upstream-fixes' and 'debugfs' into for-linus</title>
<updated>2009-09-13T18:09:41Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2009-09-13T18:09:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8123e8f7c89a07cb22279b15bf47cdee0205d4a1'/>
<id>urn:sha1:8123e8f7c89a07cb22279b15bf47cdee0205d4a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>HID: use debugfs for events/reports dumping</title>
<updated>2009-06-12T13:20:57Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2009-06-12T13:20:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd667ce24796700e1a0e6e7528efc61c96ff832e'/>
<id>urn:sha1:cd667ce24796700e1a0e6e7528efc61c96ff832e</id>
<content type='text'>
This is a followup patch to the one implemeting rdesc representation in debugfs
rather than being dependent on compile-time CONFIG_HID_DEBUG setting.

The API of the appropriate formatting functions is slightly modified -- if
they are passed seq_file pointer, the one-shot output for 'rdesc' file mode
is used, and therefore the message is formatted into the corresponding seq_file
immediately.

Otherwise the called function allocated a new buffer, formats the text into the
buffer and returns the pointer to it, so that it can be queued into the ring-buffer
of the processess blocked waiting on input on 'events' file in debugfs.

'debug' parameter to the 'hid' module is now used solely for the prupose of inetrnal
driver state debugging (parser, transport, etc).

Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: use debugfs for report dumping descriptor</title>
<updated>2009-06-12T13:20:55Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2009-06-12T13:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a635f9dd83f3382577f4544a96df12356e951a40'/>
<id>urn:sha1:a635f9dd83f3382577f4544a96df12356e951a40</id>
<content type='text'>
It is a little bit inconvenient for people who have some non-standard
HID hardware (usually violating the HID specification) to have to
recompile kernel with CONFIG_HID_DEBUG to be able to see kernel's perspective
of the HID report descriptor and observe the parsed events. Plus the messages
are then mixed up inconveniently with the rest of the dmesg stuff.

This patch implements /sys/kernel/debug/hid/&lt;device&gt;/rdesc file, which
represents the kernel's view of report descriptor (both the raw report
descriptor data and parsed contents).

With all the device-specific debug data being available through debugfs, there
is no need for keeping CONFIG_HID_DEBUG, as the 'debug' parameter to the
hid module will now only output only driver-specific debugging options, which has
absolutely minimal memory footprint, just a few error messages and one global
flag (hid_debug).

We use the current set of output formatting functions. The ones that need to be
used both for one-shot rdesc seq_file and also for continuous flow of data
(individual reports, as being sent by the device) distinguish according to the
passed seq_file parameter, and if it is NULL, it still output to kernel ringbuffer,
otherwise the corresponding seq_file is used for output.

The format of the output is preserved.

Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: add new multitouch and digitizer contants</title>
<updated>2009-05-20T13:48:35Z</updated>
<author>
<name>Stephane Chatty</name>
</author>
<published>2009-05-20T13:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=89f536ccfa8b370ff4d054f4061858ca9322c25a'/>
<id>urn:sha1:89f536ccfa8b370ff4d054f4061858ca9322c25a</id>
<content type='text'>
Added constants to hid.h for all digitizer usages (including the new multitouch
ones that are not yet in the official USB spec but are being pushed by Microsft
as described in their paper "Digitizer Drivers for Windows Touch and Pen-Based
Computers"). Updated hid-debug.c to support the new MT input constants such as
ABS_MT_POSITION_X.

Signed-off-by: Stephane Chatty &lt;chatty@enac.fr&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>Merge branch 'autosuspend' into for-next</title>
<updated>2009-03-30T13:14:53Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2009-03-30T13:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=621de593081524da2f0f7b060f5951b4155eb4a2'/>
<id>urn:sha1:621de593081524da2f0f7b060f5951b4155eb4a2</id>
<content type='text'>
Conflicts:

	drivers/hid/hid-core.c
</content>
</entry>
<entry>
<title>HID: remove compat stuff</title>
<updated>2009-03-30T13:12:54Z</updated>
<author>
<name>Jiri Slaby</name>
</author>
<published>2009-03-18T08:13:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=afa5eb7c68689ced4284f01c96feed44a2d0a127'/>
<id>urn:sha1:afa5eb7c68689ced4284f01c96feed44a2d0a127</id>
<content type='text'>
This removal was scheduled and there is no problem with later
distros to adapt for the new bus, thanks to aliases.

module-init-tools map files are deprecated nowadays, so that
the patch which introduced hid ones into the m-i-t won't be
accepted and hence there is no reason for leaving compat stuff in.

Signed-off-by: Jiri Slaby &lt;jirislaby@gmail.com&gt;
Cc: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
