Return-Path: Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:54280 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755067AbeAHDZ4 (ORCPT ); Sun, 7 Jan 2018 22:25:56 -0500 Message-ID: <1515381945.13978.43.camel@decadent.org.uk> Subject: Re: [kaiser-discuss] KPTI backport to 3.16 From: Ben Hutchings To: Dave Hansen , stable Date: Mon, 08 Jan 2018 03:25:45 +0000 In-Reply-To: References: <1515368108.13978.37.camel@decadent.org.uk> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-SnsgKC0nnhitFaL4gQi5" Mime-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: --=-SnsgKC0nnhitFaL4gQi5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2018-01-07 at 19:03 -0800, Dave Hansen wrote: > On 01/07/2018 03:35 PM, Ben Hutchings wrote: > > I sent this out for review on the stable list after quite minimal > > testing, but have done more since then. On bare metal (Sandy Bridge, > > with pcid but not invpcid) it crashes at boot. In fact it > > reboots without any panic message, suggesting a triple fault, as soon > > as I apply the patch that turns on CR4.PCIDE, i.e. without KPTI itself. >=20 > My first guess would be something around this stuff: >=20 > > commit c7ad5ad297e644601747d6dbee978bf85e14f7bc > > Author: Andy Lutomirski > > Date: Sun Sep 10 17:48:27 2017 -0700 > >=20 > > x86/mm/64: Initialize CR4.PCIDE early >=20 > But, if you also want to toss a set of binaries up somewhere that I can > test I can give them a quick run in the simulator or with a hardware > debugger attached. It's been very useful in getting these things > debugged, especially when normal debugging techniques fail. 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.de= b Ben. --=20 Ben Hutchings This sentence contradicts itself - no actually it doesn't. --=-SnsgKC0nnhitFaL4gQi5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAlpS5LkACgkQ57/I7JWG EQm66g/8D2P07DqMOx6ihaqXuRLI0/FN+aODIYfnCUSBEBXHnnIC98EKhHOtO0iu ZFmkmEa3ytKanCA7SP0MRPulTNw7tKq0P5QZpoo2gDAyvjYXLguzl2b5anQiMvCn P5Mvq2AkRPX6AplvutgC4V67qzBI88DJoOe/BPIhK6ECBXHalWtf+xqOskv0bstJ Pq1sGgfIV0pCzVfpqz9K+515BjubaiTxqYQYgLJMv6BbqZsO0qXxA2LohDcoteJB rXwZNoxCLDy0KlKKMmOoLwJHVClS0zd87Na6S1HyBTD4YOPDZgUo6K/Hx4vBZHE4 RXrEvgm1HG10/pL90TaRtTYDoIh02uCFxoJWv8PjDl2Ynboflw0NbXDQOTw20Ieo iMAmi9btm2pmWCG24ilFKjGQB1HNuYgv+XyQlRTCLBbNPZ5OUJ0AZ6hQ6QElimGv Twp6OMd7m12TS6TVdtN4hXnuDjftmu5rmdC8UTBlkSJesJfXLyVjANntSAbn6//G e888YDom96g1Y/k9F0O/V6tPK/8EmxJFdTWf5IzPXklaHVnPAcxepzww+oTyOkWv NsqtcvBNlGVNqbYU5MehLitNuvp6V+qod4f0cCaxG1MAN0umE34b814xyEZfKTly MG4c6/vCiBvxznPchuBHW3/UwM2PHEP0DRH4lncPkP/VTFJR66M= =lGhZ -----END PGP SIGNATURE----- --=-SnsgKC0nnhitFaL4gQi5--