linux-stable/drivers/soundwire
Pierre-Louis Bossart 4e99103f75 soundwire: cadence: fix invalid PDI offset
[ Upstream commit 8ee1b439b1 ]

For some reason, we add an offset to the PDI, presumably to skip the
PDI0 and PDI1 which are reserved for BPT.

This code is however completely wrong and leads to an out-of-bounds
access. We were just lucky so far since we used only a couple of PDIs
and remained within the PDI array bounds.

A Fixes: tag is not provided since there are no known platforms where
the out-of-bounds would be accessed, and the initial code had problems
as well.

A follow-up patch completely removes this useless offset.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20240326090122.1051806-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:39:08 +02:00
..
amd_init.c soundwire: amd: refactor soundwire pads enable 2024-01-30 16:06:35 +00:00
amd_init.h soundwire: amd: refactor amd soundwire manager device node creation 2024-01-30 16:06:34 +00:00
amd_manager.c soundwire: amd: fix for wake interrupt handling for clockstop mode 2024-03-28 23:40:33 +05:30
amd_manager.h soundwire: amd: fix for wake interrupt handling for clockstop mode 2024-03-28 23:40:33 +05:30
bus.c soundwire: bus: introduce controller_id 2023-11-24 12:24:37 +05:30
bus.h soundwire: export sdw_compute_slave_ports() function 2023-04-12 15:30:35 +05:30
bus_type.c soundwire: bus_type: make sdw_bus_type const 2024-02-16 17:32:00 +05:30
cadence_master.c soundwire: cadence: fix invalid PDI offset 2024-06-12 11:39:08 +02:00
cadence_master.h soundwire: intel/cadence: update hardware reset sequence 2023-05-29 10:49:47 +05:30
debugfs.c soundwire: bus: introduce controller_id 2023-11-24 12:24:37 +05:30
dmi-quirks.c ASoC: Intel: common: DMI remap for rebranded Intel NUC M15 (LAPRC710) laptops 2024-02-08 21:23:19 +00:00
generic_bandwidth_allocation.c soundwire: generic_bandwidth_allocation use bus->params.max_dr_freq 2023-11-28 15:29:55 +05:30
intel.c ASoC: soundwire: convert not to use asoc_xxx() 2023-09-25 14:16:40 +02:00
intel.h soundwire: intel_ace2x: add debugfs support 2023-05-27 16:06:45 +05:30
intel_ace2x.c soundwire: intel_ace2x: fix AC timing setting for ACE2.x 2023-11-28 15:27:27 +05:30
intel_ace2x_debugfs.c soundwire: intel_ace2x: add debugfs support 2023-05-27 16:06:45 +05:30
intel_auxdevice.c soundwire: intel_auxdevice: remove redundant assignment to variable link_flags 2024-02-07 09:51:08 +01:00
intel_auxdevice.h soundwire: intel: split auxdevice to different file 2022-11-23 20:11:49 +05:30
intel_bus_common.c soundwire: intel/cadence: update hardware reset sequence 2023-05-29 10:49:47 +05:30
intel_init.c soundwire: intel_init: use eml_lock parameter 2023-05-27 16:06:45 +05:30
irq.c soundwire: bus: Make IRQ handling conditionally built 2023-09-21 11:31:33 +02:00
irq.h soundwire: bus: Make IRQ handling conditionally built 2023-09-21 11:31:33 +02:00
Kconfig soundwire: intel_ace2x: fix SND_SOC_SOF_HDA_MLINK dependency 2023-06-21 16:19:44 +05:30
Makefile soundwire: amd: refactor amd soundwire manager device node creation 2024-01-30 16:06:34 +00:00
master.c soundwire: constify the struct device_type usage 2024-03-03 19:28:06 +05:30
mipi_disco.c
qcom.c soundwire updates for 6.7 2024-01-18 17:08:31 -08:00
slave.c soundwire: constify the struct device_type usage 2024-03-03 19:28:06 +05:30
stream.c soundwire: Use snd_soc_substream_to_rtd() to obtain rtd 2024-03-03 19:29:28 +05:30
sysfs_local.h
sysfs_slave.c soundwire: sysfs: Constify static struct attribute_group 2021-01-19 20:21:20 +05:30
sysfs_slave_dpn.c soundwire: Fix DEBUG_LOCKS_WARN_ON for uninitialized attribute 2020-11-24 14:08:51 +05:30