diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-03-22 18:07:20 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-03-22 20:56:58 +0100 |
commit | 69534c48ba8ce552ce383b3dfdb271ffe51820c3 (patch) | |
tree | 5dd87d340078126220bb58f2594d0550e9235155 /net/switchdev | |
parent | 3c3201f8c7bb77eb53b08a3ca8d9a4ddc500b4c0 (diff) | |
download | linux-69534c48ba8ce552ce383b3dfdb271ffe51820c3.tar.bz2 |
ALSA: pcm: Fix races among concurrent prealloc proc writes
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>
Diffstat (limited to 'net/switchdev')
0 files changed, 0 insertions, 0 deletions