Thread (3 messages) 3 messages, 3 authors, 2020-09-01

Re: [PATCH] HID: core: Correctly handle ReportSize being zero

From: Jiri Kosina <jikos@kernel.org>
Date: 2020-09-01 08:14:20
Also in: lkml, stable

On Sat, 29 Aug 2020, Marc Zyngier wrote:
It appears that a ReportSize value of zero is legal, even if a bit
non-sensical. Most of the HID code seems to handle that gracefully,
except when computing the total size in bytes. When fed as input to
memset, this leads to some funky outcomes.

Detect the corner case and correctly compute the size.

Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Thanks Marc; Benjamin will be pushing this patch through his regression 
testing machinery, and if all is good, I'll push it for 5.9-rc still.

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help