aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2013-05-07 16:57:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-11 07:18:24 -0700
commit0661e5659a502db6c989318628365fc34242481d (patch)
tree51e84e4b5ea0c9c46caa75e301db3158403b619a /block
parentb548047b3ed2ff999744c89277d40ef494e387d9 (diff)
arm64: Ignore the 'write' ESR flag on cache maintenance faults
commit 0e7f7bcc3fc87489cda5aa6aff8ce40eed912279 upstream. 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: Catalin Marinas <catalin.marinas@arm.com> Reported-by: Tim Northover <Tim.Northover@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions