Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3fbe6bc2 authored by Laura Abbott's avatar Laura Abbott
Browse files

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: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 46fe9155
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment