ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: samuel@oriontransfer.net
To: ruby-core@ruby-lang.org
Subject: [ruby-core:101310] [Ruby master Bug#16762] Ruby is not properly fortified on armv7hl
Date: Tue, 08 Dec 2020 08:22:11 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-89005.20201208082210.703@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-16762.20200406171228.703@ruby-lang.org

Issue #16762 has been updated by ioquatix (Samuel Williams).


https://github.com/ruby/ruby/pull/3866

----------------------------------------
Bug #16762: Ruby is not properly fortified on armv7hl
https://bugs.ruby-lang.org/issues/16762#change-89005

* Author: vo.x (Vit Ondruch)
* Status: Assigned
* Priority: Normal
* Assignee: ioquatix (Samuel Williams)
* ruby -v: ruby 2.8.0dev (2020-04-03 master 810d66f3e7) [armv7hl-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
The issue is similar to #15335 and the fix is also similar:

~~~
diff --git a/coroutine/arm32/Context.S b/coroutine/arm32/Context.S
index b66db29622..596284b5cf 100644
--- a/coroutine/arm32/Context.S
+++ b/coroutine/arm32/Context.S
@@ -24,3 +24,7 @@ coroutine_transfer:
 	
 	# Restore callee state (8 registers program counter)
 	pop {r4-r11,pc}
+
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
~~~

It seems to be introduced by https://github.com/ruby/ruby/pull/2995



-- 
https://bugs.ruby-lang.org/

  parent reply	other threads:[~2020-12-08  8:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 17:12 [ruby-core:97731] [Ruby master Bug#16762] Ruby is not properly fortified on armv7hl v.ondruch
2020-10-09 10:44 ` [ruby-core:100347] " v.ondruch
2020-10-09 14:23 ` [ruby-core:100349] " mame
2020-12-08  8:22 ` samuel [this message]
2020-12-08 10:38 ` [ruby-core:101314] " samuel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-89005.20201208082210.703@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).