Re: [PATCH 2/2] x86, pti: fix boot warning from Global-bit setting

From: Dave Hansen
Date: Fri Apr 20 2018 - 15:44:54 EST


On 04/20/2018 03:16 AM, Thomas Gleixner wrote:
>> pageattr.c is not friendly when it encounters empty (zero) PTEs. The
>> kernel linear map is exempt from these checks, but kernel text is not.
>> This patch adds the code to also exempt kernel text from these checks.
> Bah. Changelogs should tell the WHY and not the WHAT
>
>> The proximate cause of these warnings was most likely an __init area
>> that spanned a 2MB page boundary that resulted in a "zero" PMD.
> This doesn't make any sense at all.

I've rewritten these changelogs and added some more fixes for this set.
I'll be sending it shortly.