WSL2-Linux-Kernel/drivers/input/tablet
Soumya Negi b3d80fd27a Input: pegasus-notetaker - check pipe type when probing
Fix WARNING in pegasus_open/usb_submit_urb
Syzbot bug: https://syzkaller.appspot.com/bug?id=bbc107584dcf3262253ce93183e51f3612aaeb13

Warning raised because pegasus_driver submits transfer request for
bogus URB (pipe type does not match endpoint type). Add sanity check at
probe time for pipe value extracted from endpoint descriptor. Probe
will fail if sanity check fails.

Reported-and-tested-by: syzbot+04ee0cb4caccaed12d78@syzkaller.appspotmail.com
Signed-off-by: Soumya Negi <soumya.negi97@gmail.com>
Link: https://lore.kernel.org/r/20230404074145.11523-1-soumya.negi97@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2023-04-09 19:19:14 -07:00
..
Kconfig Input: gtco - remove driver 2020-12-09 17:47:36 -08:00
Makefile Input: gtco - remove driver 2020-12-09 17:47:36 -08:00
acecad.c input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
aiptek.c Input: aiptek - switch to using dev_groups for driver-specific attributes 2022-09-03 12:31:18 -07:00
hanwang.c input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
kbtab.c Input: kbtab - sanity check for endpoint type 2019-08-01 10:55:21 -07:00
pegasus_notetaker.c Input: pegasus-notetaker - check pipe type when probing 2023-04-09 19:19:14 -07:00
wacom_serial4.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00