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

From: Dave Hansen
Date: Wed Feb 17 2016 - 17:54:00 EST


On 02/17/2016 02:17 PM, Andy Lutomirski wrote:
>> > Is there a way to detect this feature's availability without userspace
>> > having to set up a segv handler and attempting to read a
>> > PROT_EXEC-only region? (i.e. cpu flag for protection keys, or a way to
>> > check the protection to see if PROT_READ got added automatically,
>> > etc?)
>> >
> We could add an HWCAP.

I'll bite. What's an HWCAP?