Page MenuHomeFreeBSD

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

Authored by bnovkov on Jun 13 2024, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 8:27 PM
Unknown Object (File)
Tue, Nov 12, 2:21 PM
Unknown Object (File)
Thu, Nov 7, 12:07 PM
Unknown Object (File)
Tue, Nov 5, 11:54 AM
Unknown Object (File)
Thu, Oct 31, 5:04 PM
Unknown Object (File)
Sat, Oct 19, 9:53 PM
Unknown Object (File)
Thu, Oct 17, 1:00 PM
Unknown Object (File)
Oct 15 2024, 7:44 PM
Subscribers

Details

Summary

d0941ed 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