aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/rme9652/rme9652.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-04-24 08:03:14 +0200
committerTakashi Iwai <tiwai@suse.de>2018-04-25 10:37:48 +0200
commit10513142a7114d251670361ad40cba2c61403406 (patch)
tree181b3bd8506bd80ba40073fbe0ddea74924a4afc /sound/pci/rme9652/rme9652.c
parentALSA: asihpi: Hardening for potential Spectre v1 (diff)
downloadlinux-dev-10513142a7114d251670361ad40cba2c61403406.tar.xz
linux-dev-10513142a7114d251670361ad40cba2c61403406.zip
ALSA: hdspm: Hardening for potential Spectre v1
As recently Smatch suggested, a couple of places in HDSP MADI driver may expand the array directly from the user-space value with speculation: sound/pci/rme9652/hdspm.c:5717 snd_hdspm_channel_info() warn: potential spectre issue 'hdspm->channel_map_out' (local cap) sound/pci/rme9652/hdspm.c:5734 snd_hdspm_channel_info() warn: potential spectre issue 'hdspm->channel_map_in' (local cap) This patch puts array_index_nospec() for hardening against them. 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/rme9652/rme9652.c')
0 files changed, 0 insertions, 0 deletions