Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More permissive check for page allocation mmap #25

Merged
merged 1 commit into from
Mar 20, 2021

Conversation

drdavella
Copy link
Contributor

I have observed intermittent page allocation failures when attempting to apply a patch. This has occurred on OSX in an environment that I believe to be under significant memory pressure, although it is difficult to reproduce.

It seems like the check for pages returned by mmap might be too strict. This PR attempts to make the check more permissive while still being safe for 32-bit relative jumps.

@kubo kubo merged commit 0c16d72 into kubo:master Mar 20, 2021
@kubo
Copy link
Owner

kubo commented Mar 20, 2021

Thank you! It looks reasonable.

fengjixuchui added a commit to fengjixuchui/funchook that referenced this pull request Apr 13, 2021
Merge pull request kubo#25 from drdavella/permissive-page-check
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.

None yet

2 participants