From nobody Mon Feb 9 16:13:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+52626+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52626+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1577774673; cv=none; d=zohomail.com; s=zohoarc; b=VrT+Nmqv4A+lybnXvl3rlJZsBi5MwGsZWTi2hZqJUFXCcb2g/ZI1yeQq57k+kbIadoGhDhEoH5r3tj8hR8PYOT5eUdLYcrvu3+kjuBag8o61KBBTnYoMNf+PbvcS7oCCHhKOuIYo8anYU4lYSyaqHKFgH61ilzaJzPrwjM2ziDo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577774673; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ki7ub+rj37pGjW1Loq+AqwMzWVtsnd8B0PrMK9GOjJE=; b=DBP5yFO9VuEV+1DizowUd8Weuumg0tKxiZk+KrR700UG8nb+oYBlWMrv7bGw6fCvuKAB8cF8k3Um99ebYYGbznu3Irt5Ij/uxA2UD6Vrb7TUFo2YDJyRS28ifg26OpovL4ZSV8dr8v+7oQ2+SDAyxC7b1rIkhzHzSZ3ZjKNTfFY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52626+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1577774673224382.8300330114008; Mon, 30 Dec 2019 22:44:33 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id hkwSYY1788612xsIKUGcOv7x; Mon, 30 Dec 2019 22:44:32 -0800 X-Received: from mga05.intel.com (mga05.intel.com []) by mx.groups.io with SMTP id smtpd.web09.558.1577774671219253761 for ; Mon, 30 Dec 2019 22:44:32 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Dec 2019 22:44:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,378,1571727600"; d="scan'208";a="419160645" X-Received: from jyao1-mobl2.ccr.corp.intel.com ([10.254.209.225]) by fmsmga005.fm.intel.com with ESMTP; 30 Dec 2019 22:44:30 -0800 From: "Yao, Jiewen" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Dandan Bi , Star Zeng Subject: [edk2-devel] [PATCH 3/6] MdeModulePkg/Smbios: Done measure Smbios multiple times. Date: Tue, 31 Dec 2019 14:44:09 +0800 Message-Id: <20191231064412.22988-4-jiewen.yao@intel.com> In-Reply-To: <20191231064412.22988-1-jiewen.yao@intel.com> References: <20191231064412.22988-1-jiewen.yao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,jiewen.yao@intel.com X-Gm-Message-State: 8EhN7kKYS8Ij34n6QYxUtopQx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1577774672; bh=FO85J7ud28oDfS98IvHJ/A2UwPTe192K8QIXZ1YDTqc=; h=Cc:Date:From:Reply-To:Subject:To; b=w8ic1H14W/O9NKIsPfVGv4Y/lubPlgW98e+srlgpWB+rBiBlnMQDwjlpD8OufTDhiur iVNkvvEFT6yewZevLYdcXfNQqHk2fbuPp8+Vt7pXrTbA79pB6ccX1JkLePyH1toVF+iP5 KLrKTsAIt69VVVbpwUDi5bQiPx2FLj7TsEM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2439 In current implementation, the SMBIOS table is measured multiple time in every readytoboot event. This causes Smbios Table record appears multiple time in the TCG event log and confuses people. This issue makes it hard to implement 800-155 reference measurement. This patch closes the event to make sure Smbios is measured only once. Cc: Jian J Wang Cc: Hao A Wu Cc: Dandan Bi Cc: Star Zeng Signed-off-by: Jiewen Yao Reviewed-by: Star Zeng --- .../Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementD= xe.c b/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c index 7b5d473146..5ec2aca095 100644 --- a/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c +++ b/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c @@ -577,8 +577,8 @@ MeasureSmbiosTable ( TableAddress, // HashData TableLength // HashDataLen ); - if (EFI_ERROR (Status)) { - return ; + if (!EFI_ERROR (Status)) { + gBS->CloseEvent (Event) ; } } =20 --=20 2.19.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52626): https://edk2.groups.io/g/devel/message/52626 Mute This Topic: https://groups.io/mt/69344970/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-