linux-stable/drivers/input
Dmitry Torokhov 28edadd147 Input: uinput - fix undefined behavior in uinput_validate_absinfo()
commit d77651a227 upstream.

An integer overflow may arise in uinput_validate_absinfo() if "max - min"
can't be represented by an "int". We should check for overflow before
trying to use the result.

Reported-by: Kyungtae Kim <kt0755@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-31 08:13:45 +01:00
..
gameport License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
joystick Input: xpad - add support for SteelSeries Stratus Duo 2019-01-31 08:13:45 +01:00
keyboard Input: omap-keypad - fix idle configuration to not block SoC idle states 2019-01-13 10:00:57 +01:00
misc Input: uinput - fix undefined behavior in uinput_validate_absinfo() 2019-01-31 08:13:45 +01:00
mouse Input: synaptics - enable SMBus for HP EliteBook 840 G4 2019-01-13 10:01:01 +01:00
rmi4 Input: synaptics-rmi4 - fix axis-swap behavior 2018-08-24 13:08:56 +02:00
serio Input: hyper-v - fix wakeup from suspend-to-idle 2018-12-21 14:13:11 +01:00
tablet License cleanup: add SPDX license identifiers to some files 2017-11-02 10:04:46 -07:00
touchscreen input: rohm_bu21023: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) 2018-09-26 08:38:12 +02:00
apm-power.c
evbug.c
evdev.c input: utilize new cdev_device_add helper function 2017-03-21 06:44:32 +01:00
ff-core.c Input: uinput - avoid FF flush when destroying device 2017-09-21 16:31:22 -07:00
ff-memless.c
input-compat.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
input-compat.h
input-leds.c Input: leds - fix out of bound access 2018-05-09 09:51:51 +02:00
input-mt.c Input: update input_mt_report_pointer_emulation to support hovering 2016-06-01 14:21:10 -07:00
input-polldev.c
input.c Input: do not use WARN() in input_alloc_absinfo() 2018-09-15 09:45:30 +02:00
joydev.c Input: joydev - blacklist ds3/ds4/udraw motion sensors 2017-10-19 16:55:39 -07:00
Kconfig Input: mousedev - stop offering PS/2 to userspace by default 2017-01-31 11:31:49 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matrix-keymap.c Input: matrix-keypad - switch to using generic device properties 2017-01-31 11:31:48 -08:00
mousedev.c Input: mousedev - fix implicit conversion warning 2017-07-25 13:54:31 -07:00
sparse-keymap.c Input: sparse-keymap - send sync event for KE_SW/KE_VSW 2017-11-03 12:47:48 -07:00