kernel_samsung_a53x/sound/usb
Takashi Iwai 3c66b91ddb ALSA: line6: Fix racy access to midibuf
commit 15b7a03205b31bc5623378c190d22b7ff60026f1 upstream.

There can be concurrent accesses to line6 midibuf from both the URB
completion callback and the rawmidi API access.  This could be a cause
of KMSAN warning triggered by syzkaller below (so put as reported-by
here).

This patch protects the midibuf call of the former code path with a
spinlock for avoiding the possible races.

Reported-by: syzbot+78eccfb8b3c9a85fc6c5@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/00000000000000949c061df288c5@google.com
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20240805130129.10872-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:20:27 +01:00
..
6fire Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcd2000 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caiaq Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hiface Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
line6 ALSA: line6: Fix racy access to midibuf 2024-11-23 23:20:27 +01:00
misc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usx2y Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
card.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
card.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
endpoint.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
endpoint.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_usb_audio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_usb_audio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
format.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
format.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
media.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
media.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
midi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
midi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_maps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_quirks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_quirks.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_s1810c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_s1810c.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_scarlett.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_scarlett.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_scarlett_gen2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_scarlett_gen2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_us16x08.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixer_us16x08.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quirks-table.h ALSA: usb-audio: Re-add ScratchAmp quirk entries 2024-11-23 23:20:27 +01:00
quirks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quirks.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stream.c ALSA: usb-audio: Correct surround channels in UAC1 channel map 2024-11-23 23:20:21 +01:00
stream.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usbaudio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
validate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00