Re: [PATCH v3] ARM: mm: fix reporting of read-only PMD bits

2014-03-22 Thread Kees Cook
On Sat, Mar 22, 2014 at 10:45 AM, Rob Herring wrote: > On Sat, Mar 22, 2014 at 10:16 AM, Kees Cook wrote: >> On non-LPAE ARMv6+, read-only PMD bits are defined with the combination >> "PMD_SECT_APX | PMD_SECT_AP_WRITE". Adjusted the bit masks to correctly >> report this. >> >> Signed-off-by: Kees

Re: [PATCH v3] ARM: mm: fix reporting of read-only PMD bits

2014-03-22 Thread Rob Herring
On Sat, Mar 22, 2014 at 10:16 AM, Kees Cook wrote: > On non-LPAE ARMv6+, read-only PMD bits are defined with the combination > "PMD_SECT_APX | PMD_SECT_AP_WRITE". Adjusted the bit masks to correctly > report this. > > Signed-off-by: Kees Cook > --- > v3: > - check for pre-v6 CPUs on the page tab

[PATCH v3] ARM: mm: fix reporting of read-only PMD bits

2014-03-22 Thread Kees Cook
On non-LPAE ARMv6+, read-only PMD bits are defined with the combination "PMD_SECT_APX | PMD_SECT_AP_WRITE". Adjusted the bit masks to correctly report this. Signed-off-by: Kees Cook --- v3: - check for pre-v6 CPUs on the page table report. v2: - reorder bits, suggested by Olof. --- arch/arm/mm