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
Unknown Object (File)
Wed, May 6, 2:43 AM
Unknown Object (File)
Thu, Apr 30, 4:20 PM
Unknown Object (File)
Tue, Apr 28, 10:11 PM
Unknown Object (File)
Tue, Apr 28, 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
Unknown Object (File)
Apr 21 2026, 6:05 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58166
Build 55054: arc lint + arc unit