]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Sanity checks for each pipe and EP types
authorTakashi Iwai <tiwai@suse.de>
Mon, 24 Jun 2019 13:08:28 +0000 (15:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 24 Jun 2019 13:11:06 +0000 (15:11 +0200)
commitd645b1061b205bf0dd5627c58786a9351f3e27f2
tree0259d975fddf2d2efd55f82377fad81357d1591e
parent321e034049952eb37b7e97c0d3a5b9bdde1f1b9f
ALSA: usb-audio: Sanity checks for each pipe and EP types

The recent USB core code performs sanity checks for the given pipe and
EP types, and it can be hit by manipulated USB descriptors by syzbot.
For making syzbot happier, this patch introduces a local helper for a
sanity check in the driver side and calls it at each place before the
message handling, so that we can avoid the WARNING splats.

Reported-by: syzbot+d952e5e28f5fb7718d23@syzkaller.appspotmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/helper.c
sound/usb/helper.h
sound/usb/quirks.c