android_kernel_samsung_a7y1.../sound/usb
Takashi Iwai c72aae47d6 ALSA: line6: Fix endless MIDI read loop
commit d683469b3c93d7e2afd39e6e1970f24700eb7a68 upstream.

The MIDI input event parser of the LINE6 driver may enter into an
endless loop when the unexpected data sequence is given, as it tries
to continue the secondary bytes without termination.  Also, when the
input data is too short, the parser returns a negative error, while
the caller doesn't handle it properly.  This would lead to the
unexpected behavior as well.

This patch addresses those issues by checking the return value
correctly and handling the one-byte event in the parser properly.

The bug was reported by syzkaller.

Reported-by: syzbot+cce32521ee0a824c21f7@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/000000000000033087059f8f8fa3@google.com
Link: https://lore.kernel.org/r/20200309095922.30269-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:14:11 +02:00
..
6fire A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bcd2000 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
caiaq A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hiface A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
line6 ALSA: line6: Fix endless MIDI read loop 2020-04-07 14:14:11 +02:00
misc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
usx2y ALSA: usx2y: Adjust indentation in snd_usX2Y_hwdep_dsp_status 2020-04-07 13:56:11 +02:00
card.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
card.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
endpoint.c ALSA: usb-audio: not submit urb for stopped endpoint 2020-04-07 12:23:34 +02:00
endpoint.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
format.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
format.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
helper.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
helper.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
midi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
midi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mixer_maps.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mixer_quirks.c ALSA: usb-audio: fix sign unintended sign extension on left shifts 2020-04-06 19:21:04 +02:00
mixer_quirks.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mixer_scarlett.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mixer_scarlett.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mixer.c ALSA: usb-audio: Handle the error from snd_usb_mixer_apply_create_quirk() 2020-04-07 13:41:37 +02:00
mixer.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm.c ALSA: usb-audio: Skip bSynchAddress endpoint check if it is invalid 2020-04-07 07:38:16 +02:00
pcm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
quirks-table.h ALSA: usb-audio: update quirk for B&W PX to remove microphone 2020-04-07 13:39:15 +02:00
quirks.c ALSA: usb-audio: Apply sample rate quirk for Audioengine D1 2020-04-07 13:55:08 +02:00
quirks.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stream.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stream.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
usbaudio.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30