HomeFreeBSD

riscv pmap: Release PTP reference on leaf ptpage allocation failure

Description

riscv pmap: Release PTP reference on leaf ptpage allocation failure

d0941ed 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: d0941ed
Differential Revision: https://reviews.freebsd.org/D45580

Details

Provenance
bnovkovAuthored on Jun 13 2024, 4:14 PM
Differential Revision
D45580: riscv pmap: Release PTP reference on leaf ptpage allocation failure
Parents
rGe8816b4b66ad: riscv pmap: Introduce 'pmap_abort_ptp'
Branches
Unknown
Tags
Unknown