diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-04-06 10:23:05 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-16 10:06:48 +0200 |
| commit | ca85a2e3dd23790c57e2b6f49de75439108e9ccc (patch) | |
| tree | b329f2b01a58f1f6e9cd1ee88bdeca4a6186d432 /tools/perf/scripts/python | |
| parent | aad8077cb68de7974ddd8487c9a3c4ffdc340744 (diff) | |
Input: leds - fix out of bound access
commit 6bd6ae639683c0b41f46990d5c64ff9fbfa019dc upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
