x86/mm: Fix CR3_ADDR_MASK
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Wed, 9 Nov 2022 16:51:25 +0000 (19:51 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 15 Dec 2022 18:37:28 +0000 (10:37 -0800)
commit80d0969aa7832bfeb287cb22563a1ad08fea937d
tree52dce028d553f35dd6d1829415c46b20011dd7b2
parent82328227db8f0b9b5f77bb5afcd47e59d0e4d08f
x86/mm: Fix CR3_ADDR_MASK

The mask must not include bits above physical address mask. These bits
are reserved and can be used for other things. Bits 61 and 62 are used
for Linear Address Masking.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Alexander Potapenko <glider@google.com>
Link: https://lore.kernel.org/all/20221109165140.9137-2-kirill.shutemov%40linux.intel.com
arch/x86/include/asm/processor-flags.h