Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix kernel info leaks.
details: https://anonhg.NetBSD.org/src/rev/e5eeb716c5a2
branches: trunk
changeset: 448379:e5eeb716c5a2
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Jan 31 20:09:05 2019 +0000
description:
Fix kernel info leaks.
diffstat:
sys/kern/kern_time.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 0df1a54918d8 -r e5eeb716c5a2 sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Thu Jan 31 18:21:21 2019 +0000
+++ b/sys/kern/kern_time.c Thu Jan 31 20:09:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_time.c,v 1.193 2018/11/29 17:40:12 maxv Exp $ */
+/* $NetBSD: kern_time.c,v 1.194 2019/01/31 20:09:05 maxv 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.193 2018/11/29 17:40:12 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.194 2019/01/31 20:09:05 maxv Exp $");
#include <sys/param.h>
#include <sys/resourcevar.h>
@@ -524,6 +524,7 @@
extern int64_t time_adjtime; /* in kern_ntptime.c */
if (olddelta) {
+ memset(olddelta, 0, sizeof(*olddelta));
mutex_spin_enter(&timecounter_lock);
olddelta->tv_sec = time_adjtime / 1000000;
olddelta->tv_usec = time_adjtime % 1000000;
Home |
Main Index |
Thread Index |
Old Index