[PATCH 1/2] arm: hwcap: add new hwcap for identifying PXN bits

Jungseung Lee js07.lee at gmail.com
Fri Oct 24 03:32:37 PDT 2014


Hi, Russell and Catalin

2014-10-24 19:11 GMT+09:00 Catalin Marinas <catalin.marinas at arm.com>:
> On Fri, Oct 24, 2014 at 10:57:34AM +0100, Jungseung Lee wrote:
>> Modern ARMv7-A/R cores can optionally implement below new
>> hardware feature:
>>
>> - PXN:
>> Privileged execute-never(PXN) is a security feature. PXN bit
>> determines whether the processor can execute software from
>> the region. This is effective solution against ret2usr attack.
>>
>> This patch adds new HWCAP defines to describe new feature.
>> On an implementation that does not include the LPAE, PXN is
>> optionally supported.
>
> Why does the user need to know about such feature? Just enable it in the
> kernel if available.
>
> --
> Catalin

Yes, there is no reason to need to know.
I'll find another route to get vmsa and send patch later.

-- 
Regards,
Jungseung Lee



More information about the linux-arm-kernel mailing list