From land@daemon.dnepr.net  Fri May 11 10:38:19 2001
Return-Path: <land@daemon.dnepr.net>
Received: from daemon.dnepr.net (daemon.dnepr.net [195.24.156.63])
	by hub.freebsd.org (Postfix) with ESMTP id D248E37B43E
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 May 2001 10:38:15 -0700 (PDT)
	(envelope-from land@daemon.dnepr.net)
Received: (from land@localhost)
	by daemon.dnepr.net (8.11.3/8.11.3) id f4BHc7801048;
	Fri, 11 May 2001 20:38:07 +0300 (EEST)
	(envelope-from land)
Message-Id: <200105111738.f4BHc7801048@daemon.dnepr.net>
Date: Fri, 11 May 2001 20:38:07 +0300 (EEST)
From: land@dnepr.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: kernel bug ?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27275
>Category:       kern
>Synopsis:       kernel bug ? (negative sbsize)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 11 10:40:02 PDT 2001
>Closed-Date:    Wed Dec 13 14:30:41 GMT 2006
>Last-Modified:  Wed Dec 13 14:30:41 GMT 2006
>Originator:     Andrey Lakhno
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD daemon.dnepr.net 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sun Apr 22 22:18:02 EEST 2001 land@daemon.dnepr.net:/usr/obj/usr/src/sys/DAEMON i386

	
>Description:

	After some uptime (20-30 housrs) in log files appears following messages:

	May 11 18:36:21 <kern.crit> gw2 /kernel: negative proccnt for uid = 65534
	May 11 18:36:21 <kern.crit> gw2 /kernel: freeing uidinfo: uid = 65534, sbsize = 34306
	May 11 18:36:21 <kern.crit> gw2 /kernel: freeing uidinfo: uid = 65534, proccnt = -1
	May 11 18:36:21 <kern.crit> gw2 /kernel: negative sbsize for uid = 1
	May 11 18:36:21 <kern.crit> gw2 /kernel: negative sbsize for uid = 1
	May 11 18:36:21 <kern.crit> gw2 /kernel: negative sbsize for uid = -16777216
	May 11 18:36:53 <kern.crit> gw2 last message repeated 202 times
	May 11 18:39:00 <kern.crit> gw2 last message repeated 1162 times
	May 11 18:42:12 <kern.crit> gw2 last message repeated 1830 times

	Last error message repeats until reboot.

	
>How-To-Repeat:

System runs as busy mail hub. PID wrap occurs each 8 hours.
Fresh installation. But old sendmail config (from version 8.6).

	
>Fix:

	
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: schweikh 
State-Changed-When: Fri Aug 9 12:31:15 PDT 2002 
State-Changed-Why:  
Does this still happen with a recent release (4.6) or -stable? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27275 

From: Andrey Lakhno <land@dnepr.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/27275: kernel bug
Date: Sat, 10 Aug 2002 07:16:59 +0300

 Hi !
 
 Sometimes I see following lines in logs:
 /kernel: negative proccnt for uid = 65534
 /kernel: freeing uidinfo: uid = 65534, sbsize = 34306
 /kernel: freeing uidinfo: uid = 65534, proccnt = -1
 
 FreeBSD 4.6-R
 
 -- 
 

From: Alexander Leidinger <Alexander@Leidinger.net>
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
State-Changed-From-To: feedback->closed 
State-Changed-By: keramida 
State-Changed-When: Fri Feb 28 13:21:30 PST 2003 
State-Changed-Why:  
Feedback timeout, after 6 months. 

Andrey, if you find the time in the future to test a newer release, 
you're always welcome to submit a new PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27275 
State-Changed-From-To: closed->feedback 
State-Changed-By: keramida 
State-Changed-When: Fri Feb 28 13:26:38 PST 2003 
State-Changed-Why:  
Grrmpf!  I hate it when lynx shows me only half of the PR text. 
This is certainly not ready to be closed, yet. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27275 

From: "KAREN THODE" <thode12@msn.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <land@dnepr.net>
Cc:  
Subject: Re: kern/27275: kernel bug ?
Date: Sat, 17 May 2003 19:59:00 -0500

 ------=_NextPart_001_0001_01C31CAE.C21EC6F0
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 I have a macro that will trap the exception, or you could change the type=
  of the variable in question to an unsigned type.  The macro is as follow=
 s:
 
 #define trapneg(arg) ((arg < 0)?arg=3D0:;)
 
 Lucas
 
 ------=_NextPart_001_0001_01C31CAE.C21EC6F0
 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>I have a macro=
  that will trap the exception, or you could change the type of the variab=
 le in question to an unsigned type.&nbsp; The macro is as follows:</DIV> =
 <DIV>&nbsp;</DIV> <DIV>#define trapneg(arg) ((arg &lt; 0)?arg=3D0:;)</DIV=
 > <DIV>&nbsp;</DIV> <DIV>Lucas<BR><BR></DIV></BODY></HTML>
 
 ------=_NextPart_001_0001_01C31CAE.C21EC6F0--

From: "KAREN THODE" <thode12@msn.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <land@dnepr.net>
Cc:  
Subject: Re: kern/27275: kernel bug ?
Date: Thu, 3 Jul 2003 14:02:02 -0500

 ------=_NextPart_001_0003_01C3416B.AD9B2D40
 Content-Type: text/plain; charset="iso-8859-1"
 
 arg = 3d0 should be changed to 0.
 ------=_NextPart_001_0003_01C3416B.AD9B2D40
 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>arg =3D 3d0 sh=
 ould be changed to 0.<BR></DIV></BODY></HTML>
 
 ------=_NextPart_001_0003_01C3416B.AD9B2D40--
State-Changed-From-To: feedback->open 
State-Changed-By: remko 
State-Changed-When: Sun Nov 12 10:32:53 UTC 2006 
State-Changed-Why:  
Open up the PR again, is this still relevant (yes that is normally a feedback 
question)? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27275 
Responsible-Changed-From-To: freebsd-bugs->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Nov 12 10:34:10 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27275 
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Wed Dec 13 14:30:38 UTC 2006 
State-Changed-Why:  
feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27275 
>Unformatted:
