Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp364800imm; Thu, 30 Aug 2018 00:21:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYfalRY+CybgzMab7rFRrIq9pX2y0c1n1xLL669P1IbvAi3lHlUypnyc9Tbz7/jYS0ee/54 X-Received: by 2002:a63:6501:: with SMTP id z1-v6mr8517540pgb.419.1535613699720; Thu, 30 Aug 2018 00:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535613699; cv=none; d=google.com; s=arc-20160816; b=tjwEw/xxjVAu9WjI4BUYYZ2TYxhao9q3qPcBVpstUS6Cxqfj0M4T4Jc4SPLb8uzc+Z uwMy6u7slHIU1/Zh1U0q7hjmkS6a5pCQipIDGjaiDPJ8senYXiX0J9COx+d0/87ccn3g hgy/j0ACQj3uAr068N18KJg1+VKjqgbLxVe+1uA2KGH1E7Yu+g94FF2QsPlwmF0HqrSn kIcgdShCtJiDhsPRDleRSsJiavApI2EptBOYNYaVgANR7m4nvzWBr6rIIjj2ESXdiDrF qCWY3RBc/Gm6t/L1SUp9jrGOl0VYZYmRuA7UpgLtYyq1k8hkFIf+fO6dsZ5DaK/daAHu g4Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Gg8Sf2YvLMVrVNP5wavreZYcwiUE7raEL9G1N3TWKVk=; b=NuMtZARJJMrG+Ow1qE2aH3kV2q5PTFGpJwxkS6bkvyZHkC9LVH/YvbXWL09YdWciyL NJUwqn200W42dnD1LsvY2YPhsA/KzpwbqA8jdqMAwaA3YfU+MY3EjAU3aXOiAwMLUHWt OHYGNNtXHunnZ1B9LOcTXrjNcS1PKu1T+RlLEqWGtROCG2InVz1X2cl01LjmdDu/Kj+w xUZ54Ql1b/ol8kDsVL7p9mimbbFeQ78B0Qrl64Ev+83u9hEocuqMk1uhXKQeDj7siWJr E1c9yuL/Lv6jRdsdASA1CDcAtYdK8o+TrLkNHm0I4SXvZNdrx7iMelTtg2NtXfHB8wgB tIRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16-v6si5439724plp.317.2018.08.30.00.21.24; Thu, 30 Aug 2018 00:21:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727651AbeH3LUi (ORCPT + 99 others); Thu, 30 Aug 2018 07:20:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:55754 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727416AbeH3LUh (ORCPT ); Thu, 30 Aug 2018 07:20:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 52287AEFE; Thu, 30 Aug 2018 07:19:52 +0000 (UTC) Date: Thu, 30 Aug 2018 09:19:51 +0200 From: Joerg Roedel To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Michal Hocko , Andi Kleen , Linus Torvalds , x86@kernel.org, Dave Hansen , Pavel Machek Subject: Re: efi boot failures due to PTI with 32 bit builds and Intel CPUs Message-ID: <20180830071951.dv6wgnn6ikfhh7yt@suse.de> References: <20180829201659.GA29801@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180829201659.GA29801@roeck-us.net> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Guenter, On Wed, Aug 29, 2018 at 01:16:59PM -0700, Guenter Roeck wrote: > I see boot failures on mainline when trying to boot x86 images with an efi > bios on Intel CPUs in qemu. Behavior is quite unusual: qemu dies silently > after the kernel displays "Run /sbin/init as init process". With debugging > enabled, qemu reports a CR3 update followed by a triple fault. > Here is the end of the log file: > > ---------------- > IN: > 0xc75f1d1a: 66 90 nop > 0xc75f1d1c: 0f 20 d8 movl %cr3, %eax > 0xc75f1d1f: 0d 00 10 00 00 orl $0x1000, %eax > 0xc75f1d24: 0f 22 d8 movl %eax, %cr3 > > CR3 update: CR3=0e39b000 Thanks for the bug report, from a quick glance it looks like the kernel is switching to an empty page-table. But I need to debug that further. > qemu-system-i386 -kernel arch/x86/boot/bzImage -M q35 -cpu core2duo \ > -no-reboot -m 256 \ > -bios OVMF-pure-efi-32.fd \ > -usb -device usb-storage,drive=d0 \ > -drive file=rootfs.ext2,if=none,id=d0,format=raw \ > --append 'root=/dev/sda rw rootwait mem=256M console=ttyS0 console=tty noreboot' \ > -nographic Can you please provide the exact OVMF-pure-efi-32.fd image and the .config of the kernel? Thanks a lot, Joerg