Page MenuHomeFreeBSD

vchiq_arm: Don't free on error
ClosedPublic

Authored by imp on Aug 25 2025, 7:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 17, 10:05 AM
Unknown Object (File)
Fri, Mar 13, 2:25 AM
Unknown Object (File)
Mar 7 2026, 6:55 PM
Unknown Object (File)
Mar 7 2026, 1:04 AM
Unknown Object (File)
Mar 5 2026, 12:12 PM
Unknown Object (File)
Feb 22 2026, 9:08 PM
Unknown Object (File)
Feb 22 2026, 11:11 AM
Unknown Object (File)
Feb 21 2026, 12:44 PM
Subscribers
None

Details

Summary

When actual_pages is -1, calling vm_page_unhold_pages will loop
forever. We don't actually need to loop. In fact, it will either be -1
or the right number of pages: we never return a partial allocation. It
might be more proper to assert this, but since this is contrib code,
make a minimal change to avoid the infinite loop.

Sponsored by: Netflix

Test Plan

I have no way of testing this, but the code is clearly wrong when vm_fault_quick_hold_pages returns -1.

Diff Detail

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