HomeFreeBSD

amd64 pmap: Release PTP reference on leaf ptpage allocation failure

Description

amd64 pmap: Release PTP reference on leaf ptpage allocation failure

aa3bcaa fixed an edge case invloving mlock() and superpage creation
by creating and inserting a leaf pagetable page for mlock'd superpages.
However, the code does not properly release the reference to the
pagetable page in the error handling path.
This commit fixes the issue by adding calls to 'pmap_abort_ptp'
in the error handling path.

Reported by: alc
Approved by: markj (mentor)
Fixes: aa3bcaa
Differential Revision: https://reviews.freebsd.org/D45577

Details

Provenance
bnovkovAuthored on Thu, Jun 13, 3:58 PM
Differential Revision
D45577: amd64 pmap: Release PTP reference on leaf ptpage allocation failure
Parents
rG018a361f8902: virtio(4): Fix two typos in KASSERT messages
Branches
Unknown
Tags
Unknown