Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp199504imm; Thu, 30 Aug 2018 11:48:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYqADODpp5upx66lf3wtLTmsTlLLn8vIvF6GsaHABvISK7U34qQS5C2lNWGgusjBUDJ/9eb X-Received: by 2002:a63:3dc6:: with SMTP id k189-v6mr5169549pga.191.1535654883044; Thu, 30 Aug 2018 11:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535654883; cv=none; d=google.com; s=arc-20160816; b=IvQHkKtPPosZ15p75aXmh1wsExA0qJfWNWRiG6nMr4D07sC9HllEBqqHVwWvruZK71 u3osvpIbOwoCEIPsna+2ZaM8/KEzZPU0eSBOgmHbmatdGvIWEz9EIa4GqO101Mhou2gk m3iOrWvMLE048pfQcTIJfy8Y4IxZBU0E9UYtZj6JfjrxPuFejIV/3qNoXcFY6Twhg3FV 2l1E7itLKKh3gFGygK9i6AxgJRdpTlyLWwaivpH6XkKqV670rkM6VZuguHxNZJZ1Qenm NYiL6l4c9mIgonh00TycO6UXv8gCEVWRk+DwWM2TnryTX3E/uSFYIJTwuAWrMh8x49mX rq5w== 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=RAHJTuuWxHE97WZQyXqcsNDl4oGRhj611N22OxReeTM=; b=hpWn9wmq5IzMw5SEi2l04gEq8E6zwIeg9+SAty8eLYohR7yvPIGdNIGbDk05V5HZ6O vo7IVrc80EeczP9Mmft6jeunM/Oifd2+rn9ZpsZY55YmAMVG9b3EAsGv+lU3GMZL4Psn Pi511EiE3gGwyMcgq5fSGjFaG3OYcJNS/DveINAo2VrYiXNXhnzp/ktEZzeUCr8t6ogu pnhzjRxNWWNuVQPbsiGQAhRgXoaiG8iSGGtWYvdIDKDyXc5UqpWSLnZ/aUq93XwvsJGR 4LnlhqeBNx9McESS7T2mRh+PgU0s2fk5WiwATbqHF+hQ+E3zQ+3t0ob3sOs6Pzyu3/A3 jVbg== 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 i1-v6si7230298pgn.212.2018.08.30.11.47.48; Thu, 30 Aug 2018 11:48:03 -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 S1727406AbeH3WuN (ORCPT + 99 others); Thu, 30 Aug 2018 18:50:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:54928 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726959AbeH3WuN (ORCPT ); Thu, 30 Aug 2018 18:50:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4CC93ACC2; Thu, 30 Aug 2018 18:46:40 +0000 (UTC) Date: Thu, 30 Aug 2018 20:46:39 +0200 From: Joerg Roedel To: Linus Torvalds Cc: Guenter Roeck , Linux Kernel Mailing List , Thomas Gleixner , Michal Hocko , Andi Kleen , the arch/x86 maintainers , Dave Hansen , Pavel Machek Subject: Re: efi boot failures due to PTI with 32 bit builds and Intel CPUs Message-ID: <20180830184639.6iv5itjex6y45w3j@suse.de> References: <20180829201659.GA29801@roeck-us.net> <20180830071951.dv6wgnn6ikfhh7yt@suse.de> <20180830113059.qj6yvw4ggktc7yex@suse.de> <915dca84-c98a-fc63-3210-b21dd926b3d4@roeck-us.net> <20180830180849.nmh646ehnolphq4v@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Thu, Aug 30, 2018 at 11:21:49AM -0700, Linus Torvalds wrote: > On Thu, Aug 30, 2018 at 11:08 AM Joerg Roedel wrote: > > > > Without a mapped GDT the #PF and #DF handlers also can't be started, so > > the machine triple-faults. Below diff fixes it for me, I'll send a > > proper patch tomorrow. > > Hmm. Is there any reason why this code doesn't just use > > load_fixmap_gdt(0); No idea, probably the function didn't exist when the code was written? I can change that when writing the patch. > and shouldn't it do it after loading the new %cr3? That seems more robust, yes. No sure if the old %cr3 (initial_page_table) has the fixmap gdt mapped at all. Joerg