mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Makito SHIOKAWA <lkhmkt@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] [ARM] Fix condition in arm_elf_read_implies_exec() to set  READ_IMPLIES_EXEC
Date: Fri, 6 Feb 2009 02:29:24 +0900	[thread overview]
Message-ID: <703a7cde0902050929s200cd6a4m95f32aa9c93293ad@mail.gmail.com> (raw)

READ_IMPLIES_EXEC must be set when binary _is an executable stack_
(i.e. not EXSTACK_DISABLE_X).

Signed-off-by: Makito SHIOKAWA <lkhmkt@gmail.com>
---
 arch/arm/kernel/elf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/arm/kernel/elf.c
+++ b/arch/arm/kernel/elf.c
@@ -74,7 +74,7 @@ EXPORT_SYMBOL(elf_set_personality);
  */
 int arm_elf_read_implies_exec(const struct elf32_hdr *x, int executable_stack)
 {
-	if (executable_stack != EXSTACK_ENABLE_X)
+	if (executable_stack != EXSTACK_DISABLE_X)
 		return 1;
 	if (cpu_architecture() <= CPU_ARCH_ARMv6)
 		return 1;

             reply	other threads:[~2009-02-05 17:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 17:29 Makito SHIOKAWA [this message]
2009-02-06  2:41 ` Makito SHIOKAWA

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-all from there: mbox

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

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

  git send-email \
    --in-reply-to=703a7cde0902050929s200cd6a4m95f32aa9c93293ad@mail.gmail.com \
    --to=lkhmkt@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®