hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/mmu.h
....@@ -45,22 +45,20 @@
4545 #ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
4646 /*
4747 * One bit per protection key says whether userspace can
48
- * use it or not. protected by mmap_sem.
48
+ * use it or not. protected by mmap_lock.
4949 */
5050 u16 pkey_allocation_map;
5151 s16 execute_only_pkey;
52
-#endif
53
-#ifdef CONFIG_X86_INTEL_MPX
54
- /* address of the bounds directory */
55
- void __user *bd_addr;
5652 #endif
5753 } mm_context_t;
5854
5955 #define INIT_MM_CONTEXT(mm) \
6056 .context = { \
6157 .ctx_id = 1, \
58
+ .lock = __MUTEX_INITIALIZER(mm.context.lock), \
6259 }
6360
6461 void leave_mm(int cpu);
62
+#define leave_mm leave_mm
6563
6664 #endif /* _ASM_X86_MMU_H */