summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-05-17 00:52:42 +0300
committerTakashi Iwai <tiwai@suse.de>2018-05-18 09:49:13 +0300
commit9d4d207d1346329c5295420254f1dbef1a6ab6ba (patch)
tree5fcb084352753cfd57e434768cbdb1f774257030 /tools/perf/scripts/python/export-to-postgresql.py
parent21244e3d6a9d36f32a2aa40f8948324c7b5f35b0 (diff)
downloadlinux-9d4d207d1346329c5295420254f1dbef1a6ab6ba.tar.xz
ALSA: timer: Assure timer resolution access always locked
There are still many places calling the timer's hw.c_resolution callback without lock, and this may lead to some races, as we faced in the commit a820ccbe21e8 ("ALSA: pcm: Fix UAF at PCM release via PCM timer access"). This patch changes snd_timer_resolution() to take the timer->lock for avoiding the races. A place calling this function already inside the lock (from the notifier) is replaced with the snd_timer_hw_resolution() accordingly, as well as wrapping with the lock around another place calling snd_timer_hw_resolution(), too. Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions