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)
Nov 3 2025, 8:28 AM
Unknown Object (File)
Nov 1 2025, 2:02 AM
Unknown Object (File)
Oct 27 2025, 7:24 AM
Unknown Object (File)
Oct 25 2025, 9:30 AM
Unknown Object (File)
Oct 16 2025, 4:02 AM
Unknown Object (File)
Oct 14 2025, 3:12 AM
Unknown Object (File)
Oct 13 2025, 9:53 AM
Unknown Object (File)
Oct 13 2025, 9:53 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