PC-BSD/trueos f68e64csys/arm64/arm64 cpufunc_asm.S freebsd32_machdep.c, sys/arm64/include cpufunc.h

Introduce cpu_icache_sync_range_checked(), that does the same thing as
cpu_icache_sync_range(), except that it sets pcb_onfault to catch any page
fault, as doing cache maintenance operations for non-mapped generates a
data abort, and use it in freebsd32_sysarch(), so that a userland program
attempting to sync the icache with unmapped addresses doesn't crash the
kernel.

Spotted out by: andrew
DeltaFile
+21-0sys/arm64/arm64/cpufunc_asm.S
+1-1sys/arm64/arm64/freebsd32_machdep.c
+2-0sys/arm64/include/cpufunc.h
+24-13 files

UnifiedSplitRaw