From owner-freebsd-bugs Sun Sep 15 5:40: 6 2002 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 DC51F37B400 for ; Sun, 15 Sep 2002 05:40:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B2C143E3B for ; Sun, 15 Sep 2002 05:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8FCe4JU038119 for ; Sun, 15 Sep 2002 05:40:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8FCe4ll038116; Sun, 15 Sep 2002 05:40:04 -0700 (PDT) Date: Sun, 15 Sep 2002 05:40:04 -0700 (PDT) Message-Id: <200209151240.g8FCe4ll038116@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Alexander Leidinger Subject: Re: kern/27275: kernel bug Reply-To: Alexander Leidinger Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/27275; it has been noted by GNATS. From: Alexander Leidinger To: freebsd-gnats-submit@FreeBSD.org Cc: schweikh@freebsd.org Subject: Re: kern/27275: kernel bug Date: Sun, 15 Sep 2002 14:38:45 +0200 Hi, I've got a report from a 4.6.2 System too which did a unwanted reboot after: ---snip--- Sep 15 00:11:15 barney /kernel: negative sbsize for uid = 65534 Sep 15 00:11:47 barney last message repeated 747 times Sep 15 00:13:43 barney last message repeated 5191 times Sep 15 00:19:50 barney /kernel: Copyright (c) 1992-2002 The FreeBSD Project. Sep 15 00:19:50 barney /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Sep 15 00:19:50 barney /kernel: The Regents of the University of California. All rights reserved. Sep 15 00:19:50 barney /kernel: FreeBSD 4.6.2-RELEASE #0: Mon Sep 2 11:55:11 CEST 2002 Sep 15 00:19:50 barney /kernel: root@barney.ms-net.de:/usr/src/sys/compile/MOESTAVERNE ---snip--- There's an apache running as nobody on this system. I don't know exactly what's going on in sys/kern/kern_resource.c, but I think the printf() in case sbsize is negative isn't enough. Maybe returning 0 if new is negative before we assign the new value may be needed (I'm speculating without any knowledge about sbsize only based upon comments in kern_resource.c (rev 1.107)). Bye, Alexander. -- The computer revolution is over. The computers won. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message