ARM: Add support for checking access permissions on prefetch aborts
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 20 Sep 2009 12:18:47 +0000 (13:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 20 Sep 2009 15:53:40 +0000 (16:53 +0100)
commitdf297bf6c7933e7b021cdc1bf3f9e319ea3a7e9c
tree9ef6353c4100c83176c4e7b5ef3933dc342f91df
parentd374bf14a5ff18133bd6a6cc00f189949f7ba8fb
ARM: Add support for checking access permissions on prefetch aborts

ARMv6 introduces non-executable mappings, which can cause prefetch aborts
when an attempt is made to execute from such a mapping.  Currently, this
causes us to loop in the page fault handler since we don't correctly
check for proper permissions.

Fix this by checking that VMAs have VM_EXEC set for prefetch aborts.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/fault.c