mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
Kernel: Send SIGBUS to threads that use after valid Inode mmaped range
According to Dr. POSIX, we should allow to call mmap on inodes even on ranges that currently don't map to any actual data. Trying to read or write to those ranges should result in SIGBUS being sent to the thread that did violating memory access.
This commit is contained in:
parent
3ad0e1a1d5
commit
0c675192c9
4 changed files with 57 additions and 33 deletions
|
@ -10,6 +10,7 @@ namespace Kernel {
|
|||
|
||||
enum class PageFaultResponse {
|
||||
ShouldCrash,
|
||||
BusError,
|
||||
OutOfMemory,
|
||||
Continue,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue