Page MenuHomeFreeBSD

vm_phys_avail_check(): Check index parity, fix panic messages
ClosedPublic

Authored by olce on Jan 23 2025, 5:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 28 2025, 3:33 AM
Unknown Object (File)
Feb 21 2025, 8:24 PM
Unknown Object (File)
Feb 19 2025, 9:13 PM
Unknown Object (File)
Feb 9 2025, 12:16 PM
Unknown Object (File)
Feb 8 2025, 7:39 PM
Unknown Object (File)
Feb 6 2025, 10:15 PM
Unknown Object (File)
Feb 3 2025, 4:59 PM
Unknown Object (File)
Feb 2 2025, 8:31 PM
Subscribers

Details

Summary

The passed index must be the start of a chunk in phys_avail[], so must
be even. Test for that and print a separate panic message.

While here, fix panic messages: In one, the wrong chunk boundary was
printed, and in another, the desired but not the actual condition was
printed, possibly leading to confusion.

Diff Detail

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