From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 20 20:50:16 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6BA737B401 for ; Fri, 20 Jun 2003 20:50:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EC2443F85 for ; Fri, 20 Jun 2003 20:50:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5L3oGUp098431 for ; Fri, 20 Jun 2003 20:50:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5L3oFks098430; Fri, 20 Jun 2003 20:50:16 -0700 (PDT) Date: Fri, 20 Jun 2003 20:50:16 -0700 (PDT) Message-Id: <200306210350.h5L3oFks098430@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Bruce Evans Subject: Re: kern/53557: [patch]: kernel panic: fix for a divide by zero processor exception X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Bruce Evans List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2003 03:50:17 -0000 The following reply was made to PR kern/53557; it has been noted by GNATS. From: Bruce Evans To: "Christian S.J. Peron" 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. Bruce