Date: Sat, 21 Jun 2003 13:48:22 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: "Christian S.J. Peron" <maneo@bsdpro.com> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/53557: [patch]: kernel panic: fix for a divide by zero processor exception Message-ID: <20030621133541.X51140@gamplex.bde.org> In-Reply-To: <200306201508.h5KF8Vgc000839@h24-79-64-13.wp.shawcable.net> References: <200306201508.h5KF8Vgc000839@h24-79-64-13.wp.shawcable.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 20 Jun 2003, Christian S.J. Peron wrote: > >Description: > If root sets the kern.log_wakeups_per_second variable to 0 > the next time the callback for the syslog wakeup gets scheduled > it will panic due to divide by zero machine exception. Don't do that then. There are hundreds or thousands of sysctls that may be used for much more interesting foot shooting than a panic. If foot shooting prevention is required, then it should be implemented more generally starting with simple range checks for all sysctls that set scalar values. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030621133541.X51140>