[PATCH] ARM: 2698/1: Enable kernel r/w access to user pages on ARMv6
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 24 Jun 2005 20:27:39 +0000 (21:27 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 24 Jun 2005 20:27:39 +0000 (21:27 +0100)
commit79042f087b5ac7bba819de03dc3e7462bab8aad9
tree0fb7ca4b0d690d59a4a0d5bc6774a345edb43284
parent5932ae3f5d610fd8d047ef4693bab9f084e5c56d
[PATCH] ARM: 2698/1: Enable kernel r/w access to user pages on ARMv6

Patch from Catalin Marinas

cpu_v6_set_pte() sets the kernel access rights to r/o for user
pages (L_PTE_USER) when neither L_PTE_WRITE nor L_PTE_DIRTY are
set. This causes a kernel data abort when writing the TLS value
in the 0xffff0000 page. This patch enables the kernel r/w access.

Signed-off-by: Catalin Marinas
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-v6.S