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/5476b3f6df61
branches: netbsd-8
changeset: 446274:5476b3f6df61
user: martin <martin%NetBSD.org@localhost>
date: Thu Nov 29 08:48:38 2018 +0000
description:
Pull up following revision(s) (requested by maxv in ticket #1110):
sys/kern/kern_time.c: revision 1.192
Fix kernel info leak.
+ Possible info leak: [len=32, leaked=16]
| #0 0xffffffff80baf3a7 in kleak_copyout
| #1 0xffffffff80b940f8 in sys___timer_settime50
| #2 0xffffffff80259c42 in syscall
diffstat:
sys/kern/kern_time.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 7a2abe46c46f -r 5476b3f6df61 sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Wed Nov 28 19:51:30 2018 +0000
+++ b/sys/kern/kern_time.c Thu Nov 29 08:48:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_time.c,v 1.189 2016/11/11 15:29:36 njoly Exp $ */
+/* $NetBSD: kern_time.c,v 1.189.8.1 2018/11/29 08:48:38 martin Exp $ */
/*-
* Copyright (c) 2000, 2004, 2005, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.189 2016/11/11 15:29:36 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.189.8.1 2018/11/29 08:48:38 martin Exp $");
#include <sys/param.h>
#include <sys/resourcevar.h>
@@ -602,6 +602,7 @@
pts = timers_alloc(p);
pt = pool_get(&ptimer_pool, PR_WAITOK);
+ memset(pt, 0, sizeof(*pt));
if (evp != NULL) {
if (((error =
(*fetch_event)(evp, &pt->pt_ev, sizeof(pt->pt_ev))) != 0) ||
Home |
Main Index |
Thread Index |
Old Index