summaryrefslogtreecommitdiff
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2023-03-12 14:25:59 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2023-03-16 13:08:39 -0700
commit82721d8b25d76c5a6f4c6cf4ce4e5b33788820a1 (patch)
tree7fab3555d1c44937cc700d3087f942f31c0b23e0 /mm/madvise.c
parent6449dcb0cac738219d13c618af7fd8664735f99d (diff)
downloadlwn-82721d8b25d76c5a6f4c6cf4ce4e5b33788820a1.tar.gz
lwn-82721d8b25d76c5a6f4c6cf4ce4e5b33788820a1.zip
x86/mm: Handle LAM on context switch
Linear Address Masking mode for userspace pointers encoded in CR3 bits. The mode is selected per-process and stored in mm_context_t. switch_mm_irqs_off() now respects selected LAM mode and constructs CR3 accordingly. The active LAM mode gets recorded in the tlb_state. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Alexander Potapenko <glider@google.com> Link: https://lore.kernel.org/all/20230312112612.31869-5-kirill.shutemov%40linux.intel.com
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions