Skip to content

Use mmap(2) MAP_STACK to allocate stacks on OpenBSD #59

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

Merged
merged 1 commit into from
Aug 14, 2021

Conversation

brad0
Copy link
Contributor

@brad0 brad0 commented Jul 10, 2021

Since OpenBSD 6.4 (https://www.openbsd.org/64.html), the stack pointer
must point to MAP_STACK memory, or the kernel may kill the process
with a signal. All stack allocators must pass MAP_STACK to mmap(2).

I took inspiration from boostorg/context@7e14ab9 for this diff.

Since OpenBSD 6.4 (https://www.openbsd.org/64.html), the stack pointer
must point to MAP_STACK memory, or the kernel may kill the process
with a signal.  All stack allocators must pass MAP_STACK to mmap(2).

I took inspiration from boostorg/context@7e14ab9 for this diff.
@brad0
Copy link
Contributor Author

brad0 commented Aug 13, 2021

1.77 is out. This is one of the very few patches we have in our tree that I'd like to get in.

@olk olk merged commit 1e1347c into boostorg:develop Aug 14, 2021
@olk
Copy link
Member

olk commented Aug 14, 2021

ty

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.

2 participants