Page MenuHomeFreeBSD

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

Authored by bnovkov on Thu, Jun 13, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 6, 8:39 PM
Unknown Object (File)
Wed, Jul 3, 8:06 PM
Unknown Object (File)
Wed, Jun 26, 5:58 PM
Unknown Object (File)
Mon, Jun 24, 4:26 PM
Unknown Object (File)
Sun, Jun 16, 5:03 PM
Unknown Object (File)
Sun, Jun 16, 4:58 AM
Unknown Object (File)
Sat, Jun 15, 4:41 PM
Unknown Object (File)
Sat, Jun 15, 4:51 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