Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7-0]: src/sys/kern Pull up following revision(s) (requested by ma...
details: https://anonhg.NetBSD.org/src/rev/f731ac09536f
branches: netbsd-7-0
changeset: 446279:f731ac09536f
user: martin <martin%NetBSD.org@localhost>
date: Thu Nov 29 09:00:14 2018 +0000
description:
Pull up following revision(s) (requested by maxv in ticket #1660):
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 653726f715ea -r f731ac09536f sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Wed Nov 28 19:58:15 2018 +0000
+++ b/sys/kern/kern_time.c Thu Nov 29 09:00:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_time.c,v 1.179.12.1 2016/03/03 15:41:35 martin Exp $ */
+/* $NetBSD: kern_time.c,v 1.179.12.2 2018/11/29 09:00:14 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.179.12.1 2016/03/03 15:41:35 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.179.12.2 2018/11/29 09:00:14 martin Exp $");
#include <sys/param.h>
#include <sys/resourcevar.h>
@@ -566,6 +566,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