Page MenuHomeFreeBSD

arm64 pmap: Release PTP reference on leaf ptpage allocation failure
ClosedPublic

Authored by bnovkov on Jun 13 2024, 4:28 PM.
Tags
None
Referenced Files
F159853620: D45578.diff
Thu, Jun 18, 7:57 PM
Unknown Object (File)
May 6 2026, 2:43 AM
Unknown Object (File)
Apr 30 2026, 4:20 PM
Unknown Object (File)
Apr 28 2026, 10:11 PM
Unknown Object (File)
Apr 28 2026, 10:06 PM
Unknown Object (File)
Apr 25 2026, 10:14 AM
Unknown Object (File)
Apr 25 2026, 7:54 AM
Unknown Object (File)
Apr 23 2026, 4:54 PM
Subscribers

Details

Summary

808f5ac 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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable