mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
Kernel: Allow PROT_NONE in mmap and mprotect for stack regions
To allow for userspace guard pages (ruby uses this). Redundant since serenity creates them automatically, but should be allowed anyway.
This commit is contained in:
parent
925f21353e
commit
8924b1f532
Notes:
sideshowbarker
2024-07-18 03:33:07 +09:00
Author: https://github.com/seiferteric
Commit: 8924b1f532
Pull-request: https://github.com/SerenityOS/serenity/pull/10184
1 changed files with 2 additions and 6 deletions
|
@ -80,12 +80,8 @@ static bool validate_mmap_prot(int prot, bool map_stack, bool map_anonymous, Mem
|
|||
if (make_writable && make_executable)
|
||||
return false;
|
||||
|
||||
if (map_stack) {
|
||||
if (make_executable)
|
||||
return false;
|
||||
if (!make_readable || !make_writable)
|
||||
return false;
|
||||
}
|
||||
if (map_stack && make_executable)
|
||||
return false;
|
||||
|
||||
if (region) {
|
||||
if (make_writable && region->has_been_executable())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue