coreboot-kgpe-d16/src/soc/intel/skylake
Rizwan Qureshi d8bb69a451 soc/intel/skylake: fix memory access beyond array bounds
chip.h has a config array PcieRpClkReqNumber which corresponds
to a FSP UPD parameter, the size is currently set to 20.
However the size of PcieRpClkReqNumber UPD in FSP2.0 is 24,
so memcpy (config buffer to UPD buffer) in chip_fsp20.c will read
beyond the bounds of config array.
Hence set the size of PcieRpClkReqNumber array based on the FSP in use.

Found-by: Coverity Scan #1365385, #1365386

Change-Id: I937f68ef33f218cd7f9ba5cf3baaec162bca3fc8
Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Reviewed-on: https://review.coreboot.org/17292
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-11-09 23:29:43 +01:00
..
acpi soc/intel/skylake: Add _ACx methods for TSR0 sensor for fan control 2016-11-07 20:41:36 +01:00
bootblock soc/intel/skylake: Add device id for PCH-Y 2016-11-07 19:20:21 +01:00
include soc/intel/skylake: Add device id for PCH-Y 2016-11-07 19:20:21 +01:00
nhlt soc/intel/{common,skylake}: provide common NHLT SoC support 2016-06-29 23:15:48 +02:00
romstage soc/intel/skylake: Add FSP 2.0 support in romstage 2016-09-15 00:46:11 +02:00
acpi.c soc/intel/skylake: don't hardcode GPE0 standard reg 2016-10-28 19:01:48 +02:00
chip.c soc/intel/skylake: Add FSP 2.0 support in ramstage 2016-09-19 21:32:22 +02:00
chip.h soc/intel/skylake: fix memory access beyond array bounds 2016-11-09 23:29:43 +01:00
chip_fsp20.c soc/intel/skylake: Add FSP 2.0 support in ramstage 2016-09-19 21:32:22 +02:00
cpu.c soc/intel/skylake: Add Kabylake device Ids 2016-08-06 04:36:46 +02:00
cpu_info.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
dsp.c skylake: Add Audio DSP device 2016-05-31 18:45:15 +02:00
elog.c soc/intel/skylake: Cleanup patch for Skylake SoC 2016-08-08 18:18:57 +02:00
finalize.c skylake: Do FspTempRamInit only for FSP1.1 & tidy up PCH early init 2016-08-18 06:26:40 +02:00
flash_controller.c soc/intel/skylake: Use intel common support to write-protect SPI flash 2016-10-26 01:50:45 +02:00
gpio.c soc/intel/skylake: Add function for gpio_t to ACPI pin translation 2016-07-02 01:20:02 +02:00
i2c.c intel/{skylake,apollolake}: Enable signalling of error condition 2016-11-02 17:29:37 +01:00
igd.c soc/intel/skylake: Add FSP 2.0 support in ramstage 2016-09-19 21:32:22 +02:00
irq.c soc/intel/skylake: Add FSP 2.0 support in ramstage 2016-09-19 21:32:22 +02:00
Kconfig soc/intel/skylake: fix memory access beyond array bounds 2016-11-09 23:29:43 +01:00
lpc.c soc/intel/skylake: Add device id for PCH-Y 2016-11-07 19:20:21 +01:00
Makefile.inc soc/intel/skylake: Fix SATA booting to OS issue 2016-11-07 20:11:43 +01:00
me.c soc/intel/skylake: Implement Global Reset MEI message 2016-10-16 02:50:26 +02:00
memmap.c skylake: Add initial FSP2.0 support 2016-08-31 20:02:07 +02:00
monotonic_timer.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
opregion.c skylake: Add initial FSP2.0 support 2016-08-31 20:02:07 +02:00
pch.c soc/intel/skylake: Cleanup patch for Skylake SoC 2016-08-08 18:18:57 +02:00
pcie.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pcr.c intel/skylake: Init variable so GCC knows it's set 2016-01-15 22:41:11 +01:00
pei_data.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pmc.c skylake: Prepare GPE for use in bootblock 2016-10-27 16:30:36 +02:00
pmutil.c soc/intel/{sky,apollo}lake: Wait until GPE is clear when reading 2016-11-07 20:39:02 +01:00
reset.c soc/intel/skylake: Handle platform global reset 2016-10-16 02:51:25 +02:00
sata.c soc/intel/skylake: Fix SATA booting to OS issue 2016-11-07 20:11:43 +01:00
sd.c acpi: Change device properties to work as a tree 2016-07-08 17:21:26 +02:00
smbus.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smbus_common.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smi.c skylake: Add support for eSPI SMI events 2016-10-27 16:30:54 +02:00
smihandler.c skylake: Add support for eSPI SMI events 2016-10-27 16:30:54 +02:00
smmrelocate.c src/soc: Capitalize CPU, ACPI, RAM and ROM 2016-07-31 19:27:53 +02:00
systemagent.c soc/intel/skylake: Add Kabylake device Ids 2016-08-06 04:36:46 +02:00
tsc_freq.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
uart.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
uart_debug.c drivers/uart: Use uart_platform_refclk for all UART models 2016-05-09 18:45:44 +02:00
vr_config.c skylake: Add initial FSP2.0 support 2016-08-31 20:02:07 +02:00
xhci.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00