diff options
author | Soumya Negi <soumya.negi97@gmail.com> | 2023-04-10 05:12:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-26 15:28:43 +0300 |
commit | 342c1db4fa8c005d96efaf78cc87e3876b55cfe3 (patch) | |
tree | b4f58c9b03145aa72ca5d99dd75a1f04841f7b44 /drivers/fpga/fpga-mgr.c | |
parent | a93c20f5832221c2bf5f80199c4eaebc0ba28e16 (diff) | |
download | linux-342c1db4fa8c005d96efaf78cc87e3876b55cfe3.tar.xz |
Input: pegasus-notetaker - check pipe type when probing
commit b3d80fd27a3c2d8715a40cbf876139b56195f162 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions