linux/sound/pci/hda
Takashi Iwai 082dcd5166 ALSA: hda: Fix Oops by 9.1 surround channel names
commit 3b44ec8c5c upstream.

get_line_out_pfx() may trigger an Oops by overflowing the static array
with more than 8 channels.  This was reported for MacBookPro 12,1 with
Cirrus codec.

As a workaround, extend for the 9.1 channels and also fix the
potential Oops by unifying the code paths accessing the same array
with the proper size check.

Reported-by: Olliver Schinagl <oliver@schinagl.nl>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/64d95eb0-dbdb-cff8-a8b1-988dc22b24cd@schinagl.nl
Link: https://lore.kernel.org/r/20230516184412.24078-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-30 12:38:36 +01:00
..
ca0132_regs.h
dell_wmi_helper.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hda_auto_parser.c ALSA: hda - let hs_mic be picked ahead of hp_mic 2020-07-22 09:22:18 +02:00
hda_auto_parser.h
hda_beep.c ALSA: hda: Fix potential access overflow in beep helper 2020-04-24 08:00:34 +02:00
hda_beep.h
hda_bind.c ALSA: hda: Avoid spurious unsol event handling during S3/S4 2021-03-17 16:34:31 +01:00
hda_codec.c ALSA: hda: Add missing rwsem around snd_ctl_remove() calls 2022-01-27 09:00:52 +01:00
hda_codec.h ALSA: hda - Serialize codec registrations 2019-02-12 19:46:11 +01:00
hda_controller_trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hda_controller.c ALSA: hda: Drop the BATCH workaround for AMD controllers 2021-03-17 16:34:31 +01:00
hda_controller.h ALSA: hda: fix unused variable warning 2020-01-27 14:46:03 +01:00
hda_eld.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 16:35:51 +01:00
hda_generic.c ALSA: hda: Fix Oops by 9.1 surround channel names 2023-05-30 12:38:36 +01:00
hda_generic.h ALSA: hda/generic: Add option to enforce preferred_dacs pairs 2020-12-11 13:39:05 +01:00
hda_hwdep.c ALSA: hda: Hardening for potential Spectre v1 2018-05-01 12:58:17 -07:00
hda_intel_trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hda_intel.c ALSA: hda: Fix position reporting on Poulsbo 2022-10-26 13:16:53 +02:00
hda_intel.h vga_switcheroo: Use device link for HDA controller 2020-06-20 10:25:16 +02:00
hda_jack.c
hda_jack.h
hda_local.h ALSA: hda - Remove the generic bind ctl helpers 2017-05-17 07:13:10 +02:00
hda_proc.c
hda_sysfs.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 16:35:51 +01:00
hda_tegra.c ALSA: hda: Add IRQ check for platform_get_irq() 2021-07-20 16:17:51 +02:00
Kconfig ALSA: hda - Use IS_REACHABLE() for dependency on input 2018-04-26 11:02:03 +02:00
local.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
patch_analog.c ALSA: hda - Add laptop imic fixup for ASUS M9V laptop 2019-10-05 12:47:35 +02:00
patch_ca0110.c
patch_ca0132.c ALSA: hda/ca0132: fixup buffer overrun at tuning_ctl_set() 2023-04-05 11:14:19 +02:00
patch_cirrus.c ALSA: hda/cirrus - support for iMac 12,1 model 2022-08-25 11:11:11 +02:00
patch_cmedia.c
patch_conexant.c ALSA: hda/conexant: Partial revert of a quirk for Lenovo 2023-04-05 11:14:21 +02:00
patch_hdmi.c ALSA: hda/tegra: set depop delay for tegra 2022-09-28 10:56:50 +02:00
patch_realtek.c ALSA: hda - Add fixup for Dell Latitidue E5430 2022-07-21 20:42:43 +02:00
patch_si3054.c ALSA: hda: Constify hw_constraints 2017-06-09 10:42:52 +02:00
patch_sigmatel.c ALSA: hda/sigmatel: fix S/PDIF out on Intel D*45* motherboards 2023-04-20 12:02:11 +02:00
patch_via.c ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path() 2023-02-22 12:46:01 +01:00
thinkpad_helper.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00