From nobody Thu Apr 25 01:44:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1623259943; cv=none; d=zohomail.com; s=zohoarc; b=Qzdxzam51D9TKJSBRPFrtGnGBYl+aYTgknTY26M6LjLtz8u5xFPYY3LkU58+Ca+xA1h+FtTVbKPR6+HNRkDvZbku4VtDvNtbZMQ2rwJaBR8C1Nr+6OBbLZrWUslT6Vg7DP0Q56zWNAKgPgeGKSyCu/QxcVFfAv5NzS0yBprVVhc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623259943; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:To; bh=hCj7o1qoOXP1jCfyQ3K9Bs6rfmhrZJtRWsAjze6f0j8=; b=gYR4x2B87nhIanLjG3K2/t2cr4DAeRZ8+zoPBuhAWk5eVVpkdFnOKzT5OidyWlYDKocGXSJgHa3HVw/dToN4vgte7gvsSAVXDRIYKDQBOpeJi/BeMr1E7m9V2KzKyTwu1uPrdEtOLo75LAFYwXITi1UUh3hLQf0psVL6E0WltQ8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1623259943767381.9054417983049; Wed, 9 Jun 2021 10:32:23 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id C274F1061B07; Wed, 9 Jun 2021 17:32:19 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 4512D1061ABF for ; Wed, 9 Jun 2021 17:32:06 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 159H4dMn081116; Wed, 9 Jun 2021 13:32:04 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mx0a-001b2d01.pphosted.com with ESMTP id 392xjaynhm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Jun 2021 13:32:04 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by ppma02wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 159HHgid017507; Wed, 9 Jun 2021 17:32:02 GMT Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by ppma02wdc.us.ibm.com with ESMTP id 3900w9sftx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Jun 2021 17:32:02 +0000 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 159HW2CI30409092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 9 Jun 2021 17:32:02 GMT Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by IMSVA (Postfix) with ESMTP id 487E8112066; Wed, 9 Jun 2021 17:32:02 +0000 (GMT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by IMSVA (Postfix) with ESMTP id 317C6112064; Wed, 9 Jun 2021 17:32:02 +0000 (GMT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 9 Jun 2021 17:32:02 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=FqMmQRz3cWfDG1CaeZQYvVy4i2AxI0VDICKJLvtIziI=; b=exXWTRltEfcIa2zdbfEuOykVIO4wvOcSKtsUF2xGB6TGcMXx9ld6XYZ0fYfWbnzxezCd PGgqwcVXYeXrbTciW96TTBoTZ/DuPGH2CVk0DAdHk5li+i6FBQo65Z7IxEgdN1yMSIN6 G+7d1riZ9LzLdhqjgfR5AEM/rjAZ5/9ZR4RahZ0iVkQVklD72diTUn1AcpjyTVxir9nA y6fTslfGD/7N79LLWN8hb4PegyUM2stB9PPBNBMPSQxsm0r5n3C6va7l4Rx31Ro/M3/X fJVrf9i3vBAEm7fH/ReJ45MrFgJduYWiEOIU/ORaifwlzggyffGMbvQmpm90t8Zv/xXX kw== From: Stefan Berger To: seabios@seabios.org Date: Wed, 9 Jun 2021 13:31:59 -0400 Message-Id: <20210609173159.1493092-1-stefanb@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: XX17xrG5i2tMaNwL3ChhKT9aDkWBHVlE X-Proofpoint-ORIG-GUID: XX17xrG5i2tMaNwL3ChhKT9aDkWBHVlE X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-06-09_04:2021-06-04,2021-06-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 spamscore=0 clxscore=1011 malwarescore=0 impostorscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106090085 X-Spam-Level: *** Message-ID-Hash: DBEJQX3IL7JWEF6OX2WXV5JTNRQUEFHJ X-Message-ID-Hash: DBEJQX3IL7JWEF6OX2WXV5JTNRQUEFHJ X-MailFrom: stefanb@linux.ibm.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Stefan Berger X-Mailman-Version: 3.3.4 Precedence: list Subject: [SeaBIOS] [PATCH] tcgbios: Fix details in log entries List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: -- X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Fix two details of the logs: - Set the field 'SpecErrata' to 2 as required by specs. - Write the separator into the log entry's event field. Signed-off-by: Stefan Berger --- src/tcgbios.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tcgbios.c b/src/tcgbios.c index 82894f5..4150aa0 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -274,7 +274,7 @@ tpm20_write_EfiSpecIdEventStruct(void) .hdr.platformClass =3D TPM_TCPA_ACPI_CLASS_CLIENT, .hdr.specVersionMinor =3D 0, .hdr.specVersionMajor =3D 2, - .hdr.specErrata =3D 0, + .hdr.specErrata =3D 2, .hdr.uintnSize =3D 2, }; =20 @@ -1016,7 +1016,8 @@ tpm_add_event_separators(void) u32 pcrIndex; for (pcrIndex =3D 0; pcrIndex <=3D 7; pcrIndex++) tpm_add_measurement_to_log(pcrIndex, EV_SEPARATOR, - NULL, 0, + (const char *)evt_separator, + sizeof(evt_separator), evt_separator, sizeof(evt_separator)); } --=20 2.31.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org