mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
Kernel: Shrink instead of expand sigaltstack range to page boundaries
Since the POSIX sigaltstack manpage suggests allocating the stack region using malloc(), and many heap implementations (including ours) store heap chunk metadata in memory just before the vended pointer, we would end up zeroing the metadata, leading to various crashes.
This commit is contained in:
parent
4c6fd454d0
commit
a49b7e92eb
5 changed files with 29 additions and 34 deletions
|
@ -688,7 +688,7 @@ private:
|
|||
|
||||
ErrorOr<GlobalFutexKey> get_futex_key(FlatPtr user_address, bool shared);
|
||||
|
||||
ErrorOr<void> remap_range_as_stack(FlatPtr address, size_t size);
|
||||
ErrorOr<Memory::VirtualRange> remap_range_as_stack(FlatPtr address, size_t size);
|
||||
|
||||
ErrorOr<FlatPtr> open_impl(Userspace<Syscall::SC_open_params const*>);
|
||||
ErrorOr<FlatPtr> close_impl(int fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue