WSL2-Linux-Kernel/drivers/input
Tetsuo Handa 95f73d01f5 Input: MT - limit max slots
commit 99d3bf5f7377d42f8be60a6b9cb60fb0be34dceb upstream.

syzbot is reporting too large allocation at input_mt_init_slots(), for
num_slots is supplied from userspace using ioctl(UI_DEV_CREATE).

Since nobody knows possible max slots, this patch chose 1024.

Reported-by: syzbot <syzbot+0122fa359a69694395d5@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=0122fa359a69694395d5
Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: George Kennedy <george.kennedy@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-04 13:23:37 +02:00
..
gameport
joystick
keyboard Input: qt1050 - handle CHIP_ID reading error 2024-08-19 05:45:05 +02:00
misc Input: pm8xxx-vibrator - correct VIB_MAX_LEVELS calculation 2024-06-16 13:39:42 +02:00
mouse Input: elan_i2c - do not leave interrupt disabled on suspend failure 2024-08-19 05:45:05 +02:00
rmi4
serio Input: i8042 - add Ayaneo Kun to i8042 quirk table 2024-07-27 10:46:11 +02:00
tablet
touchscreen Input: silead - Always support 10 fingers 2024-07-27 10:46:08 +02:00
Kconfig
Makefile
apm-power.c
evbug.c
evdev.c
ff-core.c Input: ff-core - prefer struct_size over open coded arithmetic 2024-07-18 13:07:28 +02:00
ff-memless.c
input-compat.c
input-compat.h
input-leds.c
input-mt.c Input: MT - limit max slots 2024-09-04 13:23:37 +02:00
input-poller.c
input-poller.h
input.c Input: try trimming too long modalias strings 2024-07-05 09:14:15 +02:00
joydev.c
matrix-keymap.c
mousedev.c
sparse-keymap.c
touchscreen.c