summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-12-07 18:30:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-12-07 18:30:27 +0000
commitcad0324982587c98de26013ec0a75c7a9db5523f (patch)
treebfd6db35e4a24eeb30f5d11e317b95e58645e308
parentc5c9541f4f46bd442862285a0bf12b421744453e (diff)
uvm_map_inentry() is provided a format string that says "inside", but then
prints the end which is in the next page. Subtract 1 to avoid confusion.
-rw-r--r--sys/uvm/uvm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index d153bbfd20b..4f192f5b5ea 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.279 2021/10/24 15:23:52 mpi Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.280 2021/12/07 18:30:26 deraadt Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -1894,7 +1894,7 @@ uvm_map_inentry(struct proc *p, struct p_inentry *ie, vaddr_t addr,
if (!ok) {
KERNEL_LOCK();
printf(fmt, p->p_p->ps_comm, p->p_p->ps_pid, p->p_tid,
- addr, ie->ie_start, ie->ie_end);
+ addr, ie->ie_start, ie->ie_end-1);
p->p_p->ps_acflag |= AMAP;
sv.sival_ptr = (void *)PROC_PC(p);
trapsignal(p, SIGSEGV, 0, SEGV_ACCERR, sv);