diff options
author | Takashi Iwai <[email protected]> | 2022-03-22 18:07:20 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2022-03-22 20:56:58 +0100 |
commit | 69534c48ba8ce552ce383b3dfdb271ffe51820c3 (patch) | |
tree | 5dd87d340078126220bb58f2594d0550e9235155 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 3c3201f8c7bb77eb53b08a3ca8d9a4ddc500b4c0 (diff) |
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: <[email protected]>
Reviewed-by: Jaroslav Kysela <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions