Re: [PATCH] Input: Check sanity of pipe in pegasus_probe()

From: Dmitry Torokhov
Date: Sun Apr 09 2023 - 22:24:50 EST


On Tue, Apr 04, 2023 at 12:41:45AM -0700, Soumya Negi wrote:
> 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@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Soumya Negi <soumya.negi97@xxxxxxxxx>

Applied, thank you.

--
Dmitry