Commit 690f3e94 authored by Soumya Negi's avatar Soumya Negi Committed by Treehugger Robot
Browse files

UPSTREAM: Input: pegasus-notetaker - check pipe type when probing

commit b3d80fd2 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: default avatar <syzbot+04ee0cb4caccaed12d78@syzkaller.appspotmail.com>
Change-Id: Iedb606676db9329b44bc530edf017c80f4fa4263
Signed-off-by: default avatarSoumya Negi <soumya.negi97@gmail.com>
Link: https://lore.kernel.org/r/20230404074145.11523-1-soumya.negi97@gmail.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 342c1db4)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 6bf110bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment