HomeFreeBSD

arm64: fix a potential KVA leak in pmap_demote_l1()

Description

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.

(cherry picked from commit 5dd84e315a9f777772017f9f628aa67f08a6493a)

Details

Provenance
alcAuthored on Jun 26 2021, 3:29 AM
markjCommitted on Aug 31 2021, 7:09 PM
Parents
rGac5046a3a46a: arm64: make it possible to define PV_STATS
Branches
Unknown
Tags
Unknown