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 0846A740035 for ; Fri, 14 Jun 2024 07:07:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hJBwHtPn8W3dQfyORivogRhd8e8nl8TNrHUqHd65cAM=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID: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=1718348867; v=1; b=oMV1+NfSc8TJnuHRdUItZ7nhZGq/PLC5jjfYeCMKmNV1rnxHPG+vP6EVa5ib4CDHqE6dbTSy 8j55K+ge5JV1X39UFrD2EqNq/3uwvCss0/PExV3ZKDNhmTEtO2Ycf2EnMjiTLhAjeLIDLrxkcFp 9dNiNxy4CBlA7h4GkOGIttOZ6/Q8K2qFvqP5yRMAY3/4i45WdAahPOxiHjHNw5bS11myEVEBh2X r5aJsZtuZ3RiJ9takazpamSCKU92O5iGa6HoGT3PbFKgdeTjErjCMWIKT1d+GIaoQ9AiOHmUhhL N5DMZBnBGoNO24sn5duiEnk27H1NBiuYlHQyMNk6nomLA== X-Received: by 127.0.0.2 with SMTP id OYChYY7687511xQqaHbpvhL3; Fri, 14 Jun 2024 00:07:46 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mx.groups.io with SMTP id smtpd.web10.5754.1718348865591605832 for ; Fri, 14 Jun 2024 00:07:45 -0700 X-CSE-ConnectionGUID: GUuv9yg3QDi8c8MsN3TuvA== X-CSE-MsgGUID: Tj11WOrhQC6gSHw6Fr9ytw== X-IronPort-AV: E=McAfee;i="6700,10204,11102"; a="32763212" X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208,217";a="32763212" X-Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 00:07:44 -0700 X-CSE-ConnectionGUID: qetr2xL2QiazA19B0zGw0Q== X-CSE-MsgGUID: 2nKL0QgqT1KVMgmUrhFEEw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208,217";a="40517067" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa009.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 14 Jun 2024 00:07:45 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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:07:43 -0700 X-Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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:07:43 -0700 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (134.134.137.102) 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:07:43 -0700 X-Received: from SJ1PR11MB6227.namprd11.prod.outlook.com (2603:10b6:a03:45a::10) by SJ2PR11MB8568.namprd11.prod.outlook.com (2603:10b6:a03:56c::19) 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:07:41 +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:07:41 +0000 From: "Li, Yi" To: "devel@edk2.groups.io" CC: "Hou, Wenxing" , "Yao, Jiewen" , "Kinney, Michael D" , Pedro Falcato , Ard Biesheuvel Subject: [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+Jb7093oqeuwpSsG41P6wAdVV4w== Date: Fri, 14 Jun 2024 07:07:41 +0000 Message-ID: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR11MB6227:EE_|SJ2PR11MB8568:EE_ x-ms-office365-filtering-correlation-id: 6ce5ba7e-0249-4a9b-1b4a-08dc8c40aeb2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?iUIRI/GT1YTxiE2+9X+7PruY6dcHExtfGiCz32u28w5bWqUwN17ABjEkZ0ti?= =?us-ascii?Q?Fsno09m9ZYqQcBlbAki7QSA0anfYmpwAjZxa8yI60mgWgFQFzoQ/ov3PvgJv?= =?us-ascii?Q?kGfvtY+r++kgkbi1fOYTi3vijmKMbLSc4WoCgGW6rAOdL8GKrb0ndx3Ih/po?= =?us-ascii?Q?PcP/WTNeNHz9V3Z565pD8MIXUsjV86vifg23Y2d4ZqL8siR0bHjSjFQJhLDk?= =?us-ascii?Q?tkFebHt1xxFTaG3HXl1tAHGyVnir3i5bis2ViaHA+VQreSjLcEkXQRkvpkzf?= =?us-ascii?Q?PFXhQprWdlzXo0nR2YcNFZfMfiUBI9dE1NQUZ/G1QmsISr5HdAhvD26hUR05?= =?us-ascii?Q?ECX2YoKdEpVLrwMBw2pCwKlaL1g+dR6v4B5O3pABNQKxVycnwrkW0xAHqKhQ?= =?us-ascii?Q?Xi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KAGpgV9ZFc2OclTMEEwtOL1wYtSkawSDwJHv?= =?us-ascii?Q?cLosQdFir5Sw5PtKb7qCeOVM?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?RodylK4JC+X2WV3/OxZ0D5BMeE0cnFkdXfezRkLZ/UCR+D+6XQeP0ABSUkdi?= =?us-ascii?Q?6VXPmvps1nxkovLZp5j4RfELX9Uqwl7M6w5ZOTyaZOh8K5CXdQce8OmkkCC6?= =?us-ascii?Q?W66vIwtJt5tqgILpNM8GgUUnC4TlTMC/fH6RQqVudqxHdDs2kJBMsQNKYA+f?= =?us-ascii?Q?HwMPoPO5+lcpivtTq/5Vu5AqDfQpsTOkDb30zDQp/qwaGDmGgU8XobGwTYDC?= =?us-ascii?Q?naKmKgjRacKZRNpFTLdgokHa0m0kJT7WTMj5xfAwzxMyzwkv5ThaOkrL5TI1?= =?us-ascii?Q?HnehTbTC92w43fW5rKT1Va5BbxWRkslOoPAa0pSjueoWDELTMQcvs3pTpwj7?= =?us-ascii?Q?bQYjL+ZXPfaqJwW2Y9iw14hDlzfCi+inCH0W9CFdhb+Zagrw9RxRk9vfh0lv?= =?us-ascii?Q?JE3dhacxXGnIdY3umO6lc2YQU0n04oIjcOTV9LnlvLoZAKMi2mCFyPT7Q6z+?= =?us-ascii?Q?KY798zn5eB+suZcUzWXnmmrnWhqvt1lwaBwMMQauuNCvQAvV+oMvKyXZK9iC?= =?us-ascii?Q?wzIl0K79O0whJUYGl+j1GmNN1ELq0i0E8GvXoGDlSklc2qJAwzl38R8hALH4?= =?us-ascii?Q?uXexp7BNL54Js8vjzQrfY6srFXRtQfSe8VOa7y1htDuR+0QJLO255xXsgzjQ?= =?us-ascii?Q?6/P3Cp5TwHylhh61h1z/ETnJT7p0F+E7jmtNhPXjIvu79z7PZFQw2C4uqMWn?= =?us-ascii?Q?wY2eVV2HcmTOIppbQ3AIW8ssq9F/QUQiYnQlvxABz8bhE0TrawRSiwdc9vHy?= =?us-ascii?Q?ziIHLSyZqUVU/i6nOMzuPAHK1napLjb5bWEpxJPnlgoqJhxSNGlfPSdzM7eC?= =?us-ascii?Q?ztBSfU5HlYw1Pnrxl3zpi/NLNAjY9nMQrgyrkBXhrwBs7ik4Vy97hNIx4TVt?= =?us-ascii?Q?t1E1zuA7cvFy8Ak00KCQDJHa+w887UpxUxUYuU2vtfvuVZjiy1vo+FwoTfni?= =?us-ascii?Q?8Akacr1Mz4q9geo/1DQC9ukJk6Eap7n+8Ad4I0iHNQrzQxJHUplh5APtlVc2?= =?us-ascii?Q?dqc04+Laj7ZKwG6BmCxhXkPsaVEe25ukyy0vxSpA1zZ9zDI25jK+ma71D3Pb?= =?us-ascii?Q?XJpzgPTNqCuk5v4/YtiIkvKy1q8aDztHY/jI23t+E9Fre2X0BYTpEZk5Aae+?= =?us-ascii?Q?CFiNQb68ulLqY1FAaByHv5pbSfHm+B9BJEr+AMowPfI3mVcVCDtcM4/d6136?= =?us-ascii?Q?Mf73prsSkDyl377C6cuQR0GAwWQzsjbgaOAw6HGN0LNErpbmANJgNV2Rg5x7?= =?us-ascii?Q?4tTcrkTgG1+f7OTtTl/OfYtNpkPXuzP+CGgsQy+Mfchece8jvwN2njK3b/Ye?= =?us-ascii?Q?Ew2XX/ytpHz1exHwtFs7XHBS11OtOFdgnYbDcs57LHpj+TAoN7u9WiDT/Nyu?= =?us-ascii?Q?SC6bDhl0VcodFjaR0ZZ4QZ6kUu3RWyxman2tPSwoLf495Y3BQSFVbmwqtI+6?= =?us-ascii?Q?VQuNEfMn+f1qJv8nxvZnhoJJxTpzuzDin3gNLvnn1484MPRIdahRMvm5ewD5?= =?us-ascii?Q?SZ7dQby4k4ihj2+Yms9DdhWAL+Lkc4jOpzX6VjetNZTyoDYoj+KDtt0Gor1A?= =?us-ascii?Q?51XqDXFSEs9M9ovGCyc=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: 6ce5ba7e-0249-4a9b-1b4a-08dc8c40aeb2 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2024 07:07:41.6192 (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: 3xKMtGT8S5jmjmqRM0f54uk0dXCbLSo3S3KqIy6tGv7H9QjNzwol4WPKnnSuLiMlUhXkCXyQ0oFpcKhX5TTzjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8568 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:07:45 -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: CpBdivgMtcOKKhnwKIKpHPIMx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_SJ1PR11MB622738D20BDCE7E7D51F2559C5C22SJ1PR11MB6227namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=oMV1+NfS; 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_SJ1PR11MB622738D20BDCE7E7D51F2559C5C22SJ1PR11MB6227namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 (#119567): https://edk2.groups.io/g/devel/message/119567 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_SJ1PR11MB622738D20BDCE7E7D51F2559C5C22SJ1PR11MB6227namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 (#119567) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_SJ1PR11MB622738D20BDCE7E7D51F2559C5C22SJ1PR11MB6227namp_--