diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-04-24 07:56:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-01 15:13:06 -0700 |
commit | 551a1c8aa4295a8f5bec7f8da4e1ed24b4e8f06c (patch) | |
tree | b78c8885b59e950139011c893f429970067bd7d7 /Documentation/Changes | |
parent | 880c971350ebe1c9a71a8b24cb9f2acc7551d41e (diff) |
ALSA: opl3: Hardening for potential Spectre v1
commit 7f054a5bee0987f1e2d4e59daea462421c76f2cb upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/Changes')
0 files changed, 0 insertions, 0 deletions