From: Makito SHIOKAWA <lkhmkt@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [ARM] Fix condition in arm_elf_read_implies_exec() to set READ_IMPLIES_EXEC
Date: Fri, 6 Feb 2009 11:41:06 +0900 [thread overview]
Message-ID: <703a7cde0902051841q6aa9dc10y2a19f2ddbb6a1b72@mail.gmail.com> (raw)
In-Reply-To: <703a7cde0902050929s200cd6a4m95f32aa9c93293ad@mail.gmail.com>
Additionally, XN bit seems to be supported from ARMv6.
Signed-off-by: Makito SHIOKAWA <lkhmkt@gmail.com>
---
arch/arm/kernel/elf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/arch/arm/kernel/elf.c
+++ b/arch/arm/kernel/elf.c
@@ -74,9 +74,9 @@ 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)
+ if (cpu_architecture() < CPU_ARCH_ARMv6)
return 1;
return 0;
}
prev parent reply other threads:[~2009-02-06 2:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-05 17:29 Makito SHIOKAWA
2009-02-06 2:41 ` Makito SHIOKAWA [this message]
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=703a7cde0902051841q6aa9dc10y2a19f2ddbb6a1b72@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®