Re: [PATCH] HID: core: prevent out-of-bound readings

From: Jiri Kosina
Date: Tue Jan 19 2016 - 08:15:38 EST


On Tue, 19 Jan 2016, Benjamin Tissoires wrote:

> 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@xxxxxxxxxx>

Applied to for-4.5/upstream-fixes. Thanks,

--
Jiri Kosina
SUSE Labs