linux/sound/core/oss
Takashi Iwai 901ac0ff15 ALSA: pcm: oss: Fix data race at accessing runtime.oss.trigger
Currently the runtime.oss.trigger field may be accessed concurrently
without protection, which may lead to the data race.  And, in this
case, it may lead to more severe problem because it's a bit field; as
writing the data, it may overwrite other bit fields as well, which
confuses the operation completely, as spotted by fuzzing.

Fix it by covering runtime.oss.trigger bit fled also with the existing
params_lock mutex in both snd_pcm_oss_get_trigger() and
snd_pcm_oss_poll().

Reported-and-tested-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
Closes: https://lore.kernel.org/20260423145330.210035-1-jjy600901@snu.ac.kr
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20260424112205.123703-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-04-27 13:49:58 +02:00
..
copy.c ALSA: core: Add SPDX license id to files 2026-02-18 08:52:08 +01:00
io.c ALSA: core: Add SPDX license id to files 2026-02-18 08:52:08 +01:00
linear.c ALSA: core: Add SPDX license id to files 2026-02-18 08:52:08 +01:00
Makefile ALSA: core: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:32 +02:00
mixer_oss.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mulaw.c ALSA: core: Add SPDX license id to files 2026-02-18 08:52:08 +01:00
pcm_oss.c ALSA: pcm: oss: Fix data race at accessing runtime.oss.trigger 2026-04-27 13:49:58 +02:00
pcm_plugin.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
pcm_plugin.h ALSA: oss: Remove unused declarations 2024-08-16 12:28:12 +02:00
rate.c ALSA: core: Add SPDX license id to files 2026-02-18 08:52:08 +01:00
route.c ALSA: core: Add SPDX license id to files 2026-02-18 08:52:08 +01:00