linux/drivers/input/misc
Dmitry Torokhov 601bbbe051 Input: uinput - fix crash when mixing old and new init style
If user tries to initialize uinput device mixing old and new style
initialization (i.e. using old UI_SET_ABSBIT instead of UI_ABS_SETUP,
we forget to allocate input->absinfo and will crash when trying to send
absolute events:

        ioctl(ui, UI_DEV_SETUP, &us);
        ioctl(ui, UI_SET_PHYS, "Test");

        ioctl(ui, UI_SET_EVBIT, EV_ABS);
        ioctl(ui, UI_SET_ABSBIT, ABS_X);
        ioctl(ui, UI_SET_ABSBIT, ABS_Y);
        ioctl(ui, UI_DEV_CREATE, 0);

Reported-by: Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=191811
Fixes: fbae10db09 ("Input: uinput - rework ABS validation")
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2017-02-01 10:33:11 -08:00
..
88pm80x_onkey.c
88pm860x_onkey.c
Kconfig Input: da9061 - onkey driver 2016-10-26 16:01:16 -07:00
Makefile Input: add generic input driver to read encoded GPIO lines 2016-08-29 20:24:23 -07:00
ab8500-ponkey.c
ad714x-i2c.c
ad714x-spi.c
ad714x.c
ad714x.h
adxl34x-i2c.c Input: adxl34x - make it enumerable in ACPI environment 2017-01-03 12:33:12 -08:00
adxl34x-spi.c
adxl34x.c
adxl34x.h
apanel.c Input: apanel - spelling mistake - "skiping" -> "skipping" 2016-06-23 10:44:01 -07:00
arizona-haptics.c Input: arizona-haptics - Use SoC component pin control functions 2016-12-01 20:19:13 +00:00
ati_remote2.c
atlas_btns.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
atmel_captouch.c
axp20x-pek.c
bfin_rotary.c
bma150.c Input: bma150 - avoid binding to bma180 if IIO bma180 driver present 2016-11-16 16:59:24 -08:00
cm109.c
cma3000_d0x.c
cma3000_d0x.h
cma3000_d0x_i2c.c
cobalt_btns.c
da9052_onkey.c
da9055_onkey.c
da9063_onkey.c Input: da9063 - fix module autoload when registered via OF 2016-10-26 16:48:16 -07:00
dm355evm_keys.c
drv260x.c Input: drv260x - use generic device properties 2016-12-12 14:20:32 -08:00
drv2665.c Input: drv2665 - fix misuse of regmap_update_bits 2016-11-30 09:03:44 -08:00
drv2667.c Input: drv2667 - fix misuse of regmap_update_bits 2016-11-30 09:03:45 -08:00
e3x0-button.c
gp2ap002a00f.c
gpio-beeper.c
gpio_decoder.c Input: add generic input driver to read encoded GPIO lines 2016-08-29 20:24:23 -07:00
gpio_tilt_polled.c
hisi_powerkey.c Input: add powerkey driver for HISI 65xx SoC 2016-06-23 13:45:54 -07:00
hp_sdc_rtc.c
ideapad_slidebar.c
ims-pcu.c
ixp4xx-beeper.c
keyspan_remote.c
kxtj9.c
m68kspkr.c
max8925_onkey.c
max8997_haptic.c
max77693-haptic.c Linux 4.8 2016-10-13 17:25:40 -07:00
mc13783-pwrbutton.c
mma8450.c
mpu3050.c
palmas-pwrbutton.c
pcap_keys.c
pcf8574_keypad.c
pcf50633-input.c
pcspkr.c
pm8xxx-vibrator.c
pm8941-pwrkey.c
pmic8xxx-pwrkey.c
powermate.c
pwm-beeper.c
rb532_button.c
regulator-haptic.c Input: regulator-haptic - fix spelling mistake: "dveice" -> "device" 2016-06-23 10:43:57 -07:00
retu-pwrbutton.c
rotary_encoder.c Input: rotary_encoder - support binary encoding of states 2016-07-27 18:26:10 -07:00
sgi_btns.c
sirfsoc-onkey.c
soc_button_array.c Input: soc_button_array - bail out earlier if gpiod_count is zero 2016-11-25 11:39:50 -08:00
sparcspkr.c
tps65218-pwrbutton.c input: tps65218-pwrbutton: Add platform_device_id table 2016-10-26 10:30:20 +01:00
twl4030-pwrbutton.c
twl4030-vibra.c
twl6040-vibra.c
uinput.c Input: uinput - fix crash when mixing old and new init style 2017-02-01 10:33:11 -08:00
wistron_btns.c
wm831x-on.c
xen-kbdfront.c xen: make use of xenbus_read_unsigned() in xen-kbdfront 2016-11-07 13:55:20 +01:00
yealink.c
yealink.h