linux/sound
Takashi Iwai 643293b68f ALSA: line6: Fix racy access to midibuf
commit 15b7a03205 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-08-19 05:32:15 +02:00
..
ac97 ALSA: ac97: fix PM reference leak in ac97_bus_remove() 2021-07-20 16:16:08 +02:00
aoa ALSA: aoa: Fix I2S device accounting 2022-11-03 23:52:33 +09:00
arm ASoC: pxa2xx-pcm-lib: fix indenting 2018-06-29 12:05:05 +01:00
atmel
core ALSA: dmaengine_pcm: terminate dmaengine before synchronize 2024-07-27 10:33:42 +02:00
drivers ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt 2023-01-18 11:30:15 +01:00
firewire ALSA: fireworks: fix wrong return count shorter than expected by 4 bytes 2022-05-12 12:20:23 +02:00
hda ALSA: hda: Fix possible null-ptr-deref when assigning a stream 2023-11-28 16:46:32 +00:00
i2c ALSA: i2c/cs8427: fix iec958 mixer control deactivation 2023-04-20 12:04:39 +02:00
isa treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00
mips ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
oss
parisc
pci ALSA: hda/realtek: Update Panasonic CF-SZ6 quirk to support headset with microphone 2024-04-13 12:50:14 +02:00
pcmcia Merge branch 'for-linus' into topic/virmidi 2018-07-29 22:39:29 +02:00
ppc ALSA: ppc: fix error return code in snd_pmac_probe() 2021-07-20 16:16:09 +02:00
sh ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs 2024-04-13 12:50:09 +02:00
soc bytcr_rt5640 : inverse jack detect for Archos 101 cesium 2024-07-27 10:33:42 +02:00
sparc ALSA: sparc: Fix invalid snd_free_pages() at error path 2018-12-05 19:32:08 +01:00
spi ALSA: spi: Add check for clk_enable() 2022-04-15 14:14:45 +02:00
synth ALSA: emux: improve patch ioctl data validation 2024-07-05 09:00:32 +02:00
usb ALSA: line6: Fix racy access to midibuf 2024-08-19 05:32:15 +02:00
x86 ALSA: intel_hdmi: Fix reference to PCM buffer address 2022-03-08 19:04:07 +01:00
xen ALSA: xen: Use standard pcm_format_to_bits() for ALSA format bits 2018-07-27 09:05:34 +02:00
ac97_bus.c
Kconfig um: Fix hostaudio build errors 2023-09-23 10:48:09 +02:00
last.c
Makefile
sound_core.c sound: fix a memory leak bug 2019-08-16 10:12:39 +02:00