Re: [PATCH 2/7] x86/entry: Move PTI_USER_* to arch/x86/include/asm/processor-flags.h

From: Thomas Gleixner
Date: Wed May 11 2022 - 06:25:39 EST


On Wed, May 11 2022 at 15:27, Lai Jiangshan wrote:
> From: Lai Jiangshan <jiangshan.ljs@xxxxxxxxxxxx>
>
> These constants will be also used in C file.
>
> Move them to arch/x86/include/asm/processor-flags.h which already has
> a kin X86_CR3_PTI_PCID_USER_BIT defined in it.
>
> Remove PTI_PGTABLE_SWITCH_BIT and replace it with PTI_USER_PGTABLE_BIT
> since they are the same in meaning and value.

Just from looking at the patch it's obvious that it breaks the 32bit
CONFIG_PAGETABLE_ISOLATION=y build. Sigh.

Thanks,

tglx