mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17: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
|
@ -159,3 +159,8 @@ void VMObject::for_each_region(Callback callback)
|
|||
callback(region);
|
||||
}
|
||||
}
|
||||
|
||||
inline bool is_user_address(VirtualAddress vaddr)
|
||||
{
|
||||
return vaddr.get() >= (8 * MB) && vaddr.get() < 0xc0000000;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue