summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-05-13 12:38:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-15 19:40:27 +0200
commite7786c445bb67a9a6e64f66ebd6b7215b153ff7d (patch)
tree1df9418fb2a2aed1e1dfa652394fdef3c787fbc3 /COPYING
parenta1d54f97da10f7eea4817d8aae09cf20c40fa111 (diff)
ALSA: pcm: Fix races among concurrent prealloc proc writes
commit 69534c48ba8ce552ce383b3dfdb271ffe51820c3 upstream. We have no protection against concurrent PCM buffer preallocation changes via proc files, and it may potentially lead to UAF or some weird problem. This patch applies the PCM open_mutex to the proc write operation for avoiding the racy proc writes and the PCM stream open (and further operations). Cc: <stable@vger.kernel.org> Reviewed-by: Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/20220322170720.3529-5-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> [OP: backport to 4.14: adjusted context] Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions