Files
linux/drivers/hid
Benjamin Tissoires 5349cdd3b4 HID: core: prevent out-of-bound readings
[ Upstream commit 50220dead1 ]

Plugging a Logitech DJ receiver with KASAN activated raises a bunch of
out-of-bound readings.

The fields are allocated up to MAX_USAGE, meaning that potentially, we do
not have enough fields to fit the incoming values.
Add checks and silence KASAN.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-15 08:27:48 +02:00
..
2015-10-21 13:15:53 +02:00
2013-01-03 10:27:31 +01:00
2014-08-21 10:43:28 -05:00
2015-10-21 13:15:53 +02:00
2016-07-27 09:47:32 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-04-24 16:32:27 +02:00
2013-01-03 10:27:31 +01:00
2015-11-06 21:18:06 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2015-10-21 13:15:53 +02:00
2014-06-27 00:33:44 +02:00
2013-01-03 10:27:31 +01:00
2015-05-07 10:47:53 +02:00
2014-08-21 10:43:28 -05:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00