linux-stable/sound/core
Andreas Pape 2e2c57f660 ALSA: dmaengine: increment buffer pointer atomically
[ Upstream commit d1c4420195 ]

Setting pointer and afterwards checking for wraparound leads
to the possibility of returning the inconsistent pointer position.

This patch increments buffer pointer atomically to avoid this issue.

Fixes: e7f73a1613 ("ASoC: Add dmaengine PCM helper functions")
Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Link: https://lore.kernel.org/r/1664211493-11789-1-git-send-email-erosca@de.adit-jv.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-24 09:57:22 +02:00
..
oss ALSA: pcm: oss: Fix race at SNDCTL_DSP_SYNC 2022-09-15 10:47:09 +02:00
seq ALSA: seq: Fix data-race at module auto-loading 2022-09-08 11:24:07 +02:00
Kconfig
Makefile m68k: coldfire: drop ISA_DMA_API support 2022-05-16 13:18:30 +10:00
compress_offload.c
control.c ALSA: control: Use deferred fasync helper 2022-08-25 11:45:52 +02:00
control_compat.c
control_led.c
ctljack.c
device.c
hrtimer.c
hwdep.c
hwdep_compat.c
info.c ALSA: info: Fix llseek return value when using callback 2022-08-25 11:45:05 +02:00
info_oss.c
init.c ALSA: core: Fix double-free at snd_card_new() 2022-09-28 11:32:02 +02:00
isadma.c
jack.c
memalloc.c ALSA: hda: Once again fix regression of page allocations with IOMMU 2022-09-15 10:47:09 +02:00
memalloc_local.h
memory.c
misc.c ALSA: core: Add async signal helpers 2022-08-25 11:45:52 +02:00
pcm.c ALSA: pcm: Use deferred fasync helper 2022-08-25 11:45:52 +02:00
pcm_compat.c
pcm_dmaengine.c ALSA: dmaengine: increment buffer pointer atomically 2022-10-24 09:57:22 +02:00
pcm_drm_eld.c
pcm_iec958.c
pcm_lib.c ALSA: pcm: Use deferred fasync helper 2022-08-25 11:45:52 +02:00
pcm_local.h
pcm_memory.c
pcm_misc.c
pcm_native.c ALSA: pcm: Use deferred fasync helper 2022-08-25 11:45:52 +02:00
pcm_param_trace.h
pcm_timer.c
pcm_trace.h
rawmidi.c ALSA: rawmidi: Drop register_mutex in snd_rawmidi_free() 2022-10-24 09:56:39 +02:00
rawmidi_compat.c
seq_device.c
sound.c
sound_oss.c ALSA: oss: Fix potential deadlock at unregistration 2022-10-24 09:56:39 +02:00
timer.c ALSA: timer: Use deferred fasync helper 2022-08-25 11:45:52 +02:00
timer_compat.c
vmaster.c