Page MenuHomeFreeBSD

vm_grab: reset iter after alloc failure
ClosedPublic

Authored by dougm on Apr 10 2025, 6:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 6, 9:56 AM
Unknown Object (File)
Tue, Jun 23, 4:47 PM
Unknown Object (File)
May 24 2026, 12:30 AM
Unknown Object (File)
May 21 2026, 6:13 PM
Unknown Object (File)
May 21 2026, 2:18 PM
Unknown Object (File)
May 20 2026, 4:10 PM
Unknown Object (File)
May 17 2026, 12:58 AM
Unknown Object (File)
May 16 2026, 2:42 AM
Subscribers

Details

Summary

After vm_page_grab_lookup fails to find a page, and vm_page_alloc_after fails to allocate one, reset the pages iterator which is invalidated by a release/acquire of the object write lock within the allocation code.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Apr 10 2025, 6:48 AM
dougm created this revision.
This revision is now accepted and ready to land.Apr 10 2025, 6:50 AM

Fixes: 7becd87c988c ("vm_grab: use iterator for grab lookup")

This revision was automatically updated to reflect the committed changes.