[RFC PATCH 0/3] x86/mm: LAM fixups and cleanups

From: Yosry Ahmed
Date: Thu Mar 07 2024 - 08:42:14 EST


This series has a few fixups and cleanups for LAM code noticed through
code inspection. They are marked as RFC because I am not very familiar
with this code so I may have gotten something (or all of it) wrong.

Yosry Ahmed (3):
x86/mm: fix LAM cr3 mask inconsistency during context switch
x86/mm: make sure LAM is up-to-date during context switching
x86/mm: cleanup prctl_enable_tagged_addr() nr_bits error checking

arch/x86/include/asm/tlbflush.h | 11 ++++--
arch/x86/kernel/process_64.c | 10 ++---
arch/x86/mm/tlb.c | 67 +++++++++++++++++++--------------
3 files changed, 48 insertions(+), 40 deletions(-)

--
2.44.0.278.ge034bb2e1d-goog