coreboot/src
Benjamin Doron bb1f81271b cpu/x86/smm: Pass full SMRAM region info to SMM runtime
This data is used by smm_region_overlaps_handler(). Callers use this
helper to determine if it's safe to read/write to memory buffers taken
from untrusted input.

coreboot SMI handlers must not be confused into writing over any SMRAM
subregion, which includes the TSEG_STAGE_CACHE and chipset-specific area
(sometimes, IED), not just the handlers.

If stage cache writes were permitted, this could compromise the
integrity of the S3 resume path.

The consequences to overwriting the chipset-specific area are undefined.

Change-Id: Ibd9ed34fcfd77a4236b5cf122747a6718ce9c91f
Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80703
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2024-03-20 06:11:20 +00:00
..
acpi acpi/acpigen_pci_root_resource_producer: zero-pad ranges 2024-03-01 16:24:22 +00:00
arch arch/x86: Directly return result of IS_POWER_OF_2() 2024-03-19 17:04:40 +00:00
commonlib soc/intel/xeon_sp: Drop RMRR entry for USB 2024-03-19 10:59:08 +00:00
console arch to cpu: Add SPDX license headers to Kconfig files 2024-02-18 01:58:52 +00:00
cpu cpu/x86/smm: Pass full SMRAM region info to SMM runtime 2024-03-20 06:11:20 +00:00
device device/pnp_device: fix log levels for unassigned resource messages 2024-02-29 21:40:49 +00:00
drivers drivers/intel/fsp2_0: Use DECLARE_REGION for FSP-M heap 2024-03-19 13:00:50 +00:00
ec ec/hp/kbc1126/acpi: Drop unnecessary _STA methods 2024-03-16 15:20:04 +00:00
include symbols: Add __maybe_unused flag to region variable symbols 2024-03-18 16:53:36 +00:00
lib treewide: Move stdlib.h to commonlib 2024-03-15 10:09:43 +00:00
mainboard mb/google/brox: Select USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS 2024-03-19 22:04:04 +00:00
northbridge nb/haswell: Disable iGPU when dGPU is used 2024-03-04 15:22:21 +00:00
sbom src, util: Clean up makefile.inc in text, help & comments 2024-01-26 20:15:18 +00:00
security Kconfig: Make the SEPARATE_ROMSTAGE default configurable in other files 2024-02-27 20:35:11 +00:00
soc soc/intel/xeon_sp: Drop RMRR entry for USB 2024-03-19 10:59:08 +00:00
southbridge util/amdfwtool: build amdfwtool only for all tools or AMD CPUs 2024-02-26 14:50:18 +00:00
superio superio/acpi: Add SUPERIO_PNP_NO_DIS to support always active LDNs 2024-03-01 15:37:48 +00:00
vendorcode vc/amd/opensil: don't use source path when using stub 2024-03-17 16:36:10 +00:00
Kconfig src/Kconfig: Make it possible to override CCACHE in site-local 2024-03-17 16:37:54 +00:00