summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/alps.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2018-04-06 10:23:05 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-04-11 14:52:59 -0700
commit6bd6ae639683c0b41f46990d5c64ff9fbfa019dc (patch)
tree6c6b208922fdf50ddddf3e072048d6e07cb2fa5a /drivers/input/mouse/alps.c
parent839c42273617787318da7baf6151d553108f5e17 (diff)
downloadtalos-obmc-linux-6bd6ae639683c0b41f46990d5c64ff9fbfa019dc.tar.gz
talos-obmc-linux-6bd6ae639683c0b41f46990d5c64ff9fbfa019dc.zip
Input: leds - fix out of bound access
UI_SET_LEDBIT ioctl() causes the following KASAN splat when used with led > LED_CHARGING: [ 1274.663418] BUG: KASAN: slab-out-of-bounds in input_leds_connect+0x611/0x730 [input_leds] [ 1274.663426] Write of size 8 at addr ffff88003377b2c0 by task ckb-next-daemon/5128 This happens because we were writing to the led structure before making sure that it exists. Reported-by: Tasos Sahanidis <tasos@tasossah.com> Tested-by: Tasos Sahanidis <tasos@tasossah.com> Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/alps.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud