ruby-changes:53737
From: samuel <ko1@a...>
Date: Sat, 24 Nov 2018 20:35:38 +0900 (JST)
Subject: [ruby-changes:53737] samuel:r65953 (trunk): Ensure stack is correctly protected
samuel 2018-11-24 20:35:34 +0900 (Sat, 24 Nov 2018) New Revision: 65953 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65953 Log: Ensure stack is correctly protected See https://bugs.ruby-lang.org/issues/15335 for more details. Modified files: trunk/coroutine/amd64/Context.S Index: coroutine/amd64/Context.S =================================================================== --- coroutine/amd64/Context.S (revision 65952) +++ coroutine/amd64/Context.S (revision 65953) @@ -40,3 +40,7 @@ coroutine_transfer: https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.S#L40 # We pop the return address and jump to it ret + +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/