Date: Fri, 20 Jun 2003 20:50:16 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/53557: [patch]: kernel panic: fix for a divide by zero processor exception Message-ID: <200306210350.h5L3oFks098430@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR kern/53557; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: "Christian S.J. Peron" <maneo@bsdpro.com> Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: kern/53557: [patch]: kernel panic: fix for a divide by zero processor exception Date: Sat, 21 Jun 2003 13:48:22 +1000 (EST) 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. Brucehelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306210350.h5L3oFks098430>
