CVS commit: [netbsd-9] src/sys/dev/sysmon
Module Name:src Committed By: martin Date: Sun Sep 1 10:57:53 UTC 2019 Modified Files: src/sys/dev/sysmon [netbsd-9]: sysmon_power.c Log Message: Pull up following revision(s) (requested by maxv in ticket #128): sys/dev/sysmon/sysmon_power.c: revision 1.61 Fix info leak, not all of 'pev' is initialized. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.60.4.1 src/sys/dev/sysmon/sysmon_power.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/dev/sysmon
Module Name:src Committed By: martin Date: Sun Sep 1 10:57:53 UTC 2019 Modified Files: src/sys/dev/sysmon [netbsd-9]: sysmon_power.c Log Message: Pull up following revision(s) (requested by maxv in ticket #128): sys/dev/sysmon/sysmon_power.c: revision 1.61 Fix info leak, not all of 'pev' is initialized. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.60.4.1 src/sys/dev/sysmon/sysmon_power.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/sysmon/sysmon_power.c diff -u src/sys/dev/sysmon/sysmon_power.c:1.60 src/sys/dev/sysmon/sysmon_power.c:1.60.4.1 --- src/sys/dev/sysmon/sysmon_power.c:1.60 Fri Mar 1 11:06:56 2019 +++ src/sys/dev/sysmon/sysmon_power.c Sun Sep 1 10:57:53 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_power.c,v 1.60 2019/03/01 11:06:56 pgoyette Exp $ */ +/* $NetBSD: sysmon_power.c,v 1.60.4.1 2019/09/01 10:57:53 martin Exp $ */ /*- * Copyright (c) 2007 Juan Romero Pardines. @@ -69,7 +69,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.60 2019/03/01 11:06:56 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.60.4.1 2019/09/01 10:57:53 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -331,6 +331,8 @@ sysmon_power_daemon_task(struct power_ev if (!ped || !ped->dict || !pev_data) return EINVAL; + memset(, 0, sizeof(pev)); + mutex_enter(_power_event_queue_mtx); switch (event) {
CVS commit: [netbsd-9] src/sys/dev/sysmon
Module Name:src Committed By: martin Date: Mon Aug 26 14:13:42 UTC 2019 Modified Files: src/sys/dev/sysmon [netbsd-9]: sysmon.c Log Message: Pull up following revision(s) (requested by nakayama in ticket #118): sys/dev/sysmon/sysmon.c: revision 1.30 Module class of sysmon_envsys, sysmon_wdog and sysmon_power is MODULE_CLASS_DRIVER, not MODULE_CLASS_MISC. Fix that invoking envsys without sysmon_envsys kernel module failes with: WARNING: module error: incompatible module class for `sysmon_envsys' (1 != 3) To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.29.2.1 src/sys/dev/sysmon/sysmon.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/sysmon/sysmon.c diff -u src/sys/dev/sysmon/sysmon.c:1.29 src/sys/dev/sysmon/sysmon.c:1.29.2.1 --- src/sys/dev/sysmon/sysmon.c:1.29 Fri Apr 26 08:38:25 2019 +++ src/sys/dev/sysmon/sysmon.c Mon Aug 26 14:13:42 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $ */ +/* $NetBSD: sysmon.c,v 1.29.2.1 2019/08/26 14:13:42 martin Exp $ */ /*- * Copyright (c) 2000 Zembu Labs, Inc. @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.29.2.1 2019/08/26 14:13:42 martin Exp $"); #include #include @@ -151,7 +151,7 @@ sysmonopen(dev_t dev, int flag, int mode if (sysmon_opvec_table[minor(dev)] == NULL) { mutex_exit(_minor_mtx); error = module_autoload(sysmon_mod[minor(dev)], - MODULE_CLASS_MISC); + MODULE_CLASS_DRIVER); if (error) return error; mutex_enter(_minor_mtx);
CVS commit: [netbsd-9] src/sys/dev/sysmon
Module Name:src Committed By: martin Date: Mon Aug 26 14:13:42 UTC 2019 Modified Files: src/sys/dev/sysmon [netbsd-9]: sysmon.c Log Message: Pull up following revision(s) (requested by nakayama in ticket #118): sys/dev/sysmon/sysmon.c: revision 1.30 Module class of sysmon_envsys, sysmon_wdog and sysmon_power is MODULE_CLASS_DRIVER, not MODULE_CLASS_MISC. Fix that invoking envsys without sysmon_envsys kernel module failes with: WARNING: module error: incompatible module class for `sysmon_envsys' (1 != 3) To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.29.2.1 src/sys/dev/sysmon/sysmon.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.