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 7C063740035 for ; Fri, 14 Jun 2024 10:41:23 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Xe9uFtSoanuWmuvEqX/aSRdLcXuxjdvgqeTXqDVrL3A=; c=relaxed/simple; d=groups.io; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20240206; t=1718361683; v=1; b=aMtfFzmE3cVlQT3InVV/D0YtQUuqHftU6rWEENC35xVqBehIsXhrnpr1jeyjaJ3q1opmzidj Aj8MHPBc/qnd29YZIgwTnBzxYoUvl3BUpYV4G+za3eS3KsGmYFE6xcTV6sUS7gn0hiZLsUCoW9V obg/c0oJQErIfteGydjmPvly+aXX0rL+N0DVRj4wBU0YZASEwGjk5SKb6Oo7AxZ7aRFIMcimYup P9R1NDLFxLnWxTlBTgS/hOPUz+z5PcKwaQKXndCbo9mu2q4W/DUCKf2FFfR/zdjXnn0vm8PSOuY gEIDFPXYUze+IO9MxB8NKtaxpSe7PlMXOk/5ZfeQ4rSLg== X-Received: by 127.0.0.2 with SMTP id tvm6YY7687511xUp8FtT1VUn; Fri, 14 Jun 2024 03:41:21 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.8454.1718361681118434548 for ; Fri, 14 Jun 2024 03:41:21 -0700 X-Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-600-7S-W4vRaPQ6gGI1fdDOW-Q-1; Fri, 14 Jun 2024 06:41:18 -0400 X-MC-Unique: 7S-W4vRaPQ6gGI1fdDOW-Q-1 X-Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BB09A1955E8C; Fri, 14 Jun 2024 10:41:13 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.178]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2074819560AA; Fri, 14 Jun 2024 10:41:13 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 6B7141800D65; Fri, 14 Jun 2024 12:41:10 +0200 (CEST) Date: Fri, 14 Jun 2024 12:41:10 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io, yi1.li@intel.com Cc: "Hou, Wenxing" , "Yao, Jiewen" , "Kinney, Michael D" , Pedro Falcato , Ard Biesheuvel Subject: Re: [edk2-devel] CryptoPkg host test broken due to smoketest for RDRAND Message-ID: <3kj5r4awgurnnlqm67pvpumo4rwwhounzgynydtdohs7cif4qw@edfavg3ztcaq> References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.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 03:41:21 -0700 Resent-From: kraxel@redhat.com Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: jslHvPaSwJKWAoSFLMfxhXiZx7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=aMtfFzmE; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.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 On Fri, Jun 14, 2024 at 07:07:41AM GMT, Li, Yi wrote: > 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? https://github.com/tianocore/edk2/pull/5775 take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119571): https://edk2.groups.io/g/devel/message/119571 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] -=-=-=-=-=-=-=-=-=-=-=-