From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ghEfA-0000lw-BB for mharc-grub-devel@gnu.org; Wed, 09 Jan 2019 09:16:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghEf8-0000lp-7b for grub-devel@gnu.org; Wed, 09 Jan 2019 09:16:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghEf7-00030o-89 for grub-devel@gnu.org; Wed, 09 Jan 2019 09:16:54 -0500 Received: from mx0a-00190b01.pphosted.com ([2620:100:9001:583::1]:54582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ghEf6-0002y3-MT for grub-devel@gnu.org; Wed, 09 Jan 2019 09:16:53 -0500 Received: from pps.filterd (m0050095.ppops.net [127.0.0.1]) by m0050095.ppops.net-00190b01. (8.16.0.27/8.16.0.27) with SMTP id x09E79XK020347 for ; Wed, 9 Jan 2019 14:16:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=date : from : to : subject : message-id : mime-version : content-type; s=jan2016.eng; bh=w0c7gIPDT4UGnR5GssJtn5CJEe8FrWD08EHiSugyexA=; b=JhJa8IGCyeIHH81Vxz5qlkZU9uEIgIbAfPuUu2a/8bxiIIunqK+DGQIBTgj2LcihaCJn Lq1QtmaFozcXGNA9BTLc3KgEEhHUf4v/2hwCjfVpa10ekRyzXb8rVF9oy0vqfmGOI9+m Rt+q9CHKe1rrb50le1wED+0rpBIlsRA+sULCaSctvLQbVgK0JlBvQlaJDADXIRmu2Hg6 sgaUr904LSw4XWnKi4YKuPAYsLMD2vJEhzGogga6LFaJy6lHmMeZNC5G0FE5kU6sGuNh EszlTR5N242JIPEWUr/GT/ppKMkUBW9JFBc8/NiTypnPD+uY3ymlPSE8MeZL7TYM/AF3 jg== Received: from prod-mail-ppoint2 (prod-mail-ppoint2.akamai.com [184.51.33.19]) by m0050095.ppops.net-00190b01. with ESMTP id 2pw1p4b39p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 09 Jan 2019 14:16:49 +0000 Received: from pps.filterd (prod-mail-ppoint2.akamai.com [127.0.0.1]) by prod-mail-ppoint2.akamai.com (8.16.0.21/8.16.0.21) with SMTP id x09E1mcK017169 for ; Wed, 9 Jan 2019 09:16:48 -0500 Received: from email.msg.corp.akamai.com ([172.27.123.57]) by prod-mail-ppoint2.akamai.com with ESMTP id 2ptrt0d05p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 09 Jan 2019 09:16:47 -0500 Received: from USMA1EX-DAG1MB5.msg.corp.akamai.com (172.27.123.105) by usma1ex-dag1mb6.msg.corp.akamai.com (172.27.123.65) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Wed, 9 Jan 2019 09:16:24 -0500 Received: from usma1ex-cas5.msg.corp.akamai.com (172.27.123.53) by usma1ex-dag1mb5.msg.corp.akamai.com (172.27.123.105) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Wed, 9 Jan 2019 09:16:24 -0500 Received: from lon-lp55b.london.corp.akamai.com (172.29.67.66) by usma1ex-cas5.msg.corp.akamai.com (172.27.123.53) with Microsoft SMTP Server id 15.0.1365.1 via Frontend Transport; Wed, 9 Jan 2019 06:16:17 -0800 Received: by lon-lp55b.london.corp.akamai.com (Postfix, from userid 37336) id 9C5F7E10D6; Wed, 9 Jan 2019 14:16:16 +0000 (GMT) Date: Wed, 9 Jan 2019 14:16:16 +0000 From: Max Tottenham To: Subject: TPM/Verifiers testing bug? Message-ID: <20190109141616.GC4954@akamai.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-09_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901090119 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-09_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901090120 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2620:100:9001:583::1 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 14:16:55 -0000 Hi Folks I was curious about the upstream work on the verifiers framework (and the TPM patches). I have both a TPM 2.0 based system and a QEMU + swtpm setup with which to test. I compiled the head of the master branch, if I boot into the grub shell and run the following commands: grub> insmod verifiers grub> insmod tpm grub> normal I get a machine crash: qemu-system-x86_64: Trying to execute code outside RAM or ROM at 0x00000000000b0000 This usually means one of the following happened: (1) You told QEMU to execute a kernel for the wrong machine type, and it crashed on startup (eg trying to run a raspberry pi kernel on a versatilepb QEMU machine) (2) You didn't give QEMU a kernel or BIOS filename at all, and QEMU executed a ROM full of no-op instructions until it fell off the end (3) Your guest kernel has a bug and crashed by jumping off into nowhere This is almost always one of the first two, so check your command line and that you are using the right type of kernel for this machine. If you think option (3) is likely then you can try debugging your guest with the -d debug options; in particular -d guest_errors will cause the log to include a dump of the guest register state at this point. Execution cannot continue; stopping here. Software versions: Qemu version: v2.11.0 (0a0dc59) OVMF git tag: edk2-stable201811 (8558838) swtpm git tag: tpm2-preview.v2 (f98592c) Running the same on real hardware also produces a crash, any thoughts? -- Max Tottenham | mtottenh@akamai.com Senior Software Engineer, Server Platform Engineering /(* Akamai Technologies