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

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
rG62df41ae0a71: ssh: Bump VersionAddendum for CVE fixes
Branches
Unknown
Tags
Unknown