Skip to content

Fixed: mmap wrapper may overwrite memory segment#471

Open
xuyao0127 wants to merge 1 commit intompickpt:mainfrom
xuyao0127:mmap-wrapper-fix
Open

Fixed: mmap wrapper may overwrite memory segment#471
xuyao0127 wants to merge 1 commit intompickpt:mainfrom
xuyao0127:mmap-wrapper-fix

Conversation

@xuyao0127
Copy link
Copy Markdown
Collaborator

I decided to use regular mmap (without MAP_FIXED or MAP_FIXED_NOREPLACE) when allocating memory in the mmap wrapper. This allows the kernel to avoid existing memory segments.

We still need some improvement regarding the memory management and mmap wrapper design for the upper-half. Maybe we can read the proc map file to dynamically decide what memory segments are available for the upper-half.

@xuyao0127 xuyao0127 requested a review from gc00 April 30, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant