From: Will Deacon Date: Tue, 18 Sep 2012 18:18:35 +0000 (+0100) Subject: ARM: mm: use pteval_t to represent page protection values X-Git-Tag: v3.2.36~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa42c025b88f14159eb9fbe1ae6926b6ebdaa5da;p=pandora-kernel.git ARM: mm: use pteval_t to represent page protection values commit 864aa04cd02979c2c755cb28b5f4fe56039171c0 upstream. When updating the page protection map after calculating the user_pgprot value, the base protection map is temporarily stored in an unsigned long type, causing truncation of the protection bits when LPAE is enabled. This effectively means that calls to mprotect() will corrupt the upper page attributes, clearing the XN bit unconditionally. This patch uses pteval_t to store the intermediate protection values, preserving the upper bits for 64-bit descriptors. Acked-by: Nicolas Pitre Acked-by: Catalin Marinas Signed-off-by: Will Deacon Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed