From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: ACJfBouCRYo+lsXDl1zT1nQlUgFan4gy4inRrtXHRkehKB4Ew9GraIc+XUHnZWa8BP4ShfaFdzs2 ARC-Seal: i=1; a=rsa-sha256; t=1516359330; cv=none; d=google.com; s=arc-20160816; b=yDoL2Dpsl0HUPrPSuE2Z6reo1qLikPYsTiZ6B58a6oCNG5tdGn5peXEvuafGART9wQ fVoVg9z8H9aMzzkPgtloL3SsxHmJE6+Oky+xojSnpWwnX2fZRGLHhUIv9YOCaYSqJ9lU aRLfo2vxrwmwzqRiy5tzO6odZbX6pWvDNmUStqm8UsazKTsWy0cPULnSYNm1e80oj50/ ABE0JIPO2ChAZxGK90512dv6nZ7eLmxR60b0DyHgOdkHlpm5FPVte7EYiCi1yB1p3kc1 PZNoKP3BF9qacmg2fxdUyUzNGqslybbmCz/n3nKT6vG6kiJ09qV2b6DwIYmmj0bGY9LO fV1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:arc-authentication-results; bh=LsKbDmPAmmI99s4p0MYiZghSQrR080esR0osW0IFWmE=; b=ytz85YCJipmCMlNx72YUg8tg31Cqwc8WAmqWMnQNIxezsndlV+PsxAgYdNQXcTcNNc ND5JbApKw0rCPbpb5m4lf76P+pBLrybEPpF9QRwhz/+PpazHVYpfuJsFZDslqeRWA26j vHXGP6ILtfIHKW6kbvSvtd9SqVrWFHGP+TR5FUlhJaX6ldd8+pGLGwBMbvTrIOsFF65G 3nDmvvI1RO4DqpseVbzurWWZL0UZ6aWvx2VlXgwTV2Y0Y8lCRfD3K7CTVs+cl4uQ8YyJ ovKBGijQhXOVrJXNYTCUcnKH9JC5xNZKHj7PB77YgiiWyLTBEqP8YU/bDOIQuLDp7c9N /77g== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 195.113.26.193 is neither permitted nor denied by best guess record for domain of pavel@ucw.cz) smtp.mailfrom=pavel@ucw.cz Authentication-Results: mx.google.com; spf=neutral (google.com: 195.113.26.193 is neither permitted nor denied by best guess record for domain of pavel@ucw.cz) smtp.mailfrom=pavel@ucw.cz 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) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1589767841591470697?= X-GMAIL-MSGID: =?utf-8?q?1590018000962894121?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: --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--