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)
Mon, Dec 16, 9:27 PM
Unknown Object (File)
Thu, Dec 12, 7:39 PM
Unknown Object (File)
Nov 25 2024, 1:07 AM
Unknown Object (File)
Nov 24 2024, 10:05 AM
Unknown Object (File)
Nov 19 2024, 9:05 PM
Unknown Object (File)
Nov 19 2024, 7:17 AM
Unknown Object (File)
Nov 16 2024, 10:39 AM
Unknown Object (File)
Nov 16 2024, 9:31 AM
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