Skip to content

Commit

Permalink
Secure WOF data support in HB standalone
Browse files Browse the repository at this point in the history
Adds secure signing of WOF data for HB standalone and ensures
the section is loaded when needed and available for reuse
more than once during the IPL.

Change-Id: Idd5f611030033ea165cde51ace987fa6847b78e7
RTC:170715
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41172
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
popfuture authored and dcrowell77 committed May 31, 2017
1 parent ddfce1b commit e263958
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/build/buildpnor/defaultPnorLayout.xml
Expand Up @@ -268,6 +268,7 @@ Layout Description
<physicalOffset>0x2BF4000</physicalOffset>
<physicalRegionSize>0x300000</physicalRegionSize>
<side>sideless</side>
<sha512Version/>
<ecc/>
</section>
</pnor>
1 change: 1 addition & 0 deletions src/build/buildpnor/genPnorImages.pl
Expand Up @@ -550,6 +550,7 @@ sub manipulateImages
#$isNormalSecure ||= ($eyeCatch eq "CAPP");
#$isNormalSecure ||= ($eyeCatch eq "BOOTKERNEL");
$isNormalSecure ||= ($eyeCatch eq "HCODE");
$isNormalSecure ||= ($eyeCatch eq "WOFDATA");

my $isSpecialSecure = ($eyeCatch eq "HBB");
$isSpecialSecure ||= ($eyeCatch eq "HBD");
Expand Down
3 changes: 2 additions & 1 deletion src/usr/pnor/pnor_utils.C
Expand Up @@ -393,7 +393,8 @@ bool PNOR::isEnforcedSecureSection(const uint32_t i_section)
i_section == SBKT ||
i_section == OCC ||
i_section == HCODE ||
i_section == HB_RUNTIME;
i_section == HB_RUNTIME ||
i_section == WOFDATA;
#endif
#else
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/usr/pnor/pnorrp.C
Expand Up @@ -103,7 +103,7 @@ errlHndl_t PNOR::clearSection(PNOR::SectionId i_section)
}

/**
* @brief Write the data for a given sectino into PNOR
* @brief Write the data for a given section into PNOR
*/
errlHndl_t PNOR::flush( PNOR::SectionId i_section)
{
Expand Down
2 changes: 1 addition & 1 deletion src/usr/pnor/runtime/rt_pnor.C
Expand Up @@ -62,7 +62,7 @@ errlHndl_t PNOR::getSectionInfo( PNOR::SectionId i_section,
}

/**
* @brief Write the data for a given sectino into PNOR
* @brief Write the data for a given section into PNOR
*/
errlHndl_t PNOR::flush( PNOR::SectionId i_section)
{
Expand Down

0 comments on commit e263958

Please sign in to comment.