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 8D2FAD800F0 for ; Fri, 14 Jun 2024 07:24:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=YjKmpI1L4AjpNQlHFYjtSQaH1GjBIn1SmHDTEt53a1g=; 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=1718349876; v=1; b=SGkcHPY9Ipw0fYfZE0BEeHIgtoh32UPCWkijrrjtwM+phe0u5kfc6Sbcj3V3g6uSVscPoIkA /JPYEyF5r1HvejNxU+9zxIzDKzgIzwycFPH5zch9iu5Rglz0IH2hlWCW8G0NA1ygsa17DSmGPIX bS87guTJ3DeWMCF6Tx56sovJZvdk2uNDI4BW6GWh6ihPyvpV84O72UG4iJxxYkZUk5aOdKRrVaQ gyu9ohwzuW5FDlvC5Tv17M+e2Z6CDjdkXybUf+bmxb/S0T8Rak32MuFOzRukZ3hUkldQucQ6Pgi C5X4Rim+ef9k0PQos0Jgt7HmZK8Yia7rTlUUmw8IdroCA== X-Received: by 127.0.0.2 with SMTP id 1lRqYY7687511xHcT6oP2p3t; Fri, 14 Jun 2024 00:24:35 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mx.groups.io with SMTP id smtpd.web10.5969.1718349874424138619 for ; Fri, 14 Jun 2024 00:24:34 -0700 X-CSE-ConnectionGUID: gJ6zwI2wRD+IWv7GzOaJzQ== X-CSE-MsgGUID: fMxSyL78QMurmQaW/cp7EQ== X-IronPort-AV: E=McAfee;i="6700,10204,11102"; a="32766026" X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208,217";a="32766026" X-Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 00:24:34 -0700 X-CSE-ConnectionGUID: jnXvqJ3gTDOIsHeKngAjkw== X-CSE-MsgGUID: 40XutGJPRgCw90WqWUfnRw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208,217";a="45331201" X-Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 14 Jun 2024 00:24:35 -0700 X-Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) 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:24:33 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) 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:24:33 -0700 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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:24:33 -0700 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (134.134.137.100) 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:24:32 -0700 X-Received: from SJ1PR11MB6227.namprd11.prod.outlook.com (2603:10b6:a03:45a::10) by BN9PR11MB5307.namprd11.prod.outlook.com (2603:10b6:408:118::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 07:24:30 +0000 X-Received: from SJ1PR11MB6227.namprd11.prod.outlook.com ([fe80::c4da:83f1:f7be:e307]) by SJ1PR11MB6227.namprd11.prod.outlook.com ([fe80::c4da:83f1:f7be:e307%4]) with mapi id 15.20.7633.036; Fri, 14 Jun 2024 07:24:30 +0000 From: "Li, Yi" To: "Yao, Jiewen" , "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+Jb7093oqeuwpSsG41P6wAdVV4wABXHFAAAAWhNA= Date: Fri, 14 Jun 2024 07:24:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR11MB6227:EE_|BN9PR11MB5307:EE_ x-ms-office365-filtering-correlation-id: fb8ebcbb-b7d3-48fa-7bbb-08dc8c4307c4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?+7rV3YJP+MIwydNiIjTcoTm6B0guhnl7ufZWySo+WAtlYBqB1cdIKb1QI1C/?= =?us-ascii?Q?7+ROI3bDnIVLlloz3uCrPeL/t3vO6O0ZYwMnzqD4EFIimgFy3yf2olKsl2Hb?= =?us-ascii?Q?SudEm4J3/YyXNfqT9KGtAz2u2cJxsVVoelxxGkuaGkSx96C4QBq5ZVpguW2H?= =?us-ascii?Q?xRfJ6SWln9xmRVgJGwvwiGZlulQ5fzWwq8Dh9HWIX8IxHD7yUjjGLGn9t5L3?= =?us-ascii?Q?Oj4gq89/3kGxFabyc/PzSO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HjZDScVgtvxF2RCMptsI0Yl8aVMu1ifhTK3NbTpPJ03ypmCUlZkxivfs/?= =?us-ascii?Q?0jXTnwUE/OF2f3EpyiG6HsVjX4a2+9T+0E/HAaioP8TTwSgomu3/1/BqHsy/?= =?us-ascii?Q?4kinnkL7kPHoSXg9A6BcPQCPhzIXaxiK1C2MY747y7Qvo90MVqvpTXAbrGVI?= =?us-ascii?Q?Z9h846O1fNIp4p6WSo7A6qO5?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?JiG+cmPw+NaLr3jDNKqdsO4JbdOONSVFPv5LagB+DHFezPpALOClGQp+c3tc?= =?us-ascii?Q?oxl08B2bKuc7sohqmIBiYiym98UFhPGM1b9iaCegH1l0zZvjqxoYJXOiqEb9?= =?us-ascii?Q?PjiKNGJiwJCDskNMWcsIaJc6GJXFUXoXvqi0WuE09qhLoWVnI1kF96kyy8zt?= =?us-ascii?Q?ZgJl1j4gGF1CuDeodrXpdQS2ETsAlTGMXMaBqmbU+tS7r7ZwA0hQL2D5DVgn?= =?us-ascii?Q?h1U/cx9H/zEe0RkfUXPLys1OPL3J7Ja0XejdGbeAS6cktoAWjaJkoPQ3Sj9n?= =?us-ascii?Q?3M1ib15M+HsjJE35DZ7WXuIOyemnLfpXEpx0HNDXYHk06xBvVevRjeYlJE+G?= =?us-ascii?Q?oYTeadL8b8aT7oOFPGyx5NmWx68wAmhf6a2AfuqGjOhASqeaVd5ExJXI+K1M?= =?us-ascii?Q?IHBL3Id0cire9QDy5ZHex5Y7aSn66ukM2aWTIpcIVZJuuenlsi6p+qPjIj3i?= =?us-ascii?Q?fanex7oTjmKg/edpVAnQ5I3avQeZEARzmH3uN1NG8qfGTb00OkgC3lPpE1RY?= =?us-ascii?Q?n4hRJok5z9LPs3iLdXCBhMQLSvlDWblvG5eNFCo4SnSSkYtb6iSdg+NNRQmA?= =?us-ascii?Q?mketxaz9F86snTjMVFO5IV4XhD4nffhf2OKf48kdAikwOCvjsV/pypYYADtg?= =?us-ascii?Q?wepRGndZEIBfaYvBCMLITbHIbIU3zb2M/AKv9QfEbNrzBwe761WAyuqkJcrt?= =?us-ascii?Q?Flb2IyWNVgCxBScyXhl3HNB1AKvFRfr3r30ax3+Mr/ukmBibw7NKL32u5glQ?= =?us-ascii?Q?/2TdOUyLO5SoXO3QQptIuuYI6u7QLIA1MFP6OFklbmsqXImYzfMT9GHYahnt?= =?us-ascii?Q?1MpCBJggaXjTZXgWfzxF4cgrf3R+ZaSWKPrjHqTX2JT6M2pVrN+dj33FgC6W?= =?us-ascii?Q?w13Nc98oEMfODtcplR7X/NcwYc70xjwBbuzP1TnYQgzWieufHBgCsCMOX+UD?= =?us-ascii?Q?d1XFqOBBqRxR1fynY1lzR7e7a6+v2jEMrNFmNKtJBYJvR1QTn6WsSWPgemjd?= =?us-ascii?Q?NkU0c4usgNGt2m6oQc9t7dBpJRH/XIiwQztgY8WXKn5GW6peg8T0iipEhbXU?= =?us-ascii?Q?SA538DwO4vn6mLtkSp/RElcPVLiT5T8evmRcfngG65ecYIU7DnWb3U4H26YV?= =?us-ascii?Q?WsybcJG9md/oXYLTGhwCpI3kLaV3W7a9n4LFF9O6B3fafJJKE9ovtb684Qxk?= =?us-ascii?Q?pS5aTYDRvRGCWIAWNDZTep85j2OlH7jG6n03B+T6QZ4HWASiuFL31awEpjvT?= =?us-ascii?Q?ZhnSRznH3si6lKNk4ZnCjwtiCGiEaW49cQ0eVIbnXhbBwTdp7RaSzgw/+05r?= =?us-ascii?Q?9YaYImyQbTR+5IQwtJM09ePDd3u1QTJyCMam3GhOvyigRiDKJALe40wFOP87?= =?us-ascii?Q?hNg7lL4G5vSJHXDq9XwxmndkiNl4o4AqprQAtqlvh9mWpL67Ne4IaZU1YJFV?= =?us-ascii?Q?dM4pHnjMtBumK6HqDqffriJXrM6vfRyLytp6p0mwk4J9/aOjCMXciNM4dPEB?= =?us-ascii?Q?hDpqjs+NBZDTZkL9J7rTvX3iUD1PtC4vQXkqqdGgw6BGoK/D4Hf9eLmpuIN9?= =?us-ascii?Q?GI8XMHwfyxV8vT3o/Uw=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ1PR11MB6227.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb8ebcbb-b7d3-48fa-7bbb-08dc8c4307c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2024 07:24:30.0523 (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: RBqG1ZSF/aaHnruMoFgaMvAZNfYHSNFi7oQR76qkdbL4xf//Xk/JiLdU9zIQshPT7v3yaysTDnPy0S3xfDbyPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5307 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:24:34 -0700 Resent-From: yi1.li@intel.com Reply-To: devel@edk2.groups.io,yi1.li@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: eMuCe8gKYj5iS8GSS8Fy8rt0x7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_SJ1PR11MB6227FEB6F483A522A30D062AC5C22SJ1PR11MB6227namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=SGkcHPY9; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) --_000_SJ1PR11MB6227FEB6F483A522A30D062AC5C22SJ1PR11MB6227namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Yes, we can create a host test specific lib if no better ways. Regards, Yi From: Yao, Jiewen Sent: Friday, June 14, 2024 3:20 PM To: Li, Yi1 ; devel@edk2.groups.io Cc: Hou, Wenxing ; Kinney, Michael D ; Pedro Falcato ; Ard Biesheuvel Subject: RE: CryptoPkg host test broken due to smoketest for RDRAND 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, Micha= el D >; Pedro= Falcato >; Ard Bie= sheuvel > 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 (#119569): https://edk2.groups.io/g/devel/message/119569 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_SJ1PR11MB6227FEB6F483A522A30D062AC5C22SJ1PR11MB6227namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Yes, we can create = a host test specific lib if no better ways.

 

Regards,

Yi

 

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

 

Can we use a host t= est specific RngLib?

 

 

 

From: Li, Yi1 <yi1.li@intel.com<= /a>>
Sent: Friday, June 14, 2024 3:08 PM
To:
devel@edk2.groups.io=
Cc: Hou, Wenxing <wenxin= g.hou@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Kinney, Michael D <michael.d.kinney@intel.com>; Pedro Falcato <pedro.falcato= @gmail.com>; Ard Biesheuvel <ardb+tianocore@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 (#119569) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_SJ1PR11MB6227FEB6F483A522A30D062AC5C22SJ1PR11MB6227namp_--