ARM: 6955/1: cmpxchg syscall should data abort if page not write
authorPo-Yu Chuang <ratbert@faraday-tech.com>
Thu, 9 Jun 2011 07:42:17 +0000 (08:42 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Jun 2011 09:15:07 +0000 (10:15 +0100)
commit373ce3020b03fb6199415ab866595c7d627bbc97
tree20c2bc022c8eb35f418ee8e44a7801cf39ad09c4
parent720c60e1943a06cfd9472ad5a9967dec304e4394
ARM: 6955/1: cmpxchg syscall should data abort if page not write

If the page to cmpxchg is user mode read only (not write),
we should simulate a data abort first.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c