Re: [PATCH 00/11] [v5] Use global pages with PTI

From: Tom Lendacky
Date: Mon Apr 09 2018 - 16:49:18 EST


On 4/9/2018 2:50 PM, Dave Hansen wrote:
> 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?
>

Sure, I'll send it to you directly as an attachment.

Thanks,
Tom