Skip to content
Commit 0e7f7bcc authored by Catalin Marinas's avatar Catalin Marinas
Browse files

arm64: Ignore the 'write' ESR flag on cache maintenance faults



ESR.WnR bit is always set on data cache maintenance faults even though
the page is not required to have write permission. If a translation
fault (page not yet mapped) happens for read-only user address range,
Linux incorrectly assumes a permission fault. This patch adds the check
of the ESR.CM bit during the page fault handling to ignore the 'write'
flag.

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Reported-by: default avatarTim Northover <Tim.Northover@arm.com>
Cc: stable@vger.kernel.org
parent ed1f2363
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment