Module Name: src Committed By: riastradh Date: Wed Aug 14 20:58:25 UTC 2024
Modified Files: src/sys/uvm: uvm_map.c Log Message: uvm_map(9): Show the next entry when findspace invariants fail too. PR kern/51254: uvm assertion "!topdown || hint <= orig_hint" failed To generate a diff of this commit: cvs rdiff -u -r1.421 -r1.422 src/sys/uvm/uvm_map.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_map.c diff -u src/sys/uvm/uvm_map.c:1.421 src/sys/uvm/uvm_map.c:1.422 --- src/sys/uvm/uvm_map.c:1.421 Wed Aug 14 01:26:25 2024 +++ src/sys/uvm/uvm_map.c Wed Aug 14 20:58:25 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_map.c,v 1.421 2024/08/14 01:26:25 riastradh Exp $ */ +/* $NetBSD: uvm_map.c,v 1.422 2024/08/14 20:58:25 riastradh Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.421 2024/08/14 01:26:25 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.422 2024/08/14 20:58:25 riastradh Exp $"); #include "opt_ddb.h" #include "opt_pax.h" @@ -1862,11 +1862,15 @@ uvm_findspace_invariants(struct vm_map * "%s map=%p hint=%#" PRIxVADDR " %s orig_hint=%#" PRIxVADDR " length=%#" PRIxVSIZE " uobj=%p uoffset=%#llx align=%" PRIxVSIZE " flags=%#x entry@%p=[%" PRIxVADDR ",%" PRIxVADDR ")" + " entry->next@%p=[%" PRIxVADDR ",%" PRIxVADDR ")" " (uvm_map_findspace line %d)", topdown ? "topdown" : "bottomup", map, hint, topdown ? ">" : "<", orig_hint, length, uobj, (unsigned long long)uoffset, align, flags, entry, entry ? entry->start : 0, entry ? entry->end : 0, + entry && entry->next, + entry && entry->next ? entry->next->start : 0, + entry && entry->next ? entry->next->end : 0, line); }