Page MenuHomeFreeBSD

powerpc_mmu_radix: Release PTP reference on leaf ptpage allocation failure
ClosedPublic

Authored by bnovkov on Jun 13 2024, 4:35 PM.
Tags
None
Referenced Files
F102112880: D45582.diff
Thu, Nov 7, 6:46 PM
Unknown Object (File)
Wed, Nov 6, 10:29 PM
Unknown Object (File)
Wed, Nov 6, 9:32 AM
Unknown Object (File)
Thu, Oct 17, 3:40 PM
Unknown Object (File)
Sun, Oct 13, 1:34 PM
Unknown Object (File)
Sat, Oct 12, 9:10 PM
Unknown Object (File)
Fri, Oct 11, 4:16 PM
Unknown Object (File)
Thu, Oct 10, 12:16 AM
Subscribers

Details

Summary

0013741 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