summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2019-05-07 12:39:47 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-11 12:24:09 +0200
commitb1782be70e1e281216f58ba283a0e55ad6364aaf (patch)
treec708e24956973e02aec09a93809051c2f07259ce /tools/perf/scripts/python
parentd52c0ffb383f04e4ff62d25fe0537dce953b7f58 (diff)
media: usb: siano: Fix general protection fault in smsusb
commit 31e0456de5be379b10fea0fa94a681057114a96e upstream. The syzkaller USB fuzzer found a general-protection-fault bug in the smsusb part of the Siano DVB driver. The fault occurs during probe because the driver assumes without checking that the device has both IN and OUT endpoints and the IN endpoint is ep1. By slightly rearranging the driver's initialization code, we can make the appropriate checks early on and thus avoid the problem. If the expected endpoints aren't present, the new code safely returns -ENODEV from the probe routine. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reported-and-tested-by: syzbot+53f029db71c19a47325a@syzkaller.appspotmail.com CC: <stable@vger.kernel.org> Reviewed-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions