]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: fix a potential KVA leak in pmap_demote_l1()
authorAlan Cox <alc@FreeBSD.org>
Sat, 26 Jun 2021 03:29:38 +0000 (22:29 -0500)
committerAlan Cox <alc@FreeBSD.org>
Sat, 26 Jun 2021 04:01:32 +0000 (23:01 -0500)
commit5dd84e315a9f777772017f9f628aa67f08a6493a
treef85349640cb085be360fa6f9a62f8e3936e35ed8
parent18b19f8c6e04935a63a951afe0e540674bc94455
arm64: fix a potential KVA leak in pmap_demote_l1()

In the unlikely event that the 1 GB page mapping being demoted is used
to access the L1 page table page containing the 1 GB page mapping and
the vm_page_alloc() to allocate a new L2 page table page fails, we
would leak a page of kernel virtual address space.  Fix this leak.

MFC after: 1 week
sys/arm64/arm64/pmap.c