diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-15 23:37:33 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-15 23:38:18 +0300 |
commit | 60adcfde92fa40fcb2dbf7cc52f9b096e0cd109a (patch) | |
tree | 5d14b22d1dc22cee63d066961c1bf30dd6c8ee85 /fs/ceph/dir.c | |
parent | 5d1b71226dc4d44b4b65766fa9d74492f9d4587b (diff) | |
download | linux-60adcfde92fa40fcb2dbf7cc52f9b096e0cd109a.tar.xz |
ALSA: seq: Fix racy access for queue timer in proc read
snd_seq_info_timer_read() reads the information of the timer assigned
for each queue, but it's done in a racy way which may lead to UAF as
spotted by syzkaller.
This patch applies the missing q->timer_mutex lock while accessing the
timer object as well as a slight code change to adapt the standard
coding style.
Reported-by: syzbot+2b2ef983f973e5c40943@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200115203733.26530-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'fs/ceph/dir.c')
0 files changed, 0 insertions, 0 deletions