Re: [PATCH] HID: debug: check length before copy_to_user()
From: Jiri Kosina
Date: Tue Jul 03 2018 - 05:55:56 EST
On Tue, 3 Jul 2018, Benjamin Tissoires wrote:
> > If our length is greater than the size of the buffer, we
> > overflow the buffer
> >
> > Signed-off-by: Daniel Rosenberg <drosen@xxxxxxxxxx>
> > Cc: stable@xxxxxxxxxxxxxxx
> > ---
>
> Looks good:
> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
Indeed, thanks a lot for fixing this. Now queued, I'll push it for 4.18.
--
Jiri Kosina
SUSE Labs