mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:38:10 +00:00
Kernel: Create and use USER_RANGE_CEILING
We had an inconsistency in valid user addresses. is_user_range() was checking against the kernel base address, but previous changes caused the maximum valid user addressable range to be 32 MiB below that. This patch stops mmap(MAP_FIXED) of a range between these two bounds from panic-ing the kernel in RangeAllocator::allocate_specific.
This commit is contained in:
parent
ab196b484a
commit
578d45b480
3 changed files with 4 additions and 2 deletions
|
@ -19,3 +19,5 @@
|
|||
#define KERNEL_QUICKMAP_PD (KERNEL_PT1024_BASE + 0x7000)
|
||||
#define KERNEL_QUICKMAP_PER_CPU_BASE (KERNEL_PT1024_BASE + 0x8000)
|
||||
#define KERNEL_PHYSICAL_PAGES_BASE (KERNEL_BASE + KERNEL_PD_OFFSET)
|
||||
|
||||
#define USER_RANGE_CEILING 0xBE000000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue