HomeFreeBSD

vm_phys_avail_check(): Check index parity, fix panic messages

Description

vm_phys_avail_check(): Check index parity, fix panic messages

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.

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48626

(cherry picked from commit 125ef4e041fed40fed2d00b0ddd90fa0eb7b6ac3)

Details

Provenance
olceAuthored on Nov 5 2024, 8:58 AM
Reviewer
markj
Differential Revision
D48626: vm_phys_avail_check(): Check index parity, fix panic messages
Parents
rGf9fa6cb391f8: cred: Hide internal flag CRED_FLAG_CAPMODE
Branches
Unknown
Tags
Unknown