android_kernel_xiaomi_sm7250/sound/core
Andreas Pape 6a95642541 ALSA: dmaengine: increment buffer pointer atomically
[ Upstream commit d1c442019594692c64a70a86ad88eb5b6db92216 ]

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-26 13:19:28 +02:00
..
oss ALSA: oss: Fix PCM OSS buffer allocation overflow 2022-03-28 08:41:43 +02:00
seq ALSA: seq: Fix data-race at module auto-loading 2022-09-15 12:17:04 +02:00
compress_offload.c
control_compat.c ALSA: ctl: Fix copy of updated id with element read/write 2021-12-14 10:18:05 +01:00
control.c ALSA: ctl: fix error path at adding user-defined element set 2020-11-24 13:27:24 +01:00
ctljack.c
device.c
hrtimer.c
hwdep_compat.c
hwdep.c
info_oss.c
info.c ALSA: info: Fix llseek return value when using callback 2022-08-25 11:15:33 +02:00
init.c ALSA: core: remove redundant spin_lock pair in snd_card_disconnect 2021-05-22 10:59:35 +02:00
isadma.c
jack.c ALSA: jack: Access input_dev under mutex 2022-06-14 16:59:15 +02:00
Kconfig
Makefile ALSA: ISA: not for M68K 2021-11-26 11:36:20 +01:00
memalloc.c ALSA: memalloc: Align buffer allocations in page size 2022-07-29 17:10:36 +02:00
memory.c
misc.c ALSA: core: Add async signal helpers 2022-08-25 11:15:46 +02:00
pcm_compat.c
pcm_dmaengine.c ALSA: dmaengine: increment buffer pointer atomically 2022-10-26 13:19:28 +02:00
pcm_drm_eld.c
pcm_iec958.c
pcm_lib.c ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-05-15 19:41:58 +02:00
pcm_local.h
pcm_memory.c ALSA: pcm: Fix races among concurrent prealloc proc writes 2022-05-15 19:41:58 +02:00
pcm_misc.c ALSA: pcm: Test for "silence" field in struct "pcm_format_data" 2022-04-20 09:12:50 +02:00
pcm_native.c ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-05-15 19:41:58 +02:00
pcm_param_trace.h
pcm_timer.c
pcm_trace.h
pcm.c ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-05-15 19:41:58 +02:00
rawmidi_compat.c
rawmidi.c ALSA: rawmidi: Drop register_mutex in snd_rawmidi_free() 2022-10-26 13:19:19 +02:00
seq_device.c ALSA: seq: Fix a potential UAF by wrong private_free call order 2021-10-20 11:23:00 +02:00
sgbuf.c
sound_oss.c ALSA: oss: Fix potential deadlock at unregistration 2022-10-26 13:19:19 +02:00
sound.c
timer_compat.c
timer.c ALSA: timer: Use deferred fasync helper 2022-08-25 11:15:46 +02:00
vmaster.c