Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/kern Apply patch (requested by maxv in ticket #1106):



details:   https://anonhg.NetBSD.org/src/rev/c22f7ed0c66a
branches:  netbsd-8
changeset: 446189:c22f7ed0c66a
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Nov 26 17:19:46 2018 +0000

description:
Apply patch (requested by maxv in ticket #1106):
Fix kernel information leak.

diffstat:

 sys/kern/subr_evcnt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8132b1815ceb -r c22f7ed0c66a sys/kern/subr_evcnt.c
--- a/sys/kern/subr_evcnt.c     Mon Nov 26 17:13:07 2018 +0000
+++ b/sys/kern/subr_evcnt.c     Mon Nov 26 17:19:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_evcnt.c,v 1.12 2014/02/25 18:30:11 pooka Exp $ */
+/* $NetBSD: subr_evcnt.c,v 1.12.22.1 2018/11/26 17:19:46 snj Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_evcnt.c,v 1.12 2014/02/25 18:30:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_evcnt.c,v 1.12.22.1 2018/11/26 17:19:46 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/evcnt.h>
@@ -257,7 +257,7 @@
        sysctl_unlock();
 
        if (oldp != NULL && xevs0 == NULL)
-               xevs0 = kmem_alloc(sizeof(*xevs0), KM_SLEEP);
+               xevs0 = kmem_zalloc(sizeof(*xevs0), KM_SLEEP);
 
        retries = 100;
  retry:



Home | Main Index | Thread Index | Old Index