From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 4EC811F4B4 for ; Fri, 9 Oct 2020 14:24:00 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 34E4D12097C; Fri, 9 Oct 2020 23:23:22 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 12EC3120968 for ; Fri, 9 Oct 2020 23:23:18 +0900 (JST) Received: by filterdrecv-p3iad2-6fcd869f88-k5fx7 with SMTP id filterdrecv-p3iad2-6fcd869f88-k5fx7-18-5F80726F-E2 2020-10-09 14:23:43.857943761 +0000 UTC m=+143337.033490548 Received: from herokuapp.com (unknown) by ismtpd0033p1mdw1.sendgrid.net (SG) with ESMTP id bF-XrZyaQReCX03ndkte7A for ; Fri, 09 Oct 2020 14:23:43.769 +0000 (UTC) Date: Fri, 09 Oct 2020 14:23:43 +0000 (UTC) From: mame@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 76215 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 16762 X-Redmine-Issue-Author: vo.x X-Redmine-Issue-Assignee: ioquatix X-Redmine-Sender: mame X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?EJh2gqwnyqXtd++xo=2FinyA1V0bXouTB4FkWnzNiKb48FCK38fdL5FCz+NiGzeA?= =?us-ascii?Q?dgYkYORQKQp+MZ3=2Fnes1FKJOpKkenUxFTnmvwBT?= =?us-ascii?Q?tOZf=2FZThudnJff3kK5Z7L3qNuL=2Fqb+kwXSn=2FCKP?= =?us-ascii?Q?ndZiLSzJRHmeHQtSggkN4e=2Fpq6BILZ5Nr2ci34M?= =?us-ascii?Q?BhJ1KdDBvIhIyjMGtt6xOelQEF5xeK5sgEHAfK6?= =?us-ascii?Q?M4iQM0dfHkk5AfAto=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 100349 Subject: [ruby-core:100349] [Ruby master Bug#16762] Ruby is not properly fortified on armv7hl X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16762 has been updated by mame (Yusuke Endoh). Assignee set to ioquatix (Samuel Williams) Status changed from Open to Assigned ---------------------------------------- Bug #16762: Ruby is not properly fortified on armv7hl https://bugs.ruby-lang.org/issues/16762#change-87961 * 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/