From nobody@FreeBSD.org  Mon May 22 07:36:30 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5649C16A45F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 May 2006 07:36:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7416843D69
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 May 2006 07:36:25 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4M7aOB9091202
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 May 2006 07:36:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4M7aOuk091200;
	Mon, 22 May 2006 07:36:24 GMT
	(envelope-from nobody)
Message-Id: <200605220736.k4M7aOuk091200@www.freebsd.org>
Date: Mon, 22 May 2006 07:36:24 GMT
From: Matthieu MICHAUD <ohmer@epita.info>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 6.1-RELEASE crashes on fork bomb
X-Send-Pr-Version: www-2.3

>Number:         97591
>Category:       kern
>Synopsis:       [panic]: 6.1-RELEASE crashes on fork bomb
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 22 07:40:13 GMT 2006
>Closed-Date:    Sat Jan 27 18:56:04 GMT 2007
>Last-Modified:  Sat Jan 27 18:56:04 GMT 2007
>Originator:     Matthieu MICHAUD
>Release:        6.1-RELEASE
>Organization:
EPITA
>Environment:
FreeBSD moe.lan 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Mon May 15 20:12:38 CEST 2006 root@homer.cload.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
my fresh installed 6.1-RELEASE workstation doesn't survive to a simple fork
bomb. after launching the bomb, it freezes a few seconds and then my computer
reboots. afair, 5.4 systems survived it.

i didn't tweak my kernel, i just use home compiled GENERIC without overriden
CFLAGS. everything is almost default install. what about adding a forkbomb
in regression tests ?
>How-To-Repeat:
echo 'int main() { for(;;) fork(); }' | gcc -x c - && ./a.out
>Fix:
i don't know how to fix it. it looks like a scheduler issue.
>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: Matthieu MICHAUD <ohmer@epita.info>
Cc: bug-followup@freebsd.org
Subject: Re: kern/97591: 6.1-RELEASE crashes on fork bomb
Date: Fri, 9 Jun 2006 21:40:30 +0400 (MSD)

 Hi Matthieu,
 
 > >Description:
 > my fresh installed 6.1-RELEASE workstation doesn't survive to a
 > simple fork bomb. after launching the bomb, it freezes a few seconds
 > and then my computer reboots. afair, 5.4 systems survived it.
 >
 > i didn't tweak my kernel, i just use home compiled GENERIC without
 > overriden CFLAGS. everything is almost default install. what about
 > adding a forkbomb in regression tests ?
 
 Please clarify what you mean by "home compiled GENERIC"?  Do you
 change anything there?  Have you changed anything in /boot/loader.conf
 or /etc/sysctl.conf?
 
 > >How-To-Repeat:
 > echo 'int main() { for(;;) fork(); }' | gcc -x c - && ./a.out
 
 While we definitly have some problems in pmap(9) code in 7.0 aka HEAD
 I can't reproduce the problem on RELENG_6 system.
 
 Please try to obtain a backtrace from the kernel core file or ddb.
 
 http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
 
 -- 
 Maxim Konovalov

From: Matthieu Michaud <ohmer@epita.info>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: kern/97591: 6.1-RELEASE crashes on fork bomb
Date: Tue, 13 Jun 2006 02:16:32 +0200

 On Fri, 2006-06-09 at 21:40 +0400, Maxim Konovalov wrote: 
 > Hi Matthieu,
 > 
 > > >Description:
 > > my fresh installed 6.1-RELEASE workstation doesn't survive to a
 > > simple fork bomb. after launching the bomb, it freezes a few seconds
 > > and then my computer reboots. afair, 5.4 systems survived it.
 > >
 > > i didn't tweak my kernel, i just use home compiled GENERIC without
 > > overriden CFLAGS. everything is almost default install. what about
 > > adding a forkbomb in regression tests ?
 > 
 > Please clarify what you mean by "home compiled GENERIC"?  Do you
 > change anything there?  Have you changed anything in /boot/loader.conf
 > or /etc/sysctl.conf?
 
 i meant that i used the official GENERIC kernel configuration file but i
 compiled it myself. the only kernel module i use is snd_ich (and sound
 obviously). that's stick into my /boot/loader.conf and i didn't set any
 value with /etc/sysctl.conf
 
 > > >How-To-Repeat:
 > > echo 'int main() { for(;;) fork(); }' | gcc -x c - && ./a.out
 > 
 > While we definitly have some problems in pmap(9) code in 7.0 aka HEAD
 > I can't reproduce the problem on RELENG_6 system.
 
 i tried to reproduce it but couldn't. when i tried it, just
 before filling a PR, it did exactly the same thing 3 times : run, fork
 few seconds and suddenly reboot. i can't explain it. 
 
 > Please try to obtain a backtrace from the kernel core file or ddb.
 > 
 > http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
 
 i activated it, i'll try to crash it again, have a core dump and send
 useful information. for now, i don't see any reason to keep this PR
 open as it seem to be a very rare case.
 
 -- 
 Matthieu Michaud
 

From: Maxim Konovalov <maxim@macomnet.ru>
To: Matthieu Michaud <ohmer@epita.info>
Cc: bug-followup@freebsd.org
Subject: Re: kern/97591: 6.1-RELEASE crashes on fork bomb
Date: Tue, 13 Jun 2006 10:54:24 +0400 (MSD)

 [...]
 > useful information. for now, i don't see any reason to keep this PR
 > open as it seem to be a very rare case.
 
 I would like to keep it open while we have this bug in HEAD with
 different pmap code.  I already sent a patch to competent people and
 awating feedback.
 
 Thanks!
 
 -- 
 Maxim Konovalov

From: Bruce M Simpson <bms@incunabulum.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/97591: 6.1-RELEASE crashes on fork bomb
Date: Mon, 25 Sep 2006 19:27:01 +0100

 I exercised the pv_entry exhaustion yesterday on 7.0-CURRENT from the 
 same date. (24 Sep 2006)

From: Maxim Konovalov <maxim@macomnet.ru>
To: Bruce M Simpson <bms@incunabulum.net>
Cc: bug-followup@freebsd.org, peter@freebsd.org
Subject: Re: kern/97591: 6.1-RELEASE crashes on fork bomb
Date: Tue, 26 Sep 2006 17:56:09 +0400 (MSD)

 On Mon, 25 Sep 2006, 18:30-0000, Bruce M Simpson wrote:
 
 > The following reply was made to PR kern/97591; it has been noted by GNATS.
 >
 > From: Bruce M Simpson <bms@incunabulum.net>
 > To: freebsd-gnats-submit@FreeBSD.org
 > Cc:
 > Subject: Re: kern/97591: 6.1-RELEASE crashes on fork bomb
 > Date: Mon, 25 Sep 2006 19:27:01 +0100
 >
 >  I exercised the pv_entry exhaustion yesterday on 7.0-CURRENT from the
 >  same date. (24 Sep 2006)
 
 Sure, because no patches were committed.  I suggested to do
 
 -	pv_maxchunks = pv_entry_max / _NPCP;
 +       pv_maxchunks = MAX(pv_entry_max / _NPCPV, maxproc);
 
 in sys/i386/i386/pmap.c but Peter had some different ideas.
 
 -- 
 Maxim Konovalov
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Mon Dec 25 20:36:05 UTC 2006 
State-Changed-Why:  
Hello can you tell me about the status of this ticket? 
were we able to fix this already? 


Responsible-Changed-From-To: freebsd-bugs->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Dec 25 20:36:05 UTC 2006 
Responsible-Changed-Why:  
grab the pr to trace feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97591 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Sat Jan 27 18:56:02 UTC 2007 
State-Changed-Why:  
The submitter mentions that this is fixed in RELENG_6 (prior to 
6.2-release), so I assume this is now fixed. Let me know if I was wrong 
so that we can search further. Thanks! 

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