From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: jian.j.wang@intel.com) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by groups.io with SMTP; Wed, 26 Jun 2019 00:59:20 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 00:59:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="337127221" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 26 Jun 2019 00:59:18 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 00:59:18 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 00:59:18 -0700 Received: from shsmsx107.ccr.corp.intel.com ([169.254.9.173]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.246]) with mapi id 14.03.0439.000; Wed, 26 Jun 2019 15:59:15 +0800 From: "Wang, Jian J" To: "devel@edk2.groups.io" , "Wang, Jian J" , "Yao, Jiewen" CC: "Zhang, Chao B" , "Hernandez Beltran, Jorge" , "Han, Harry" Subject: Re: [edk2-devel] [PATCH v4 0/3] Common OBB verification feature Thread-Topic: [edk2-devel] [PATCH v4 0/3] Common OBB verification feature Thread-Index: AQHVJwvAHWpXTgC3n0K1LcEDuU4J+aasb5XQgAEDLcCAACkFgA== Date: Wed, 26 Jun 2019 07:59:15 +0000 Message-ID: References: <20190620015859.6424-1-jian.j.wang@intel.com> <74D8A39837DF1E4DA445A8C0B3885C503F6CC3FD@shsmsx102.ccr.corp.intel.com> <15ABA8C58ECE3396.16820@groups.io> In-Reply-To: <15ABA8C58ECE3396.16820@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTQ0ZjIwMjUtOGMyNi00ZmU5LThlZDgtYjE0MWFiOTdkZDQ1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVFhqbXA5MnJPMXhOTE1cL0lPUk1JTU1XXC9weEUwTnhFTkpQOUx1bk9YV01KdktNdU56QkhndkRtcjBrenBLTE9hIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: jian.j.wang@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sorry, I think I've already added. + } else { + + DEBUG ((DEBUG_ERROR, "ERROR: No/invalid StoredHashFvPpi located\r\n")= ); + + ASSERT_EFI_ERROR (Status); + ASSERT (StoredHashFvPpi !=3D NULL && StoredHashFvPpi->FvNumber > 0); + + Status =3D EFI_NOT_FOUND; + } Regards, Jian > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Wa= ng, > Jian J > Sent: Wednesday, June 26, 2019 1:34 PM > To: Yao, Jiewen ; devel@edk2.groups.io > Cc: Zhang, Chao B ; Hernandez Beltran, Jorge > ; Han, Harry > Subject: Re: [edk2-devel] [PATCH v4 0/3] Common OBB verification feature >=20 > Thanks Jiewen. I'll add it with a few code style corrections. >=20 > Anyone else has any comments? >=20 > Regards, > Jian >=20 > > -----Original Message----- > > From: Yao, Jiewen > > Sent: Tuesday, June 25, 2019 10:09 PM > > To: Wang, Jian J ; devel@edk2.groups.io > > Cc: Zhang, Chao B ; Hernandez Beltran, Jorge > > ; Han, Harry > > Subject: RE: [PATCH v4 0/3] Common OBB verification feature > > > > Thanks Jian. Comment below: > > > > 1) My previous comment 8 is NOT addressed. > > > > Please add assert for "StoredHashFvPpi->FvNumber". > > if (!EFI_ERROR(Status) && StoredHashFvPpi !=3D NULL && StoredHashFvP= pi- > > >FvNumber > 0) { > > > > With that fixed, reviewed-by: Jiewen.yao@intel.com > > > > > > Thank you > > Yao Jiewen > > > > > > > -----Original Message----- > > > From: Wang, Jian J > > > Sent: Thursday, June 20, 2019 9:59 AM > > > To: devel@edk2.groups.io > > > Cc: Zhang, Chao B ; Yao, Jiewen > > > ; Hernandez Beltran, Jorge > > > ; Han, Harry > > > Subject: [PATCH v4 0/3] Common OBB verification feature > > > > > > >V4: change FV_HASH_FLAG_BOOT_MODE definition > > > > > > >V3: update per Jiewen's comments > > > > > > >V2: fix parameter description error found by ECC > > > > > > https://bugzilla.tianocore.org/show_bug.cgi?id=3D1617 > > > > > > Cc: Chao Zhang > > > Cc: Jiewen Yao > > > Cc: "Hernandez Beltran, Jorge" > > > Cc: Harry Han > > > > > > Jian J Wang (3): > > > SecurityPkg: add definitions for OBB verification > > > SecurityPkg/FvReportPei: implement a common FV verifier and report= er > > > SecurityPkg: add FvReportPei.inf in dsc for build validation > > > > > > SecurityPkg/FvReportPei/FvReportPei.c | 416 > > > ++++++++++++++++++ > > > SecurityPkg/FvReportPei/FvReportPei.h | 122 +++++ > > > SecurityPkg/FvReportPei/FvReportPei.inf | 57 +++ > > > SecurityPkg/FvReportPei/FvReportPei.uni | 14 + > > > .../FvReportPei/FvReportPeiPeiExtra.uni | 12 + > > > .../Ppi/FirmwareVolumeInfoStoredHashFv.h | 62 +++ > > > SecurityPkg/SecurityPkg.dec | 9 + > > > SecurityPkg/SecurityPkg.dsc | 5 + > > > 8 files changed, 697 insertions(+) > > > create mode 100644 SecurityPkg/FvReportPei/FvReportPei.c > > > create mode 100644 SecurityPkg/FvReportPei/FvReportPei.h > > > create mode 100644 SecurityPkg/FvReportPei/FvReportPei.inf > > > create mode 100644 SecurityPkg/FvReportPei/FvReportPei.uni > > > create mode 100644 SecurityPkg/FvReportPei/FvReportPeiPeiExtra.uni > > > create mode 100644 > > > SecurityPkg/Include/Ppi/FirmwareVolumeInfoStoredHashFv.h > > > > > > -- > > > 2.17.1.windows.2 >=20 >=20 >=20