audk/MdeModulePkg/Core/Pei
Eugene Cohen 9ddd7d7aec MdeModulePkg PeiCore: Fix issue AuthenticationStatus is not propagated correctly
This patch fixes an issue in PEI with encapsulated FV images where the
AuthenticationStatus is not correctly propagated down to child FV
handles.  The PEI core registers for callbacks for both FvInfo and
FvInfo2 PPIs.  These callbacks process the FVs which will recurse as
necessary to find more encapsulated FVs.  (FvInfo2 is an updated PPI
that includes an AuthenticationStatus field - the original FvInfo did
not include this.)

When encapsulated FV processing occurs the PEI core installs both
FvInfo and FvInfo2 PPIs.  The original implementation installs FvInfo
first and FvInfo2 second.  As soon as the FvInfo PPI is installed the
notification callback handler immediately fires causing recursive FV
processing to occur.  Since there is no AuthenticationStatus provided
for the original FvInfo the callback assumes AuthenticationStatus is
zero (unsigned / unverified) even though the parent FV may have been
verified.

This changes the order of FvInfo and FvInfo2 installs to ensure that
the notification callback occurs for FvInfo2 first and appropriate
AuthenticationStatus data can be propagated from parent FV to child
FV.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18764 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-10 10:02:24 +00:00
..
BootMode Update the copyright notice format 2010-04-24 09:49:11 +00:00
CpuIo Update the copyright notice format 2010-04-24 09:49:11 +00:00
Dependency Refine code to make it more safely. 2014-06-26 03:24:25 +00:00
Dispatcher MdeModulePkg PeiCore: Recheck SwitchStackSignal after ProcessNotifyList() 2015-08-25 07:05:48 +00:00
FwVol MdeModulePkg PeiCore: Fix issue AuthenticationStatus is not propagated correctly 2015-11-10 10:02:24 +00:00
Hob Update HobLib and Hob Service to avoid data over flow. 2012-07-17 01:51:26 +00:00
Image MdeModulePkg PeiCore: Add PCD to specify PEIM Shadow 2015-08-03 03:18:37 +00:00
Memory MdeModulePkg: Update implementation of PeiAllocatePages() to allow EfiReservedMemoryType. 2015-05-11 03:12:21 +00:00
PciCfg2 Update the copyright notice format 2010-04-24 09:49:11 +00:00
PeiMain MdeModulePkg PeiCore: Add PCD to specify PEIM Shadow 2015-08-03 03:18:37 +00:00
Ppi MdeModulePkg/IntelFrameworkModulePkg: Update PeiCore, SmbiosDxe and IsaSerialDxe to use PcdGetxx() instead of FixedPcdGetxx(). 2014-08-14 05:55:08 +00:00
Reset MdeModulePkg: Add Reset2 ppi support in PEI CORE. 2015-05-11 02:06:51 +00:00
Security Update PeiCore to follow PI spec to retrieve GUIDED section data when ExtractionPpi is not found. 2014-08-18 05:43:06 +00:00
StatusCode Update the copyright notice format 2010-04-24 09:49:11 +00:00
PeiCore.uni MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PeiCoreExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:53:43 +00:00
PeiMain.h MdeModulePkg: Add Reset2 ppi support in PEI CORE. 2015-05-11 02:06:51 +00:00
PeiMain.inf MdeModulePkg PeiCore: Add PCD to specify PEIM Shadow 2015-08-03 03:18:37 +00:00