mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
Kernel: Enable x86 SMEP (Supervisor Mode Execution Protection)
This prevents the kernel from jumping to code in userspace memory.
This commit is contained in:
parent
cece0d230d
commit
8602fa5b49
2 changed files with 23 additions and 2 deletions
|
@ -90,6 +90,7 @@ private:
|
|||
void register_region(Region&);
|
||||
void unregister_region(Region&);
|
||||
|
||||
void detect_cpu_features();
|
||||
void initialize_paging();
|
||||
void flush_entire_tlb();
|
||||
void flush_tlb(VirtualAddress);
|
||||
|
@ -133,6 +134,7 @@ private:
|
|||
|
||||
bool m_quickmap_in_use { false };
|
||||
bool m_has_nx_support { false };
|
||||
bool m_has_smep_support { false };
|
||||
};
|
||||
|
||||
struct ProcessPagingScope {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue