HomeFreeBSD

Treat cache write as a read in arm64 data faults

Description

Treat cache write as a read in arm64 data faults

On arm64 we can ask the hardware to perform cache operations from
userspace. These require read permission however when the memory is
unmapped the kernel will receive a write exception. Add a check to
see if the cause of the exception is from the cache and pass a memory
read fault type to the vm subsystem.

PR: 262836
Reported by: dch
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 029c1c4828aab451ba262cd4e2e1d9362cf18b76)

Details

Provenance
andrewAuthored on Mar 26 2022, 3:59 PM
Parents
rG30a1d38e6cbd: *: Do not use the no-op -r flag for bsdlabel(8)
Branches
Unknown
Tags
Unknown