]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the correct size when checking an EFI address
authorAndrew Turner <andrew@FreeBSD.org>
Fri, 9 Sep 2022 07:42:49 +0000 (08:42 +0100)
committerAndrew Turner <andrew@FreeBSD.org>
Fri, 9 Sep 2022 07:47:15 +0000 (08:47 +0100)
commit643e14d0941fad1e2105aaf8ed5c3ca1dcffdb56
tree745aa3b49cf4d861b804c16f95258c201400ef3b
parent20adba8bc1beb125d5e5ed8f12e747ae79ca6a10
Use the correct size when checking an EFI address

Use the correct page size macro when checking if an address is with
the EFI runtime map. This would previously work correctly when the
page size is 4k. With a larger page size it may incorrectly detect
memory as within the map when it's not.

Reported by: imp
Sponsored by: Innovate UK
sys/dev/efidev/efirt.c