]> git.dujemihanovic.xyz Git - linux.git/commit
Input: pegasus-notetaker - check pipe type when probing
authorSoumya Negi <soumya.negi97@gmail.com>
Mon, 10 Apr 2023 02:12:04 +0000 (19:12 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Apr 2023 02:19:14 +0000 (19:19 -0700)
commitb3d80fd27a3c2d8715a40cbf876139b56195f162
tree682bb146f4bc7027392460b845822d39adb0e3b3
parentcbedf1a33970c9b825ae75b81fbd3e88e224a418
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>
drivers/input/tablet/pegasus_notetaker.c