mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 20:27:35 +00:00
Kernel: Mask kernel addresses in backtraces and profiles
Addresses outside the userspace virtual range will now show up as 0xdeadc0de in backtraces and profiles generated by unprivileged users.
This commit is contained in:
parent
8eb20bdfa2
commit
32ec1e5aed
4 changed files with 24 additions and 14 deletions
|
@ -601,11 +601,6 @@ void MemoryManager::unquickmap_page()
|
|||
m_quickmap_in_use = false;
|
||||
}
|
||||
|
||||
static inline bool is_user_address(VirtualAddress vaddr)
|
||||
{
|
||||
return vaddr.get() >= (8 * MB) && vaddr.get() < 0xc0000000;
|
||||
}
|
||||
|
||||
template<MemoryManager::AccessSpace space, MemoryManager::AccessType access_type>
|
||||
bool MemoryManager::validate_range(const Process& process, VirtualAddress base_vaddr, size_t size) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue