runtime: next release of OpenBSD requires MAP_STACK for stacks #26142
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-OpenBSD
Milestone
As announced in http://openbsd-archive.7691.n7.nabble.com/stack-register-checking-td338238.html, the upcoming release of OpenBSD is going to start requiring that the SP points to memory that was mapped with
MAP_STACK
on system call entry, traps, and when switching to the alternate signal stack. This breaks with the current version of Go because we don't map any memoryMAP_STACK
.Fixing this is somewhat tricky given how tightly we allocate stacks and that they are interwoven with heap memory. However, they're not interwoven below page granularity, so it should be possible to fix this by remapping memory whenever a span transitions to or from being used to allocate stacks.
The text was updated successfully, but these errors were encountered: