linux_dsm_epyc7002/sound/pci/rme9652
Takashi Iwai f526afcd8f ALSA: rme9652: Hardening for potential Spectre v1
As recently Smatch suggested, one place in RME9652 driver may expand
the array directly from the user-space value with speculation:
  sound/pci/rme9652/rme9652.c:2074 snd_rme9652_channel_info() warn: potential spectre issue 'rme9652->channel_map' (local cap)

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>
2018-04-25 10:37:48 +02:00
..
hdsp.c ALSA: Convert timers to use timer_setup() 2017-10-26 14:44:59 +02:00
hdspm.c ALSA: hdspm: Hardening for potential Spectre v1 2018-04-25 10:37:48 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rme9652.c ALSA: rme9652: Hardening for potential Spectre v1 2018-04-25 10:37:48 +02:00