remarkable-linux/sound/pci/asihpi
Takashi Iwai f9d94b57e3 ALSA: asihpi: Hardening for potential Spectre v1
As recently Smatch suggested, a couple of places in ASIHPI driver may
expand the array directly from the user-space value with speculation:
  sound/pci/asihpi/hpimsginit.c:70 hpi_init_response() warn: potential spectre issue 'res_size' (local cap)
  sound/pci/asihpi/hpioctl.c:189 asihpi_hpi_ioctl() warn: potential spectre issue 'adapters'

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>
2018-04-25 10:37:47 +02:00
..
asihpi.c ALSA: asihpi: clean up a couple of build warnings 2017-10-16 14:48:11 +02:00
hpi.h
hpi6000.c
hpi6000.h
hpi6205.c
hpi6205.h
hpi_internal.h
hpi_version.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hpicmn.c
hpicmn.h
hpidebug.c ALSA: asihpi: Put missing KERN_CONT prefix 2017-08-31 11:01:31 +02:00
hpidebug.h
hpidspcd.c
hpidspcd.h
hpifunc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hpimsginit.c ALSA: asihpi: Hardening for potential Spectre v1 2018-04-25 10:37:47 +02:00
hpimsginit.h
hpimsgx.c
hpimsgx.h
hpioctl.c ALSA: asihpi: Hardening for potential Spectre v1 2018-04-25 10:37:47 +02:00
hpioctl.h
hpios.c
hpios.h
hpipcida.h
Makefile