diff options
| author | Jiri Kosina <jkosina@suse.com> | 2024-10-29 15:44:35 +0100 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2025-03-05 02:09:10 +0200 |
| commit | cd0c219b3241c8b1eadad0f72de507d2dd4885b6 (patch) | |
| tree | 0ce75dbee456425cbc718ddb261bc3684c0de1e4 /scripts/gdb/linux/utils.py | |
| parent | 1a4922a2c690e9afa75a250011cd4d25410cd9af (diff) | |
UPSTREAM: HID: core: zero-initialize the report buffer
[ Upstream commit 177f25d1292c7e16e1199b39c85480f7f8815552 ]
Since the report buffer is used by all kinds of drivers in various ways, let's
zero-initialize it during allocation to make sure that it can't be ever used
to leak kernel memory via specially-crafted report.
Bug: 380395346
Fixes: 27ce405039bf ("HID: fix data access in implement()")
Reported-by: BenoƮt Sevens <bsevens@google.com>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 9d9f5c75c0c7f31766ec27d90f7a6ac673193191)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I31f64f2745347137bbc415eb35b7fab5761867f3
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions
