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
Unknown Object (File)
Sun, Jan 12, 8:10 PM
Unknown Object (File)
Sat, Jan 11, 8:13 AM
Unknown Object (File)
Sun, Dec 22, 12:23 PM
Unknown Object (File)
Nov 28 2024, 11:45 PM
Unknown Object (File)
Nov 23 2024, 10:41 PM
Unknown Object (File)
Nov 21 2024, 2:27 PM
Unknown Object (File)
Nov 19 2024, 3:01 PM
Unknown Object (File)
Nov 14 2024, 3:36 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