git: 83d7a4966f08 - main - vm_fault: expand KASSERT message in vm_fault_populate_cleanup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Mar 2026 22:03:27 UTC
The branch main has been updated by pouria:
URL: https://cgit.FreeBSD.org/src/commit/?id=83d7a4966f08f34a699da649bd4f714b450df39b
commit 83d7a4966f08f34a699da649bd4f714b450df39b
Author: isoux <isa@isoux.org>
AuthorDate: 2026-02-20 19:54:35 +0000
Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-03-16 22:00:44 +0000
vm_fault: expand KASSERT message in vm_fault_populate_cleanup
Include index values and object pointer in the diagnostic
to improve debugging of pindex mismatches.
No functional change.
Signed-off-by: Isa Isoux <isa@isoux.org>
Reviewed by: kib, pouria
Pull Request: https://github.com/freebsd/freebsd-src/pull/2038
---
sys/vm/vm_fault.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index addda72e2b56..88438320a17a 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -509,7 +509,10 @@ vm_fault_populate_cleanup(vm_object_t object, vm_pindex_t first,
vm_page_deactivate(m);
vm_page_xunbusy(m);
}
- KASSERT(pages.index == last, ("%s: pindex mismatch", __func__));
+ KASSERT(pages.index == last,
+ ("%s: Object %p first %#jx last %#jx index %#jx",
+ __func__, object, (uintmax_t)first, (uintmax_t)last,
+ (uintmax_t)pages.index));
}
static enum fault_status