From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=150.165.85.253; helo=mta-zimbra.lsd.ufcg.edu.br; envelope-from=ricardo@lsd.ufcg.edu.br; receiver=edk2-devel@lists.01.org Received: from mta-zimbra.lsd.ufcg.edu.br (mta-zimbra.lsd.ufcg.edu.br [150.165.85.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5564521BADAB2 for ; Wed, 1 Aug 2018 10:33:49 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mta-zimbra.lsd.ufcg.edu.br (Postfix) with ESMTP id C84E43A2DDD for ; Wed, 1 Aug 2018 14:33:46 -0300 (-03) Received: from mta-zimbra.lsd.ufcg.edu.br ([127.0.0.1]) by localhost (mta-zimbra.lsd.ufcg.edu.br [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id zeo56IKnPVyS for ; Wed, 1 Aug 2018 14:33:46 -0300 (-03) Received: from localhost (localhost [127.0.0.1]) by mta-zimbra.lsd.ufcg.edu.br (Postfix) with ESMTP id 043653A2DFA for ; Wed, 1 Aug 2018 14:33:46 -0300 (-03) X-Virus-Scanned: amavisd-new at mta-zimbra.lsd.ufcg.edu.br Received: from mta-zimbra.lsd.ufcg.edu.br ([127.0.0.1]) by localhost (mta-zimbra.lsd.ufcg.edu.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9FwYw3rVRCjk for ; Wed, 1 Aug 2018 14:33:45 -0300 (-03) Received: from mta-zimbra.lsd.ufcg.edu.br (mta-zimbra.lsd.ufcg.edu.br [150.165.85.253]) by mta-zimbra.lsd.ufcg.edu.br (Postfix) with ESMTP id BAA5C3A2DDD for ; Wed, 1 Aug 2018 14:33:45 -0300 (-03) Date: Wed, 1 Aug 2018 14:33:45 -0300 (BRT) From: Ricardo =?utf-8?Q?Ara=C3=BAjo?= Reply-To: Ricardo =?utf-8?Q?Ara=C3=BAjo?= To: edk2-devel@lists.01.org Message-ID: <551258016.93465.1533144825411.JavaMail.zimbra@lsd.ufcg.edu.br> MIME-Version: 1.0 X-Originating-IP: [10.30.0.39] X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - GC68 (Linux)/8.6.0_GA_1153) Thread-Topic: Missing boot related measurements at TPM 2.0 PCRs 0-7 with OVMF Thread-Index: XQ8KzFAL/yjJZX5Yqi5YcbqndMQDEQ== X-Content-Filtered-By: Mailman/MimeDel 2.1.27 Subject: Missing boot related measurements at TPM 2.0 PCRs 0-7 with OVMF X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 17:33:52 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi everyone, I'm using OVMF with a simulated TPM 2.0 (from https://github.com/stefanberger/swtpm) and I noticed lately that PCRs 0-7 are zeroed after booting the vm (ubuntu 18.04) and the only message related to this in dmesg is: [ 2.286690] tpm_tis 00:06: 2.0 TPM (device-id 0x1, rev-id 1) [ 2.303753] tpm tpm0: A TPM error (256) occurred continue selftest [ 2.314199] tpm tpm0: starting up the TPM manually I found this started to happen after this commit , previous commits to that are showing boot time measurements on PCR 0-7 normally and the error message is gone. Has anyone experienced the same behavior? I followed the instructions here for building OVMF but I added the parameters -D TPM2_ENABLE=TRUE -D SECURE_BOOT_ENABLE=TRUE -D HTTP_BOOT_ENABLE=TRUE. Is there anything else I need to add to enable these measurements? Regards, Ricardo Araujo www.lsd.ufcg.edu.br/~ricardo