Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern make sure that the size we pass to uvm_map() is a m...
details: https://anonhg.NetBSD.org/src/rev/2aeaa78af6fe
branches: trunk
changeset: 487815:2aeaa78af6fe
user: chs <chs%NetBSD.org@localhost>
date: Tue Jun 13 04:25:31 2000 +0000
description:
make sure that the size we pass to uvm_map() is a multiple of PAGESIZE.
this should fix PR 10175 and prevent the panic of PR 10079.
diffstat:
sys/kern/exec_subr.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 8ce2f253e2ca -r 2aeaa78af6fe sys/kern/exec_subr.c
--- a/sys/kern/exec_subr.c Tue Jun 13 04:10:47 2000 +0000
+++ b/sys/kern/exec_subr.c Tue Jun 13 04:25:31 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_subr.c,v 1.17 1999/07/07 20:23:45 ws Exp $ */
+/* $NetBSD: exec_subr.c,v 1.18 2000/06/13 04:25:31 chs Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -161,6 +161,8 @@
return(EINVAL);
if (cmd->ev_addr & PAGE_MASK)
return(EINVAL);
+ if (cmd->ev_len & PAGE_MASK)
+ return(EINVAL);
/*
* first, attach to the object
Home |
Main Index |
Thread Index |
Old Index