1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:17:35 +00:00
serenity/Kernel/VM
Andreas Kling 4ebff10bde Kernel: Write-only regions should still be mapped as present
There is no real "read protection" on x86, so we have no choice but to
map write-only pages simply as "present & read/write".

If we get a read page fault in a non-readable region, that's still a
correctness issue, so we crash the process. It's by no means a complete
protection against invalid reads, since it's trivial to fool the kernel
by first causing a write fault in the same region.
2020-01-20 13:13:03 +01:00
..
AnonymousVMObject.cpp Kernel: Remove some unnecessary casts to uintptr_t 2020-01-20 13:13:03 +01:00
AnonymousVMObject.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
InodeVMObject.cpp Kernel: Enforce W^X between sys$mmap() and sys$execve() 2020-01-18 23:40:12 +01:00
InodeVMObject.h Kernel: Enforce W^X between sys$mmap() and sys$execve() 2020-01-18 23:40:12 +01:00
MemoryManager.cpp Use uintptr_t instead of u32 when storing pointers as integers 2020-01-20 13:13:03 +01:00
MemoryManager.h Kernel: Make ProcessPagingScope restore CR3 properly 2020-01-19 13:44:53 +01:00
PageDirectory.cpp Use uintptr_t instead of u32 when storing pointers as integers 2020-01-20 13:13:03 +01:00
PageDirectory.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
PhysicalAddress.h Kernel: Remove some unnecessary casts to uintptr_t 2020-01-20 13:13:03 +01:00
PhysicalPage.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
PhysicalPage.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
PhysicalRegion.cpp Use uintptr_t instead of u32 when storing pointers as integers 2020-01-20 13:13:03 +01:00
PhysicalRegion.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
PurgeableVMObject.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
PurgeableVMObject.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
RangeAllocator.cpp Kernel: Oops, fix bad sort order of available VM ranges 2020-01-19 15:53:43 +01:00
RangeAllocator.h Kernel: Optimize VM range deallocation a bit 2020-01-19 13:29:59 +01:00
Region.cpp Kernel: Write-only regions should still be mapped as present 2020-01-20 13:13:03 +01:00
Region.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
VirtualAddress.h Use uintptr_t instead of u32 when storing pointers as integers 2020-01-20 13:13:03 +01:00
VMObject.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
VMObject.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00