Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository

Switch branch/tag
  • go
  • src
  • runtime
  • defs_openbsd_386.go
Find file BlameHistoryPermalink
  • Austin Clements's avatar
    runtime: remap stack spans with MAP_STACK on OpenBSD · 955cc07d
    Austin Clements authored Jun 29, 2018
    OpenBSD 6.4 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 [1]. Currently, Go doesn't map
    any memory MAP_STACK, so the kernel quickly kills Go processes.
    
    Fix this by remapping the memory that backs stack spans with
    MAP_STACK, and re-remapping it without MAP_STACK when it's returned to
    the heap.
    
    [1] http://openbsd-archive.7691.n7.nabble.com/stack-register-checking-td338238.html
    
    Fixes #26142.
    
    Change-Id: I656eb84385a22833445d49328bb304f8cdd0e225
    Reviewed-on: https://go-review.googlesource.com/121657
    
    
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
    955cc07d

Replace defs_openbsd_386.go

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7