[edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event support.

Yao, Jiewen posted 6 patches 4 years, 3 months ago
Failed in applying to current master (apply log)
MdeModulePkg/MdeModulePkg.dec                 |   8 +
.../SmbiosMeasurementDxe.c                    |  39 ++++-
.../SmbiosMeasurementDxe.inf                  |   3 +
SecurityPkg/Include/Guid/TcgEventHob.h        |  11 ++
SecurityPkg/SecurityPkg.dec                   |   4 +
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c             | 157 ++++++++++++++----
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf           |   1 +
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c             |  91 +++++++++-
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf           |   2 +
9 files changed, 273 insertions(+), 43 deletions(-)
[edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event support.
Posted by Yao, Jiewen 4 years, 3 months ago
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439

This patch series adds TCG PFP rev 105 and 800-155 event support.

TCG published Platform Firmware Profile spec revision 105
(https://trustedcomputinggroup.org/wp-content/uploads/TCG_PCClient_PFP_r1p05_05_3feb20.pdf)
and Firmware Integrity Measurement spec
(https://trustedcomputinggroup.org/wp-content/uploads/TCG_PC_Client-FIM_v1r24_3feb20.pdf)

2 major impact to the BIOS:

1) Need add 800-155 event at the beginning of the TCG2 event log.

2) Need use EV_EFI_PLATFORM_FIRMWARE_BLOB2 to replace EV_EFI_PLATFORM_FIRMWARE_BLOB
and use EV_EFI_HANDOFF_TABLES2 to replace EV_EFI_HANDOFF_TABLES.

TCG2 DXE update: Add 800-155 event handling.
TCG2 PEI update: Use EV_EFI_PLATFORM_FIRMWARE_BLOB2.
Smbios Update: Use EV_EFI_HANDOFF_TABLES2.

This patch series is tested on EmulatorPkg with TPM2 simulator.
(https://github.com/jyao1/edk2/tree/feature_tpm_emulator).

The new entries - 800-155 event, EV_EFI_PLATFORM_FIRMWARE_BLOB2, EV_EFI_HANDOFF_TABLES2,
can be dumpped with UEFI Tcg2DumpLog tool.
(https://github.com/jyao1/EdkiiShellTool/tree/master/EdkiiShellToolPkg/Tcg2DumpLog)

NOTE: To support the full 800-155 requirement in TCG, a platform need report the
platform specific 800-155 event.

If the platform chooses to report in PEI, it can refer to the example at
https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2/Platform800155EventPei.

If the platform chooses to report in DXE, it can refer to the example at
https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2/Platform800155EventDxe.

Multiple 800-155 events are support.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>



Jiewen Yao (6):
  SecurityPkg/Guid: Add TCG 800-155 event GUID definition.
  SecurityPkg/Tcg2Dxe: Add Tcg2Dxe to support 800-155 event.
  MdeModulePkg/Smbios: Done measure Smbios multiple times.
  MdeModulePkg/dec: add PcdTcgPfpMeasurementRevision PCD
  MdeModulePkg/Smbios: Add TCG PFP rev 105 support.
  SecurityPkg/Tcg2Pei: Add TCG PFP 105 support.

 MdeModulePkg/MdeModulePkg.dec                 |   8 +
 .../SmbiosMeasurementDxe.c                    |  39 ++++-
 .../SmbiosMeasurementDxe.inf                  |   3 +
 SecurityPkg/Include/Guid/TcgEventHob.h        |  11 ++
 SecurityPkg/SecurityPkg.dec                   |   4 +
 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c             | 157 ++++++++++++++----
 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf           |   1 +
 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c             |  91 +++++++++-
 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf           |   2 +
 9 files changed, 273 insertions(+), 43 deletions(-)

-- 
2.19.2.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#52623): https://edk2.groups.io/g/devel/message/52623
Mute This Topic: https://groups.io/mt/69344967/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event support.
Posted by Wang, Jian J 4 years, 3 months ago
Jiewen,

Did you do tests on real platforms? I remember there're regressions caused by TCG
driver changes made months ago.

Regards,
Jian

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yao, Jiewen
> Sent: Tuesday, December 31, 2019 2:44 PM
> To: devel@edk2.groups.io
> Cc: Wang, Jian J <jian.j.wang@intel.com>; Zhang, Chao B
> <chao.b.zhang@intel.com>
> Subject: [edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event
> support.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
> 
> This patch series adds TCG PFP rev 105 and 800-155 event support.
> 
> TCG published Platform Firmware Profile spec revision 105
> (https://trustedcomputinggroup.org/wp-
> content/uploads/TCG_PCClient_PFP_r1p05_05_3feb20.pdf)
> and Firmware Integrity Measurement spec
> (https://trustedcomputinggroup.org/wp-content/uploads/TCG_PC_Client-
> FIM_v1r24_3feb20.pdf)
> 
> 2 major impact to the BIOS:
> 
> 1) Need add 800-155 event at the beginning of the TCG2 event log.
> 
> 2) Need use EV_EFI_PLATFORM_FIRMWARE_BLOB2 to replace
> EV_EFI_PLATFORM_FIRMWARE_BLOB
> and use EV_EFI_HANDOFF_TABLES2 to replace EV_EFI_HANDOFF_TABLES.
> 
> TCG2 DXE update: Add 800-155 event handling.
> TCG2 PEI update: Use EV_EFI_PLATFORM_FIRMWARE_BLOB2.
> Smbios Update: Use EV_EFI_HANDOFF_TABLES2.
> 
> This patch series is tested on EmulatorPkg with TPM2 simulator.
> (https://github.com/jyao1/edk2/tree/feature_tpm_emulator).
> 
> The new entries - 800-155 event, EV_EFI_PLATFORM_FIRMWARE_BLOB2,
> EV_EFI_HANDOFF_TABLES2,
> can be dumpped with UEFI Tcg2DumpLog tool.
> (https://github.com/jyao1/EdkiiShellTool/tree/master/EdkiiShellToolPkg/Tcg2D
> umpLog)
> 
> NOTE: To support the full 800-155 requirement in TCG, a platform need report
> the
> platform specific 800-155 event.
> 
> If the platform chooses to report in PEI, it can refer to the example at
> https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2
> /Platform800155EventPei.
> 
> If the platform chooses to report in DXE, it can refer to the example at
> https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2
> /Platform800155EventDxe.
> 
> Multiple 800-155 events are support.
> 
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Chao Zhang <chao.b.zhang@intel.com>
> Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
> 
> 
> 
> Jiewen Yao (6):
>   SecurityPkg/Guid: Add TCG 800-155 event GUID definition.
>   SecurityPkg/Tcg2Dxe: Add Tcg2Dxe to support 800-155 event.
>   MdeModulePkg/Smbios: Done measure Smbios multiple times.
>   MdeModulePkg/dec: add PcdTcgPfpMeasurementRevision PCD
>   MdeModulePkg/Smbios: Add TCG PFP rev 105 support.
>   SecurityPkg/Tcg2Pei: Add TCG PFP 105 support.
> 
>  MdeModulePkg/MdeModulePkg.dec                 |   8 +
>  .../SmbiosMeasurementDxe.c                    |  39 ++++-
>  .../SmbiosMeasurementDxe.inf                  |   3 +
>  SecurityPkg/Include/Guid/TcgEventHob.h        |  11 ++
>  SecurityPkg/SecurityPkg.dec                   |   4 +
>  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c             | 157 ++++++++++++++----
>  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf           |   1 +
>  SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c             |  91 +++++++++-
>  SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf           |   2 +
>  9 files changed, 273 insertions(+), 43 deletions(-)
> 
> --
> 2.19.2.windows.1
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#52881): https://edk2.groups.io/g/devel/message/52881
Mute This Topic: https://groups.io/mt/69344967/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event support.
Posted by Liming Gao 4 years, 3 months ago
Jiewen:
  Seemly, this is a new feature. Dose it need to catch 2020 Q1 stable tag? If yes, I will add it into the feature planning. 

Thanks
Liming
-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yao, Jiewen
Sent: 2019年12月31日 14:44
To: devel@edk2.groups.io
Cc: Wang, Jian J <jian.j.wang@intel.com>; Zhang, Chao B <chao.b.zhang@intel.com>
Subject: [edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event support.

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

This patch series adds TCG PFP rev 105 and 800-155 event support.

TCG published Platform Firmware Profile spec revision 105
(https://trustedcomputinggroup.org/wp-content/uploads/TCG_PCClient_PFP_r1p05_05_3feb20.pdf)
and Firmware Integrity Measurement spec
(https://trustedcomputinggroup.org/wp-content/uploads/TCG_PC_Client-FIM_v1r24_3feb20.pdf)

2 major impact to the BIOS:

1) Need add 800-155 event at the beginning of the TCG2 event log.

2) Need use EV_EFI_PLATFORM_FIRMWARE_BLOB2 to replace EV_EFI_PLATFORM_FIRMWARE_BLOB and use EV_EFI_HANDOFF_TABLES2 to replace EV_EFI_HANDOFF_TABLES.

TCG2 DXE update: Add 800-155 event handling.
TCG2 PEI update: Use EV_EFI_PLATFORM_FIRMWARE_BLOB2.
Smbios Update: Use EV_EFI_HANDOFF_TABLES2.

This patch series is tested on EmulatorPkg with TPM2 simulator.
(https://github.com/jyao1/edk2/tree/feature_tpm_emulator).

The new entries - 800-155 event, EV_EFI_PLATFORM_FIRMWARE_BLOB2, EV_EFI_HANDOFF_TABLES2, can be dumpped with UEFI Tcg2DumpLog tool.
(https://github.com/jyao1/EdkiiShellTool/tree/master/EdkiiShellToolPkg/Tcg2DumpLog)

NOTE: To support the full 800-155 requirement in TCG, a platform need report the platform specific 800-155 event.

If the platform chooses to report in PEI, it can refer to the example at https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2/Platform800155EventPei.

If the platform chooses to report in DXE, it can refer to the example at https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2/Platform800155EventDxe.

Multiple 800-155 events are support.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>



Jiewen Yao (6):
  SecurityPkg/Guid: Add TCG 800-155 event GUID definition.
  SecurityPkg/Tcg2Dxe: Add Tcg2Dxe to support 800-155 event.
  MdeModulePkg/Smbios: Done measure Smbios multiple times.
  MdeModulePkg/dec: add PcdTcgPfpMeasurementRevision PCD
  MdeModulePkg/Smbios: Add TCG PFP rev 105 support.
  SecurityPkg/Tcg2Pei: Add TCG PFP 105 support.

 MdeModulePkg/MdeModulePkg.dec                 |   8 +
 .../SmbiosMeasurementDxe.c                    |  39 ++++-
 .../SmbiosMeasurementDxe.inf                  |   3 +
 SecurityPkg/Include/Guid/TcgEventHob.h        |  11 ++
 SecurityPkg/SecurityPkg.dec                   |   4 +
 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c             | 157 ++++++++++++++----
 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf           |   1 +
 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c             |  91 +++++++++-
 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf           |   2 +
 9 files changed, 273 insertions(+), 43 deletions(-)

--
2.19.2.windows.1





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#52636): https://edk2.groups.io/g/devel/message/52636
Mute This Topic: https://groups.io/mt/69344967/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event support.
Posted by Yao, Jiewen 4 years, 3 months ago
Yes. I add it to https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Release-Planning.

Thank you
Yao Jiewen

> -----Original Message-----
> From: Gao, Liming <liming.gao@intel.com>
> Sent: Thursday, January 2, 2020 8:12 AM
> To: devel@edk2.groups.io; Yao, Jiewen <jiewen.yao@intel.com>
> Cc: Wang, Jian J <jian.j.wang@intel.com>; Zhang, Chao B
> <chao.b.zhang@intel.com>
> Subject: RE: [edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155
> event support.
> 
> Jiewen:
>   Seemly, this is a new feature. Dose it need to catch 2020 Q1 stable tag? If yes, I
> will add it into the feature planning.
> 
> Thanks
> Liming
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yao, Jiewen
> Sent: 2019年12月31日 14:44
> To: devel@edk2.groups.io
> Cc: Wang, Jian J <jian.j.wang@intel.com>; Zhang, Chao B
> <chao.b.zhang@intel.com>
> Subject: [edk2-devel] [PATCH 0/6] TCG: Add TCG PFP rev 105 and 800-155 event
> support.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
> 
> This patch series adds TCG PFP rev 105 and 800-155 event support.
> 
> TCG published Platform Firmware Profile spec revision 105
> (https://trustedcomputinggroup.org/wp-
> content/uploads/TCG_PCClient_PFP_r1p05_05_3feb20.pdf)
> and Firmware Integrity Measurement spec
> (https://trustedcomputinggroup.org/wp-content/uploads/TCG_PC_Client-
> FIM_v1r24_3feb20.pdf)
> 
> 2 major impact to the BIOS:
> 
> 1) Need add 800-155 event at the beginning of the TCG2 event log.
> 
> 2) Need use EV_EFI_PLATFORM_FIRMWARE_BLOB2 to replace
> EV_EFI_PLATFORM_FIRMWARE_BLOB and use EV_EFI_HANDOFF_TABLES2 to
> replace EV_EFI_HANDOFF_TABLES.
> 
> TCG2 DXE update: Add 800-155 event handling.
> TCG2 PEI update: Use EV_EFI_PLATFORM_FIRMWARE_BLOB2.
> Smbios Update: Use EV_EFI_HANDOFF_TABLES2.
> 
> This patch series is tested on EmulatorPkg with TPM2 simulator.
> (https://github.com/jyao1/edk2/tree/feature_tpm_emulator).
> 
> The new entries - 800-155 event, EV_EFI_PLATFORM_FIRMWARE_BLOB2,
> EV_EFI_HANDOFF_TABLES2, can be dumpped with UEFI Tcg2DumpLog tool.
> (https://github.com/jyao1/EdkiiShellTool/tree/master/EdkiiShellToolPkg/Tcg2D
> umpLog)
> 
> NOTE: To support the full 800-155 requirement in TCG, a platform need report
> the platform specific 800-155 event.
> 
> If the platform chooses to report in PEI, it can refer to the example at
> https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2
> /Platform800155EventPei.
> 
> If the platform chooses to report in DXE, it can refer to the example at
> https://github.com/jyao1/edk2/tree/feature_tpm_emulator/EmulatorPkg/Tpm2
> /Platform800155EventDxe.
> 
> Multiple 800-155 events are support.
> 
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Chao Zhang <chao.b.zhang@intel.com>
> Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
> 
> 
> 
> Jiewen Yao (6):
>   SecurityPkg/Guid: Add TCG 800-155 event GUID definition.
>   SecurityPkg/Tcg2Dxe: Add Tcg2Dxe to support 800-155 event.
>   MdeModulePkg/Smbios: Done measure Smbios multiple times.
>   MdeModulePkg/dec: add PcdTcgPfpMeasurementRevision PCD
>   MdeModulePkg/Smbios: Add TCG PFP rev 105 support.
>   SecurityPkg/Tcg2Pei: Add TCG PFP 105 support.
> 
>  MdeModulePkg/MdeModulePkg.dec                 |   8 +
>  .../SmbiosMeasurementDxe.c                    |  39 ++++-
>  .../SmbiosMeasurementDxe.inf                  |   3 +
>  SecurityPkg/Include/Guid/TcgEventHob.h        |  11 ++
>  SecurityPkg/SecurityPkg.dec                   |   4 +
>  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c             | 157 ++++++++++++++----
>  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf           |   1 +
>  SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c             |  91 +++++++++-
>  SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf           |   2 +
>  9 files changed, 273 insertions(+), 43 deletions(-)
> 
> --
> 2.19.2.windows.1
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#52638): https://edk2.groups.io/g/devel/message/52638
Mute This Topic: https://groups.io/mt/69344967/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-