opnsense-src/sys/arm64
Andrew Turner c3a3b231da arm64: Check DMAP address is valid in PHYS_IN_DMAP
When checking if a physical address is in the DMAP region we assume
all physical addresses between DMAP_MIN_PHYSADDR and DMAP_MAX_PHYSADDR
are able to be accesses through the DMAP. It may be the case that
there is device memory in this range that shouldn't be accessed through
the DMAP mappings.

Add a check to PHYS_IN_DMAP that the translated virtual address is a
valid kernel address. To support code that already checks the address
is valid add PHYS_IN_DMAP_RANGE.

PR:		278233
Reviewed by:	alc, markj
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D44677

(cherry picked from commit 9d40492efa467095340cf3dca5860880aa441472)
2024-05-02 07:59:31 +00:00
..
acpica pci_cfgreg: Add shims to preserve ABI of pci_cfgreg(read|write) 2024-01-18 15:19:11 -08:00
arm64 arm64: Check DMAP address is valid in PHYS_IN_DMAP 2024-05-02 07:59:31 +00:00
broadcom sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cavium sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
conf arm64: Add netmap(4) to default kernel config 2024-03-08 23:28:01 -05:00
coresight sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
freescale/imx sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
include arm64: Check DMAP address is valid in PHYS_IN_DMAP 2024-05-02 07:59:31 +00:00
intel sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
iommu sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
linux arm64: Create a Linux view of the ID registers 2024-02-19 13:13:49 +00:00
nvidia/tegra210 tegra210: change to UTF-8 (from ISO-8859) 2024-04-16 09:57:43 -04:00
qoriq arm64: Remove a double word in a source code comment 2024-04-23 07:23:53 +02:00
qualcomm sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
rockchip rk_i2s: remove unused definition 2024-02-17 16:15:10 +02:00