<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hid/hid-core.c, branch linux-5.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-06-30T07:03:51Z</updated>
<entry>
<title>Merge branch 'for-5.14/core' into for-linus</title>
<updated>2021-06-30T07:03:51Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2021-06-30T07:03:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd73788ce6a580f2bd353e0f364d31b6c16dcd12'/>
<id>urn:sha1:fd73788ce6a580f2bd353e0f364d31b6c16dcd12</id>
<content type='text'>
- device unbinding locking fix from Dmitry Torokhov
- support for programmable buttons (mapping to KEY_MACRO# event codes)
  from Thomas Weißschuh
- various other small fixes and code style improvements
</content>
</entry>
<entry>
<title>HID: core: Remove extraneous empty line before EXPORT_SYMBOL_GPL(hid_check_keys_pressed)</title>
<updated>2021-05-27T13:40:34Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2021-05-05T21:39:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e62b91cd8a8d4a18955802b852cac86cd72f79b1'/>
<id>urn:sha1:e62b91cd8a8d4a18955802b852cac86cd72f79b1</id>
<content type='text'>
Normally the EXPORT_SYMBOL of a function immediately follows the
declaration of the function and all the other functions in hid-core.c
follow this pattern, drop the extraneous empty line before the
EXPORT_SYMBOL_GPL(hid_check_keys_pressed); line.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: Add BUS_VIRTUAL to hid_connect logging</title>
<updated>2021-05-05T13:09:09Z</updated>
<author>
<name>Mark Bolhuis</name>
</author>
<published>2021-05-03T16:39:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48e33befe61a7d407753c53d1a06fc8d6b5dab80'/>
<id>urn:sha1:48e33befe61a7d407753c53d1a06fc8d6b5dab80</id>
<content type='text'>
Add BUS_VIRTUAL to hid_connect logging since it's a valid hid bus type and it
should not print &lt;UNKNOWN&gt;

Signed-off-by: Mark Bolhuis &lt;mark@bolhuis.dev&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: do not use down_interruptible() when unbinding devices</title>
<updated>2021-05-05T12:24:56Z</updated>
<author>
<name>Dmitry Torokhov</name>
</author>
<published>2021-03-20T00:27:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f2145f8dc566c4f3b5a8deb58dcd12bed4e20194'/>
<id>urn:sha1:f2145f8dc566c4f3b5a8deb58dcd12bed4e20194</id>
<content type='text'>
Action of unbinding driver from a device is not cancellable and should not
fail, and driver core does not pay attention to the result of "remove"
method, therefore using down_interruptible() in hid_device_remove() does
not make sense.

Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-core: Fix incorrect function name in header</title>
<updated>2021-04-07T16:46:20Z</updated>
<author>
<name>Lee Jones</name>
</author>
<published>2021-03-26T14:34:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd2bb7b73e0bc395f01196e4b9c4b20f4a723750'/>
<id>urn:sha1:cd2bb7b73e0bc395f01196e4b9c4b20f4a723750</id>
<content type='text'>
Fixes the following W=1 kernel build warning(s):

 drivers/hid/hid-core.c:2142: warning: expecting prototype for store_new_id(). Prototype was for new_id_store() instead

Cc: Jiri Kosina &lt;jikos@kernel.org&gt;
Cc: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Cc: Vojtech Pavlik &lt;vojtech@suse.cz&gt;
Cc: Michael Haboustak &lt;mike-@cinci.rr.com&gt;
Cc: linux-input@vger.kernel.org
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
Signed-off-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
</content>
</entry>
<entry>
<title>HID: make arrays usage and value to be the same</title>
<updated>2021-01-18T08:09:57Z</updated>
<author>
<name>Will McVicker</name>
</author>
<published>2020-12-05T00:48:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed9be64eefe26d7d8b0b5b9fa3ffdf425d87a01f'/>
<id>urn:sha1:ed9be64eefe26d7d8b0b5b9fa3ffdf425d87a01f</id>
<content type='text'>
The HID subsystem allows an "HID report field" to have a different
number of "values" and "usages" when it is allocated. When a field
struct is created, the size of the usage array is guaranteed to be at
least as large as the values array, but it may be larger. This leads to
a potential out-of-bounds write in
__hidinput_change_resolution_multipliers() and an out-of-bounds read in
hidinput_count_leds().

To fix this, let's make sure that both the usage and value arrays are
the same size.

Cc: stable@vger.kernel.org
Signed-off-by: Will McVicker &lt;willmcvicker@google.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: core: detect and skip invalid inputs to snto32()</title>
<updated>2021-01-08T13:50:40Z</updated>
<author>
<name>Randy Dunlap</name>
</author>
<published>2020-12-17T01:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a0312af1f94d13800e63a7d0a66e563582e39aec'/>
<id>urn:sha1:a0312af1f94d13800e63a7d0a66e563582e39aec</id>
<content type='text'>
Prevent invalid (0, 0) inputs to hid-core's snto32() function.

Maybe it is just the dummy device here that is causing this, but
there are hundreds of calls to snto32(0, 0). Having n (bits count)
of 0 is causing the current UBSAN trap with a shift value of
0xffffffff (-1, or n - 1 in this function).

Either of the value to shift being 0 or the bits count being 0 can be
handled by just returning 0 to the caller, avoiding the following
complex shift + OR operations:

	return value &amp; (1 &lt;&lt; (n - 1)) ? value | (~0U &lt;&lt; n) : value;

Fixes: dde5845a529f ("[PATCH] Generic HID layer - code split")
Signed-off-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Reported-by: syzbot+1e911ad71dd4ea72e04a@syzkaller.appspotmail.com
Cc: Jiri Kosina &lt;jikos@kernel.org&gt;
Cc: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Cc: linux-input@vger.kernel.org
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-5.9/upstream-fixes' into for-linus</title>
<updated>2020-10-15T18:41:43Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2020-10-15T18:41:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b14b066796d0e8bd05f200f30cb4222f8c0f9f1'/>
<id>urn:sha1:9b14b066796d0e8bd05f200f30cb4222f8c0f9f1</id>
<content type='text'>
- "heartbeat" report fix for several Wacom devices
- Lenovo X1 Tablet support improvements
- new device IDs
- bounds checking fix in hid-roccat
- stylus battery reporting fix
</content>
</entry>
<entry>
<title>HID: add vivaldi HID driver</title>
<updated>2020-09-30T20:44:26Z</updated>
<author>
<name>Sean O'Brien</name>
</author>
<published>2020-09-09T22:03:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14c9c014babedc6098bf4cd83c622997867bc0df'/>
<id>urn:sha1:14c9c014babedc6098bf4cd83c622997867bc0df</id>
<content type='text'>
Add vivaldi HID driver. This driver allows us to read and report the top
row layout of keyboards which provide a vendor-defined (Google) HID
usage.

Signed-off-by: Sean O'Brien &lt;seobrien@chromium.org&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: core: fix kerneldoc warnings in hid-core.c</title>
<updated>2020-09-23T11:10:45Z</updated>
<author>
<name>Xiaofei Tan</name>
</author>
<published>2020-09-22T12:00:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f94e9c82a86ac1c624ac7ebf456515a07c10851'/>
<id>urn:sha1:5f94e9c82a86ac1c624ac7ebf456515a07c10851</id>
<content type='text'>
Fix following warnings caused by mismatch bewteen function parameters
and comments.
drivers/hid/hid-core.c:931: warning: Function parameter or member 'hid' not described in 'hid_parse_report'
drivers/hid/hid-core.c:931: warning: Excess function parameter 'device' description in 'hid_parse_report'
drivers/hid/hid-core.c:961: warning: Function parameter or member 'hid' not described in 'hid_validate_values'
drivers/hid/hid-core.c:961: warning: Excess function parameter 'device' description in 'hid_validate_values'
drivers/hid/hid-core.c:1452: warning: Function parameter or member 'report' not described in 'hid_match_report'
drivers/hid/hid-core.c:1452: warning: Excess function parameter 'report_type' description in 'hid_match_report'
drivers/hid/hid-core.c:2132: warning: Function parameter or member 'drv' not described in 'new_id_store'
drivers/hid/hid-core.c:2132: warning: Excess function parameter 'driver' description in 'new_id_store'

Signed-off-by: Xiaofei Tan &lt;tanxiaofei@huawei.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
