Re: [PATCH v3 3/3] MIPS: set stack/data protection as non-executable

From: David Daney
Date: Fri Dec 05 2014 - 16:41:19 EST


On 12/05/2014 11:44 AM, Christoph Lameter wrote:
On Fri, 5 Dec 2014, David Daney wrote:

The problem is not with "modern" executables that are properly annotated with
PT_GNU_STACK.

My objection is to the intentional breaking of old executables that have no
PT_GNU_STACK annotation, but require an executable stack. Since we usually
try not to break userspace, we cannot merge a patch like this one.

How old are these and how many are still around?

As far as I can determine, no official GCC release defaults to generating PT_GNU_STACK for MIPS, I could be mistaken though. So to answer your questions: Very young, and all of them.


Can the annotation be added with a tool?

I don't know, although I seem to recall that such a tool existed, and I may have even used it in the past. But, my google fu is not sufficiently advanced to find it now, if it exists.

David Daney

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/