Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/kern Pull up following revision(s) (requested by maxv...
details: https://anonhg.NetBSD.org/src/rev/5fbd88b96be4
branches: netbsd-8
changeset: 446315:5fbd88b96be4
user: martin <martin%NetBSD.org@localhost>
date: Fri Nov 30 10:32:22 2018 +0000
description:
Pull up following revision(s) (requested by maxv in ticket #1114):
sys/kern/kern_exit.c: revision 1.273
Fix info leak. There is one branch where 'status' is not initialized at
all.
+ Possible info leak: [len=4, leaked=4]
| #0 0xffffffff80baf397 in kleak_copyout
| #1 0xffffffff80b56d0c in sys_wait6
| #2 0xffffffff80259c42 in syscall
diffstat:
sys/kern/kern_exit.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 150e5d442b8a -r 5fbd88b96be4 sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c Fri Nov 30 10:28:46 2018 +0000
+++ b/sys/kern/kern_exit.c Fri Nov 30 10:32:22 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exit.c,v 1.268.8.1 2018/04/12 13:42:48 martin Exp $ */
+/* $NetBSD: kern_exit.c,v 1.268.8.2 2018/11/30 10:32:22 martin Exp $ */
/*-
* Copyright (c) 1998, 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.268.8.1 2018/04/12 13:42:48 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.268.8.2 2018/11/30 10:32:22 martin Exp $");
#include "opt_ktrace.h"
#include "opt_dtrace.h"
@@ -661,6 +661,7 @@
if (child == NULL) {
mutex_exit(proc_lock);
*pid = 0;
+ *status = 0;
return error;
}
*pid = child->p_pid;
Home |
Main Index |
Thread Index |
Old Index