1. 01 Nov, 2019 16 commits
  2. 31 Oct, 2019 11 commits
  3. 30 Oct, 2019 12 commits
  4. 29 Oct, 2019 1 commit
    • Cherry Zhang's avatar
      runtime: clear m.gsignal when the M exits · 15ea61c5
      Cherry Zhang authored
      On some platforms (currently ARM and ARM64), when calling into
      VDSO we store the G to the gsignal stack, if there is one, so if
      we receive a signal during VDSO we can find the G.
      
      When an M exits, it frees the gsignal stack. But m.gsignal.stack
      still points to that stack. When we call nanotime on this M, we
      will write to the already freed gsignal stack, which is bad.
      Prevent this by unlinking the freed stack from the M.
      
      Should fix #35235.
      
      Change-Id: I338b1fc8ec62aae036f38afaca3484687e11a40d
      Reviewed-on: https://go-review.googlesource.com/c/go/+/204158
      Run-TryBot: Cherry Zhang <cherryyz@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      15ea61c5