Re: [PATCH] ALSA: seq: oss: Fix Spectre v1 vulnerability

2019-03-21 Thread Takashi Iwai
On Thu, 21 Mar 2019 00:42:01 +0100, Gustavo A. R. Silva wrote: > > dev is indirectly controlled by user-space, hence leading to > a potential exploitation of the Spectre variant 1 vulnerability. > > This issue was detected with the help of Smatch: > > sound/core/seq/oss/seq_oss_synth.c:626 snd

[PATCH] ALSA: seq: oss: Fix Spectre v1 vulnerability

2019-03-20 Thread Gustavo A. R. Silva
dev is indirectly controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: sound/core/seq/oss/seq_oss_synth.c:626 snd_seq_oss_synth_make_info() warn: potential spectre issue 'dp->synths' [w] (loca