diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-04-24 07:56:07 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-04-25 10:37:47 +0200 |
commit | 7f054a5bee0987f1e2d4e59daea462421c76f2cb (patch) | |
tree | 31ef4ea6ea8237bba834fcbedac06c8463318338 /sound/pci/ac97 | |
parent | 69fa6f19b95597618ab30438a27b67ad93daa7c7 (diff) | |
download | lwn-7f054a5bee0987f1e2d4e59daea462421c76f2cb.tar.gz lwn-7f054a5bee0987f1e2d4e59daea462421c76f2cb.zip |
ALSA: opl3: Hardening for potential Spectre v1
As recently Smatch suggested, one place in OPL3 driver may expand the
array directly from the user-space value with speculation:
sound/drivers/opl3/opl3_synth.c:476 snd_opl3_set_voice() warn: potential spectre issue 'snd_opl3_regmap'
This patch puts array_index_nospec() for hardening against it.
BugLink: https://marc.info/?l=linux-kernel&m=152411496503418&w=2
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ac97')
0 files changed, 0 insertions, 0 deletions