]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Treat cache write as a read in arm64 data faults
authorAndrew Turner <andrew@FreeBSD.org>
Sat, 26 Mar 2022 15:59:34 +0000 (15:59 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Thu, 31 Mar 2022 11:09:07 +0000 (12:09 +0100)
commit004da2d51f8427745c0d1287781d5ba546b19000
treea8961b9c83838a511ed634625508f117e8224d43
parent30a1d38e6cbd1cef63eae1b352aaa72abf276ca7
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)
sys/arm64/arm64/trap.c