lkml.org 
[lkml]   [2019]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] ALSA: pcm: Fix race condition in runtime access
Date
Since
- snd_pcm_detach_substream sets runtime to null without stream lock and
- snd_pcm_period_elapsed checks the nullity of the runtime outside of
stream lock.

This will trigger null memory access in snd_pcm_running() call in
snd_pcm_period_elapsed.

paulhsia (2):
ALSA: pcm: Fix stream lock usage in snd_pcm_period_elapsed()
ALSA: pcm: Use stream lock in snd_pcm_detach_substream()

sound/core/pcm.c | 8 +++++++-
sound/core/pcm_lib.c | 8 ++++++--
2 files changed, 13 insertions(+), 3 deletions(-)

--
2.24.0.rc1.363.gb1bccd3e3d-goog

\
 
 \ /
  Last update: 2019-11-12 18:18    [W:0.089 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site