Page MenuHomeFreeBSD

vm_page: Fix a logic bug in vm_page_unwire_managed()
ClosedPublic

Authored by markj on Oct 4 2024, 3:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 10:48 PM
Unknown Object (File)
Fri, Nov 1, 3:54 AM
Unknown Object (File)
Tue, Oct 29, 9:51 PM
Unknown Object (File)
Thu, Oct 24, 1:17 PM
Unknown Object (File)
Wed, Oct 23, 10:36 AM
Unknown Object (File)
Thu, Oct 10, 12:46 AM
Unknown Object (File)
Tue, Oct 8, 10:24 AM
Unknown Object (File)
Oct 7 2024, 8:52 PM
Subscribers

Details

Summary

When releasing a page reference, we have logic for various cases, based
on the value of the counter. But, the implementation fails to take into
account the possibility that the VPRC_BLOCKED flag is set, which is ORed
into the counter for short windows when removing mappings of a page. If
the flag is set while the last reference is being released, we may fail
to add the page to a page queue when the last wiring reference is
released.

Fix the problem by performing comparisons with VPRC_BLOCKED masked off.
While here, add a related assertion.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable