x86/mm: Fix types used in pgprot cacheability flags translations
authorJan Beulich <JBeulich@suse.com>
Tue, 26 Jan 2016 11:15:18 +0000 (04:15 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 26 Jan 2016 20:05:36 +0000 (21:05 +0100)
commit3625c2c234ef66acf21a72d47a5ffa94f6c5ebf2
treeb156bf1125ef39a008ed5ccdfea2f046f014435d
parent22c43f36b5cf22a7e4506cb3a53f3ad2a43f60f7
x86/mm: Fix types used in pgprot cacheability flags translations

For PAE kernels "unsigned long" is not suitable to hold page protection
flags, since _PAGE_NX doesn't fit there. This is the reason for quite a
few W+X pages getting reported as insecure during boot (observed namely
for the entire initrd range).

Fixes: 281d4078be ("x86: Make page cache mode a real type")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <JGross@suse.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/56A7635602000078000CAFF1@prv-mh.provo.novell.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/pgtable_types.h