From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 1112CAC0B5B for ; Fri, 14 Jun 2024 07:20:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Xd/bSqdkvQCWtpquAkSjETfXGqSUDlgSp+NPEr9PTms=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20240206; t=1718349602; v=1; b=L7qxe2G3JOCD82uOXTvjw3kDYj0NP5TiTV36VIClMpeYj4IFaMxJGVy8sIGlC9uBJl/XSSK9 rinedIGjWVxx+swNpFMor5BX3O2G59q6vT9u5BPkL/f7wzvt/QOWbv2cikeRLmtCaoiM3uywi95 MVzMpYnGQPF1TlCAVVjIjS4Aba5HDxByUQlN6kvzjpbLGisXzmEvfQEjdkp0F3fz6d0UOZSQ5bX oWABWhfE23Xlfhnx9AlBdhv/EWk1dS/pdhR6vAW9zjJmxQIu1sGE5I8Ra638r/UmpSM+wulAjVr GWG1n8BfjmllpgWfFkgSameV0tsx+nuVqH1frovRK+5mQ== X-Received: by 127.0.0.2 with SMTP id xXLIYY7687511xDgjfMehxCL; Fri, 14 Jun 2024 00:20:01 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mx.groups.io with SMTP id smtpd.web11.6029.1718349600940246851 for ; Fri, 14 Jun 2024 00:20:01 -0700 X-CSE-ConnectionGUID: HeRzqwCMTRy6F1vgiKgiww== X-CSE-MsgGUID: v/8jopVAQ2SYxArRm5Fo6w== X-IronPort-AV: E=McAfee;i="6700,10204,11102"; a="15194895" X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208,217";a="15194895" X-Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 00:20:01 -0700 X-CSE-ConnectionGUID: pK9vijNSQkytRp7GF3Vs+Q== X-CSE-MsgGUID: RKK/qw4NSvq67JJl67R1rg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208,217";a="44839762" X-Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmviesa005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 14 Jun 2024 00:20:00 -0700 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 14 Jun 2024 00:19:59 -0700 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 14 Jun 2024 00:19:59 -0700 X-Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Fri, 14 Jun 2024 00:19:59 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 14 Jun 2024 00:19:59 -0700 X-Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by DM4PR11MB5969.namprd11.prod.outlook.com (2603:10b6:8:5c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.21; Fri, 14 Jun 2024 07:19:57 +0000 X-Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::6444:ca4c:aa3e:f8d2]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::6444:ca4c:aa3e:f8d2%4]) with mapi id 15.20.7633.037; Fri, 14 Jun 2024 07:19:57 +0000 From: "Yao, Jiewen" To: "Li, Yi1" , "devel@edk2.groups.io" CC: "Hou, Wenxing" , "Kinney, Michael D" , Pedro Falcato , "Ard Biesheuvel" Subject: Re: [edk2-devel] CryptoPkg host test broken due to smoketest for RDRAND Thread-Topic: CryptoPkg host test broken due to smoketest for RDRAND Thread-Index: Adq+Jb7093oqeuwpSsG41P6wAdVV4wABXHFA Date: Fri, 14 Jun 2024 07:19:57 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5872:EE_|DM4PR11MB5969:EE_ x-ms-office365-filtering-correlation-id: d0e29b96-1062-406e-03a6-08dc8c42652c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?5gKBa27rcQiQ8xQ26+0plJRDvkdtVyNpYWz+baunSCXDWeAA+GbjcU7SF4oG?= =?us-ascii?Q?94DGML/XrwL+kwdmo8I87Y67PNOk9uEzbef/2ZlRWa/j16O/g7/xFUE8YwsD?= =?us-ascii?Q?VJF2ILNWMs0CDB9Cuemp8ddZAjWfGhjtjP9Wl03m+6VR68MKxyeMm9nM0W6b?= =?us-ascii?Q?JGIM33QulKQlsrYjtqBTl47PUuhox4C8Q2nxAjlrpwP7y4deNjqD2570CYGv?= =?us-ascii?Q?lj28DGk8UQxa307A/tglGnJAOKkauAHwzXpuWnyuISfR3Wu48rVzqM0Wk4IK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oRKFfhkg2W2bbPkAyFB24JlO9TyFbQKY7rztE3j9eizrkO?= =?us-ascii?Q?uacz0uPQ2gxy3u5R/NCHpMxNT5UmggmVJeOV9TCSKQRzLi+h9r7trD6e66fl?= =?us-ascii?Q?21w7mlGAam1X1czZn6IN+WWrqWyQ3mQWtBhr3X9nNoPLlM9caZkTp0oKZ6eU?= =?us-ascii?Q?500ubcXSS8AXy/LTLCdU35gk?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?iTRzCNCh8kJNFVmo7LjHmmyEvRN+BXwvax1EluG7ZPb7mvyhStOgrMkw/mn9?= =?us-ascii?Q?AAND0NH0EvGyG7zgopQCEnxDoaHT6AZcw1JTN36S3FjWqcyIsTkmQ6AOI0k5?= =?us-ascii?Q?UDDJllnR20zlszSJNCiAfe5K/kxo74bLsl+DzM6B4CQBHsxpFY8F/beah+mV?= =?us-ascii?Q?26ThSncMFaJ3k7jRSZ1MiX8md5YEhcHC8HDhx6CPJ66jpU6r5jpIvgiHHAhO?= =?us-ascii?Q?nPRydWinBeOClsbb2wLvYu8zPeuEu8/ceAISu1kDrk5Z8UdWkxaTXkTxmQqG?= =?us-ascii?Q?IxhI4x22AsB/h+KVJH8ywE2FtzHGneIQ+cjSn76Pljs0k3/MnVYmJVQdSNrL?= =?us-ascii?Q?LXzpz5s6gtRJPIJS/3ZkEV8uExm4dpcfdEo3EjnbIeqOYtBMXGu5HbPCVEEl?= =?us-ascii?Q?uQ9fXBDVWPD3/a6GQkTLRzoTDZ8B+oamLbWGTQXsardKY/Ke6UK55B7a2kF2?= =?us-ascii?Q?7UaZEWhqj3Deh+8mP71lVLEBoITd9LDrFQtPjcbwrlOQoIul7rymMjUDv4XU?= =?us-ascii?Q?O5WtXX+Tw9oWIvAiRVUTT1UgvEPpC87JqkRoYUBqs9rjER5kMwgihf3FkdEv?= =?us-ascii?Q?C/gRIX08KCKDCQtJVpqg/o8sGB6rIgLx17QTDz6r+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?Q?sa/gUG8X0DmG6Q5F704htIiKhSZOHTQNZ/+ZaJPLRme12n9wPCjEhTYPHXJb?= =?us-ascii?Q?yq6EghYoxXjXlEhjMV7XRMcRqiVNwEfRmxGH0THA?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0e29b96-1062-406e-03a6-08dc8c42652c X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2024 07:19:57.2437 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fsW2NNjIaGUiC1CI0Vv7OFVvL/bKDU16s7UcbO2ba2o7yfzIdJFP46noXyJv9xGtwtI2psT7lqUzrSw4H5Qp/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5969 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Fri, 14 Jun 2024 00:20:01 -0700 Resent-From: jiewen.yao@intel.com Reply-To: devel@edk2.groups.io,jiewen.yao@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 4gZkSuPcBNd4qQrgzKHzTqfVx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW4PR11MB58729C8F49C7944591EBE2218CC22MW4PR11MB5872namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=L7qxe2G3; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io --_000_MW4PR11MB58729C8F49C7944591EBE2218CC22MW4PR11MB5872namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Can we use a host test specific RngLib? From: Li, Yi1 Sent: Friday, June 14, 2024 3:08 PM To: devel@edk2.groups.io Cc: Hou, Wenxing ; Yao, Jiewen ; Kinney, Michael D ; Pedro Falcato ; Ard Biesheuvel Subject: CryptoPkg host test broken due to smoketest for RDRAND All crypto host tests which consumed randlib broken due to: https://github.com/tianocore/edk2/pull/5714 Not sure why this issue not reported by CI when merge this PR. The reason is that the ```BaseRngLibConstructor``` of rnglib is not called = in host test, so ```mRdRandSupported``` is not enabled. Then the Crypto API calls ```GetRandomNumber*``` will fail. GetRandomNumber64 ( OUT UINT64 *Rand ) { ...... if (!ArchIsRngSupported ()) { return FALSE; } Is there a way to let unit test host to call the constructors correctly? Regards, Yi -=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 (#119568): https://edk2.groups.io/g/devel/message/119568 Mute This Topic: https://groups.io/mt/106666288/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --_000_MW4PR11MB58729C8F49C7944591EBE2218CC22MW4PR11MB5872namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Can we use a host t= est specific RngLib?

 

 

 

From: Li, Yi1 <yi1.li@intel.com>
Sent: Friday, June 14, 2024 3:08 PM
To: devel@edk2.groups.io
Cc: Hou, Wenxing <wenxing.hou@intel.com>; Yao, Jiewen <jiew= en.yao@intel.com>; Kinney, Michael D <michael.d.kinney@intel.com>;= Pedro Falcato <pedro.falcato@gmail.com>; Ard Biesheuvel <ardb+tia= nocore@kernel.org>
Subject: CryptoPkg host test broken due to smoketest for RDRAND=

 

All crypto host tes= ts which consumed randlib broken due to:

https://github.com/tianocore/edk2/pull= /5714

Not sure why this i= ssue not reported  by CI when merge this PR.

 

The reason is that = the ```BaseRngLibConstructor``` of rnglib is not called in host test, so ``= `mRdRandSupported``` is not enabled.

Then the Crypto API= calls ```GetRandomNumber*``` will fail.

GetRandomNumber64 (=

  OUT &nb= sp;   UINT64  *Rand

  )=

{=

  …̷= 0;

  if (!ArchIsR= ngSupported ()) {

    = return FALSE;

  }=

 

Is there a way to l= et unit test host to call the constructors correctly?

 

Regards,

Yi

 

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#119568) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_MW4PR11MB58729C8F49C7944591EBE2218CC22MW4PR11MB5872namp_--