Re: [PATCH 31/32] x86, pkeys: execute-only support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/14/2015 03:39 PM, Andy Lutomirski wrote:
>> > Nope.  My linker-fu is weak.
>> >
>> > Can we even depend on the linker by itself?  Even if the sections were
>> > marked --x, we can't actually use them with those permissions unless we
>> > have protection keys.
>> >
>> > Do we need some special tag on the section to tell the linker to map it
>> > as --x under some conditions and r-x for others?
>> >
> Why?  Wouldn't --x just end up acting like r-x if PKRU is absent?

An app doing --x would expect it to be unreadable.  I don't think we can
just silently turn it in to r-x.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]