]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/RiscVVirt: Add Stack HOB edk2-stable202302
authorSunil V L <sunilvl@ventanamicro.com>
Sat, 25 Feb 2023 05:32:00 +0000 (13:32 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 1 Mar 2023 15:08:07 +0000 (15:08 +0000)
commitf80f052277c88a67c55e107b550f504eeea947d3
tree8b988eda43211402f27d82fb57f56a2abbd7360a
parent1eeca0750af5af2f0e78437bf791ac2de74bde74
OvmfPkg/RiscVVirt: Add Stack HOB

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4350

Currently, stack HOB is not created for the stack memory. This causes
stack memory to be treated as free memory and any memory allocation which
happens at this address causes random memory corruption. Fix this by
creating the stack HOB which marks the memory as BS data.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Andrei Warkentin <andrei.warkentin@intel.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reported-by: Andrei Warkentin <andrei.warkentin@intel.com>
Tested-by: Andrei Warkentin <andrei.warkentin@intel.com>
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com>
OvmfPkg/RiscVVirt/Sec/SecMain.c