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
F102121905: D45578.diff
Thu, Nov 7, 9:33 PM
Unknown Object (File)
Sep 30 2024, 7:41 PM
Unknown Object (File)
Sep 11 2024, 5:29 AM
Unknown Object (File)
Sep 3 2024, 11:47 PM
Unknown Object (File)
Sep 2 2024, 10:06 PM
Unknown Object (File)
Sep 2 2024, 6:57 PM
Unknown Object (File)
Sep 2 2024, 6:57 PM
Unknown Object (File)
Sep 2 2024, 6:57 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