From 51cc2bacb6b07279b97e9934d079060475481fb6 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 13 Dec 2024 13:07:28 +0530 Subject: [PATCH] soc/intel/pantherlake: Disable stack overflow debug options This patch disables the `DEBUG_STACK_OVERFLOW_BREAKPOINTS` and `DEBUG_STACK_OVERFLOW_BREAKPOINTS_IN_ALL_STAGES` Kconfig options for the Pantherlake SOC. These options are causing false positive stack overflow detections, leading to unnecessary debugging. w/o this patch: stack corruption before for verstage and romstage early. Failed to create address zero instruction fetch breakpoint Failed to create stack canary breakpoint ... ... Stack corruption detected at rip: 0xf983007a Stack corruption detected at rip: 0xf983007a Change-Id: I31b99a7b6de221d3ec23f6538c078d0797a6084f Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/85584 Reviewed-by: Kapil Porwal Tested-by: build bot (Jenkins) Reviewed-by: Dinesh Gehlot --- src/soc/intel/pantherlake/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/soc/intel/pantherlake/Kconfig b/src/soc/intel/pantherlake/Kconfig index 26a4987119..81dbe8050d 100644 --- a/src/soc/intel/pantherlake/Kconfig +++ b/src/soc/intel/pantherlake/Kconfig @@ -425,4 +425,13 @@ config SOC_INTEL_UFS_CLK_FREQ_HZ int default 38400000 +# Override DEBUG Kconfig to avoid false alarm about stack overflow. +config DEBUG_STACK_OVERFLOW_BREAKPOINTS + bool + default n + +config DEBUG_STACK_OVERFLOW_BREAKPOINTS_IN_ALL_STAGES + bool + default n + endif