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)
Thu, Oct 16, 4:02 AM
Unknown Object (File)
Tue, Oct 14, 3:12 AM
Unknown Object (File)
Mon, Oct 13, 9:53 AM
Unknown Object (File)
Mon, Oct 13, 9:53 AM
Unknown Object (File)
Mon, Oct 13, 9:53 AM
Unknown Object (File)
Sun, Oct 12, 9:24 PM
Unknown Object (File)
Thu, Sep 18, 7:33 PM
Unknown Object (File)
Sep 15 2025, 7:21 AM
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