Module Name: src
Committed By: riastradh
Date: Fri Oct 20 19:06:46 UTC 2017
Modified Files:
src/sys/kern: kern_exec.c
Log Message:
Initialize the in/out parameter vmin.
vmin is only an optional hint since we're not passing UVM_FLAG_FIXED,
but that doesn't mean we should use uninitialized stack garbage as
the hint.
Noted by chs@.
To generate a diff of this commit:
cvs rdiff -u -r1.448 -r1.449 src/sys/kern/kern_exec.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/kern/kern_exec.c
diff -u src/sys/kern/kern_exec.c:1.448 src/sys/kern/kern_exec.c:1.449
--- src/sys/kern/kern_exec.c:1.448 Fri Oct 20 14:48:43 2017
+++ src/sys/kern/kern_exec.c Fri Oct 20 19:06:46 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.448 2017/10/20 14:48:43 riastradh Exp $ */
+/* $NetBSD: kern_exec.c,v 1.449 2017/10/20 19:06:46 riastradh Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.448 2017/10/20 14:48:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.449 2017/10/20 19:06:46 riastradh Exp $");
#include "opt_exec.h"
#include "opt_execfmt.h"
@@ -1821,7 +1821,7 @@ exec_init(int init_boot)
if (init_boot) {
/* do one-time initializations */
- vaddr_t vmin, vmax;
+ vaddr_t vmin = 0, vmax;
rw_init(&exec_lock);
mutex_init(&sigobject_lock, MUTEX_DEFAULT, IPL_NONE);