arm64: Allow cache maintenance operations to trigger write faults
arm64 sets non-dirty userspace PTEs as read only by default.
The expectation is that on the first write the fault handler will
properly unmark the PTE as read only. Currently, the fault handler
will not mark a fault coming from a cache maintainece operation as
a write. The result of this is that a write to a user space address
from a cache mainenance operation will not get unmarked as read only
and the access may be retried infinitely. Rather than going through
the hassel and side effects of adding the cache operations to the
exception table and changing arm code to match, just drop the CM
check from the fault handler and let cache maintainence faults be
handled like normal writes.
Change-Id: I4b295b47ebdd24abf94204ad634e91ca5f71ce8a
Signed-off-by:
Laura Abbott <lauraa@codeaurora.org>
Loading
Please register or sign in to comment