mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Security fix for allocating pages for user-mode
This commit is contained in:
parent
de5d8154ab
commit
3bc76edec0
@ -124,6 +124,11 @@ namespace Memory
|
||||
}
|
||||
|
||||
AllocatedPagesList.push_back({Address, Count});
|
||||
|
||||
/* For security reasons, we clear the memory
|
||||
if the page is user accessible. */
|
||||
if (User)
|
||||
memset(Address, 0, Count * PAGE_SIZE);
|
||||
return Address;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user