[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <703a7cde0902050929s200cd6a4m95f32aa9c93293ad@mail.gmail.com>
Date: Fri, 6 Feb 2009 02:29:24 +0900
From: Makito SHIOKAWA <lkhmkt@...il.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] [ARM] Fix condition in arm_elf_read_implies_exec() to set
READ_IMPLIES_EXEC
READ_IMPLIES_EXEC must be set when binary _is an executable stack_
(i.e. not EXSTACK_DISABLE_X).
Signed-off-by: Makito SHIOKAWA <lkhmkt@...il.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists