android_kernel_motorola_sm6225/sound/usb/line6
Artem Egorkine 0c76087449 ALSA: line6: fix stack overflow in line6_midi_transmit
commit b8800d324abb50160560c636bfafe2c81001b66c upstream.

Correctly calculate available space including the size of the chunk
buffer. This fixes a buffer overflow when multiple MIDI sysex
messages are sent to a PODxt device.

Signed-off-by: Artem Egorkine <arteme@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20221225105728.1153989-2-arteme@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-18 11:30:40 +01:00
..
capture.c ALSA: line6: Perform sanity check for each URB creation 2020-07-22 09:32:08 +02:00
capture.h ALSA: line6: make snd_pcm_ops const 2017-10-02 14:33:23 +02:00
driver.c ALSA: line6: correct midi status byte when receiving data from podxt 2023-01-18 11:30:40 +01:00
driver.h ALSA: line6: fix control and interrupt message timeouts 2021-11-26 11:35:58 +01:00
Kconfig ALSA: line6: snd-usb-line6 depends on CONFIG_SND_HWDEP 2016-09-21 14:36:22 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
midi.c ALSA: line6: fix stack overflow in line6_midi_transmit 2023-01-18 11:30:40 +01:00
midi.h ALSA: line6: Tidy up and typo fixes in comments 2015-01-28 20:54:43 +01:00
midibuf.c ALSA: line6: correct midi status byte when receiving data from podxt 2023-01-18 11:30:40 +01:00
midibuf.h ALSA: line6: correct midi status byte when receiving data from podxt 2023-01-18 11:30:40 +01:00
pcm.c ALSA: line6: Fix memory leak at line6_init_pcm() error path 2019-09-06 10:22:08 +02:00
pcm.h ALSA: line6: Add LINE6_CAP_IN_NEEDS_OUT, a void playback stream during capture 2016-09-19 23:00:37 +02:00
playback.c ALSA: line6: Perform sanity check for each URB creation 2020-07-22 09:32:08 +02:00
playback.h ALSA: line6: make snd_pcm_ops const 2017-10-02 14:33:23 +02:00
pod.c ALSA: line6: correct midi status byte when receiving data from podxt 2023-01-18 11:30:40 +01:00
podhd.c ALSA: line6: fix control and interrupt message timeouts 2021-11-26 11:35:58 +01:00
toneport.c ALSA: line6: fix control and interrupt message timeouts 2021-11-26 11:35:58 +01:00
variax.c ALSA: line6: Fix racy initialization of LINE6 MIDI 2021-05-26 11:48:32 +02:00