summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2016-01-19 12:34:58 +0100
committerMin Chong <mchong@google.com>2016-09-08 16:36:18 +0000
commitd942dd3b7c156b005bf01c33af729ab783182f4c (patch)
treec3ab05cf6ebdba75f8a978add2be5d991a8ff841 /security/selinux/hooks.c
parent9f139d106df7b6a1805b0e4f3b234cedf25d2bbb (diff)
UPSTREAM: HID: core: prevent out-of-bound readings
(cherry picked from commit 50220dead1650609206efe91f0cc116132d59b3f) 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> Change-Id: Iaf25e882a6696884439d7091b5fbb0b350d893d3 Bug: 30951261
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions