From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f70.google.com (mail-pl0-f70.google.com [209.85.160.70]) by kanga.kvack.org (Postfix) with ESMTP id D1F616B0006 for ; Mon, 9 Apr 2018 15:50:23 -0400 (EDT) Received: by mail-pl0-f70.google.com with SMTP id h32-v6so7625199pld.15 for ; Mon, 09 Apr 2018 12:50:23 -0700 (PDT) Received: from mga04.intel.com (mga04.intel.com. [192.55.52.120]) by mx.google.com with ESMTPS id x21si739875pfn.155.2018.04.09.12.50.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 12:50:23 -0700 (PDT) Subject: Re: [PATCH 00/11] [v5] Use global pages with PTI References: <20180406205501.24A1A4E7@viggo.jf.intel.com> <1b45ffd1-99bb-4ac1-fb65-0de3e42c1c0a@amd.com> From: Dave Hansen Message-ID: Date: Mon, 9 Apr 2018 12:50:20 -0700 MIME-Version: 1.0 In-Reply-To: <1b45ffd1-99bb-4ac1-fb65-0de3e42c1c0a@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Tom Lendacky , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, aarcange@redhat.com, luto@kernel.org, torvalds@linux-foundation.org, keescook@google.com, hughd@google.com, jgross@suse.com, x86@kernel.org, namit@vmware.com On 04/09/2018 11:59 AM, Tom Lendacky wrote: > On 4/9/2018 1:17 PM, Dave Hansen wrote: >> On 04/09/2018 11:04 AM, Tom Lendacky wrote: >>> On 4/6/2018 3:55 PM, Dave Hansen wrote: >>>> Changes from v4 >>>> * Fix compile error reported by Tom Lendacky >>> This built with CONFIG_RANDOMIZE_BASE=y, but failed to boot successfully. >>> I think you're missing the initialization of __default_kernel_pte_mask in >>> kaslr.c. >> >> This should be simple to fix (just add a -1 instead of 0), but let me >> double-check and actually boot the fix. > > Yup, added an "= ~0" and everything is good. I'm testing at this commit in the tip tree: 0564258... x86/pti: Leave kernel text global for !PCID It seems to boot OK with RANDOMIZE_BASE=y for both PCID and non-PCID configuration. Could you send along your .config so I can try to reproduce?