]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
MdePkg: Add Stack Cookie Interrupt Vector PCD
authorOliver Smith-Denny <osde@microsoft.com>
Fri, 14 Jun 2024 20:20:29 +0000 (13:20 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 13 Sep 2024 03:58:46 +0000 (03:58 +0000)
This patch adds a PCD allowing a platform to specify
the interrupt vector to trigger on a stack check
failure. On x86, this is an offset into the IDT.
On ARM/AARCH64, this triggers a software interrupt
that can be decoded to indicate this was a stack
check failure.

Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
MdePkg/MdePkg.dec

index d36bd2eda37e60d0dc5223ae392ccd5f2e2f4eb0..8d5947fc9e9a165f3c13eb5a91e39289f5966469 100644 (file)
   # @Prompt Speculation Barrier Type.\r
   gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x01|UINT8|0x30001018\r
 \r
+  ## This PCD specifies the interrupt vector for stack cookie check failures\r
+  gEfiMdePkgTokenSpaceGuid.PcdStackCookieExceptionVector|0x42|UINT8|0x30001019\r
+\r
 [PcdsFixedAtBuild,PcdsPatchableInModule]\r
   ## Indicates the maximum length of unicode string used in the following\r
   #  BaseLib functions: StrLen(), StrSize(), StrCmp(), StrnCmp(), StrCpy(), StrnCpy()<BR><BR>\r