Return-Path: Received: from mga04.intel.com ([192.55.52.120]:34753 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932623AbeAHQlP (ORCPT ); Mon, 8 Jan 2018 11:41:15 -0500 Subject: Re: [kaiser-discuss] KPTI backport to 3.16 To: Yves-Alexis Perez , Ben Hutchings , stable , Juerg Haefliger References: <1515368108.13978.37.camel@decadent.org.uk> <1515381945.13978.43.camel@decadent.org.uk> <1515402343.3305.50.camel@debian.org> From: Dave Hansen Message-ID: <4f892e63-cc9d-7b38-a6e7-3b0d83b1054a@intel.com> Date: Mon, 8 Jan 2018 08:41:13 -0800 MIME-Version: 1.0 In-Reply-To: <1515402343.3305.50.camel@debian.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 01/08/2018 01:05 AM, Yves-Alexis Perez wrote: > On Mon, 2018-01-08 at 03:25 +0000, Ben Hutchings wrote: >> This is with the full patch set applied (and a fix for NMI handling >> that wasn't in 3.16.53-rc1): >> https://www.decadent.org.uk/ben/tmp/linux-image-3.16.52_3.16.52-50_amd64.deb I booted this. It crashes in *secondary* CPU startup when it sets CR4.PCIDE while still in 32-bit protected mode. That's illegal. Plain 3.16 doesn't do this: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/x86-kaiser.git/tree/arch/x86/kernel/head_64.S?h=v3.16 > /* Enable PAE mode and PGE */ > movl $(X86_CR4_PAE | X86_CR4_PGE), %ecx > movq %rcx, %cr4 So I suspect the "Enable PAE and PGE" area is wrong.