@@ -288,12 +288,13 @@ extern u32 elf_hwcap2;
* ELF: | | | |
* -------------------------------|------------------|----------------|
* missing GNU_STACK | exec-all | exec-all | exec-all |
- * GNU_STACK == RWX | exec-all | exec-all | exec-all |
+ * GNU_STACK == RWX | exec-stack | exec-stack | exec-stack |
* GNU_STACK == RW | exec-none | exec-none | exec-none |
*
* exec-all : all PROT_READ user mappings are executable, except when
* backed by files on a noexec-filesystem.
* exec-none : only PROT_EXEC user mappings are executable.
+ * exec-stack: only the stack and PROT_EXEC user mappings are executable.
*
* *this column has no architectural effect: NX markings are ignored by
* hardware, but may have behavioral effects when "wants X" collides with
@@ -302,7 +303,7 @@ extern u32 elf_hwcap2;
*
*/
#define elf_read_implies_exec(ex, executable_stack) \
- (executable_stack != EXSTACK_DISABLE_X)
+ (executable_stack == EXSTACK_DEFAULT)
struct task_struct;