From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id AC232D80550 for ; Mon, 5 Feb 2024 00:54:51 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=zj1hrwxnyql9PByQJYpzbYwBcSG834rCh3nd9/EyXVo=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe; s=20140610; t=1707094490; v=1; b=wAdfi6SjEojcVv8wBtBY7+wYo/iazuhLqUrGFRsnlV8u+SmRSAcUNGyktQP8B70u5DIOBly0 ur9NxfeuG9nA9hSF0b9FCtBTgY5zhqlHW4/QksYOqkA56Jr/alheFTxML2BHvZh5qFfrY7E0BjS 4R++Jjt6fYtp9cUEErDnvZZA= X-Received: by 127.0.0.2 with SMTP id a9ljYY7687511xsF9LXeDDHd; Sun, 04 Feb 2024 16:54:50 -0800 X-Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by mx.groups.io with SMTP id smtpd.web11.27095.1706891544050475762 for ; Fri, 02 Feb 2024 08:32:24 -0800 X-Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a2d7e2e7fe0so193370666b.1 for ; Fri, 02 Feb 2024 08:32:23 -0800 (PST) X-Gm-Message-State: eTYfXpCgNbuafpSiWgAffuJqx7686176AA= X-Google-Smtp-Source: AGHT+IGXQsfYNS43tLpzmjV3TmM5su+1rERT1/QX3bAAJeoALriA+AuGgOvOBKDHhCrG8n7/KguHVw== X-Received: by 2002:a17:906:aec5:b0:a23:5939:759e with SMTP id me5-20020a170906aec500b00a235939759emr2045983ejb.26.1706891542088; Fri, 02 Feb 2024 08:32:22 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWtKS91idddtF6Szn+0Yxs0glqnI5g88g1JUxjrzfjnNrf0tcZIVnb20EmsbJc8F3Rf9ngbmcnmMfxnKPlj5HNyFqShsSJoZWb1tgfLzDh88lIlC8Z7h1FlUQKACeE0jvgSjYfVgE0EYYRnrFKtpz6fPloxtV5zcRGQiTPTQYelQDntwznbBEVV1QN4ix5W6+orn+hloupyFtDV+lDOC6YoYjJZuDd4jCna1056oCn3jAPqvokKTk2/2+Ov5Bxn78XVnEg3gsERg4wJ X-Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id sn24-20020a170906629800b00a372b38380csm241823ejc.13.2024.02.02.08.32.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2024 08:32:21 -0800 (PST) From: "Lee, Chun-Yi" X-Google-Original-From: "Lee, Chun-Yi" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Jiewen Yao , Jordan Justen , Pawel Polawski , Oliver Steffen , Ard Biesheuvel , ruifeng.gao@intel.com, "Lee, Chun-Yi" Subject: [edk2-devel] [PATCH] OvmfPkg/SmbiosPlatformDxe: tweak fallback release date again Date: Sat, 3 Feb 2024 00:32:01 +0800 Message-Id: <20240202163201.18819-1-jlee@suse.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 Reply-To: devel@edk2.groups.io,joeyli.kernel@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=wAdfi6Sj; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) In case PcdFirmwareReleaseDateString is not set use a valid date as fallback. But the default valid date can _NOT_ pass the Microsoft SVVP test "Check SMBIOS Table Specific Requirements". The test emitted the error message: BIOS Release Date string is unexpected length: 8. This string must be in MM/DD/YYYY format. No other format is allowed and no additional information may be included. See field description in the SMBIOS specification. Base on SMBIOS spec v3.7.0: 08h 2.0+ BIOS Release Date BYTE STRING String number of the BIOS release date. The date string, if supplied, is in either mm/dd/yy or mm/dd/yyyy format. If the year portion of the string is two digits, the year is assumed to be 19yy. NOTE: The mm/dd/yyyy format is required for SMBIOS version 2.3 and later. So, let's tweek the fallback release date again. Fixes: a0f9628705e3 ("OvmfPkg/SmbiosPlatformDxe: tweak fallback release date") [edk2-stable202305~327] Signed-off-by: "Lee, Chun-Yi" --- CryptoPkg/Library/OpensslLib/openssl | 2 +- OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CryptoPkg/Library/OpensslLib/openssl b/CryptoPkg/Library/OpensslLib/openssl index de90e54bbe..830bf8e1e4 160000 --- a/CryptoPkg/Library/OpensslLib/openssl +++ b/CryptoPkg/Library/OpensslLib/openssl @@ -1 +1 @@ -Subproject commit de90e54bbe82e5be4fb9608b6f5c308bb837d355 +Subproject commit 830bf8e1e4749ad65c51b6a1d0d769ae689404ba diff --git a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c index 0ca3776045..e929da6b81 100644 --- a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c +++ b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c @@ -160,7 +160,7 @@ InstallAllStructures ( DateStr = (CHAR16 *)FixedPcdGetPtr (PcdFirmwareReleaseDateString); DateLen = StrLen (DateStr); if (DateLen < 3) { - DateStr = L"2/2/2022"; + DateStr = L"02/02/2022"; DateLen = StrLen (DateStr); } -- 2.12.3 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115090): https://edk2.groups.io/g/devel/message/115090 Mute This Topic: https://groups.io/mt/104153758/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-