kernel_samsung_a53x/sound/pci/asihpi
Takashi Iwai c373c0fcf5 ALSA: asihpi: Fix potential OOB array access
[ Upstream commit 7b986c7430a6bb68d523dac7bfc74cbd5b44ef96 ]

ASIHPI driver stores some values in the static array upon a response
from the driver, and its index depends on the firmware.  We shouldn't
trust it blindly.

This patch adds a sanity check of the array index to fit in the array
size.

Link: https://patch.msgid.link/20240808091454.30846-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:39 +01:00
..
asihpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpi6000.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpi6000.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpi6205.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpi6205.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpi_internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpi_version.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpicmn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpicmn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpidebug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpidebug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpidspcd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpidspcd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpifunc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpimsginit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpimsginit.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpimsgx.c ALSA: asihpi: Fix potential OOB array access 2024-11-23 23:21:39 +01:00
hpimsgx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpioctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpioctl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpios.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpios.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpipcida.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00