]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:33 +0000 (15:44 -0700)
commit550af7582d985bab3b18bd6f920389be4f7d56f8
treeb1280dd6b2dda46c454bd180bf063c24f685a106
parent0cd2bf5c125ad555db6804ed02f7280d9ba41227
x86/mm: Fix types used in pgprot cacheability flags translations

Orabug: 23330784

[ Upstream commit 3625c2c234ef66acf21a72d47a5ffa94f6c5ebf2 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit bd6d701606119bbbc3b55a064a53c6789a1acab6)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
arch/x86/include/asm/pgtable_types.h