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

From: Thomas Gleixner
Date: Fri Apr 20 2018 - 06:17:09 EST


On Tue, 17 Apr 2018, Dave Hansen wrote:

>
> These are _very_ lightly tested. I'm throwing them out there for
> folks are looking for a fix.
>
> ---
>
> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> 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.

Thanks,

tglx