Received: by 10.223.176.46 with SMTP id f43csp844800wra; Fri, 19 Jan 2018 02:56:56 -0800 (PST) X-Google-Smtp-Source: ACJfBovtf9js+KZiOFAgSS7/AUXu05tGcrLb1A5WSurrOqnGmh+qGqB+GHnk5yFa2EuxMyscr4f+ X-Received: by 10.98.147.7 with SMTP id b7mr45896814pfe.236.1516359416438; Fri, 19 Jan 2018 02:56:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516359416; cv=none; d=google.com; s=arc-20160816; b=ZhH3APeSbYvaUa7VVoHrpQeunTvfa0TTwb89AcdsizuN1xHAgQ27BplCve3xOa1D0/ BeGZycigD4DrvOkpO6ZSzQxRSnwjc+f0qfI/GTsYHiYMQDme7A9EzWWxTlWXJmC7xXs6 l52oWP/SZ38OKjT/+3z5+a/lMsYinhzHNvpQ6vKyTyYLKuppGQoom8rtY4KI5H2zSCR+ xrEazPUKOzTwvRhykelOVqGDRWJWifnEkoeqvkaXuwQ7h3uoc+s4YsF22Cp04TYjyu13 kJ8894ziYCE08G77YP4TlNfG/too2v0vWu8Q796g0yqH7QJFBRoHrMTCdFttLe4y2Qk/ wQuA== 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=LsKbDmPAmmI99s4p0MYiZghSQrR080esR0osW0IFWmE=; b=MKBSs+JuCfGf2MhQ+QdCBGvJK4j0LwcnX8Z0j6oi9rp5Y/SP/OKAOhCz1VXvFJM+KR gEDvvpbph4mbAKJzA+D7sxBz2dI4Ep28klvwh8/gvMLGHsFT6c4x9EJBEINHOfSIj8G4 wbBTglR7w6jtxcPPZfPo0LHv1CtUYH64izQ6a4oYfDl87rrVTElZ+3LwO0mDB51s+s6z 1r6n9pWS3SV9ZNJJEZi3Hs8S3o+IZDgK/BVBFlcmWqpcL1MjtMrNiR+XEDCCOGdIOK4X DVT9iH3xRqYohe4+YlFNLyVjI5umK/G0eRethcaz7cAyf75n6IEqDjKu7qorA9ZrATIR EJuA== 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 k132si5038510pgc.18.2018.01.19.02.56.42; Fri, 19 Jan 2018 02:56:56 -0800 (PST) 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 S1755132AbeASKzg (ORCPT + 99 others); Fri, 19 Jan 2018 05:55:36 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57394 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbeASKzb (ORCPT ); Fri, 19 Jan 2018 05:55:31 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 817618017B; Fri, 19 Jan 2018 11:55:29 +0100 (CET) Date: Fri, 19 Jan 2018 11:55:28 +0100 From: Pavel Machek To: Joerg Roedel Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , jroedel@suse.de Subject: Re: [RFC PATCH 00/16] PTI support for x86-32 Message-ID: <20180119105527.GB29725@amd> References: <1516120619-1159-1-git-send-email-joro@8bytes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline In-Reply-To: <1516120619-1159-1-git-send-email-joro@8bytes.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Joerg Roedel >=20 > Hi, >=20 > here is my current WIP code to enable PTI on x86-32. It is > still in a pretty early state, but it successfully boots my > KVM guest with PAE and with legacy paging. The existing PTI > code for x86-64 already prepares a lot of the stuff needed > for 32 bit too, thanks for that to all the people involved > in its development :) Thanks for doing the work. I tried applying it on top of -next, and that did not succeed. Let me try Linus tree... > The code has not run on bare-metal yet, I'll test that in > the next days once I setup a 32 bit box again. I also havn't > tested Wine and DosEMU yet, so this might also be broken. Um. Ok, testing is something I can do. At least I have excuse to power on T40p. Ok... Testing is something I can do... If I can get it to compile. CC arch/x86/mm/dump_pagetables.o arch/x86/mm/dump_pagetables.c: In function =E2=80=98ptdump_walk_user_pgd_level_checkwx=E2=80=99: arch/x86/mm/dump_pagetables.c:546:26: error: =E2=80=98init_top_pgt=E2=80= =99 undeclared (first use in this function) pgd_t *pgd =3D (pgd_t *) &init_top_pgt; ^ arch/x86/mm/dump_pagetables.c:546:26: note: each undeclared identifier is reported only once for each function it appears in scripts/Makefile.build:316: recipe for target 'arch/x86/mm/dump_pagetables.o' failed make[2]: *** [arch/x86/mm/dump_pagetables.o] Error 1 scripts/Makefile.build:575: recipe for target 'arch/x86/mm' failed make[1]: *** [arch/x86/mm] Error 2 make[1]: *** Waiting for unfinished jobs.... CC arch/x86/platform/intel/iosf_mbi.o =20 Ok, I guess I can disable some config option... Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlphzp8ACgkQMOfwapXb+vJJTwCgqKLRKD1mKRaeVYX66fFsYamu 7yIAoI0EoZckBNrg01y4Ogj10vnf+FdS =vixT -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM--