From nobody@FreeBSD.org  Wed Feb  6 23:11:14 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 71AA916A419
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Feb 2008 23:11:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5BA8D13C455
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Feb 2008 23:11:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m16N9A73005788
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 Feb 2008 23:09:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m16N9A16005787;
	Wed, 6 Feb 2008 23:09:10 GMT
	(envelope-from nobody)
Message-Id: <200802062309.m16N9A16005787@www.freebsd.org>
Date: Wed, 6 Feb 2008 23:09:10 GMT
From: Jurgen Weber <warchild@wardeb.no-ip.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel Panic/Crash when adding a certain IP address
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120332
>Category:       kern
>Synopsis:       [nfs] [panic] Kernel Panic/Crash when adding a certain IP address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 06 23:20:01 UTC 2008
>Closed-Date:    Fri May 02 09:53:18 UTC 2008
>Last-Modified:  Fri May 02 09:53:18 UTC 2008
>Originator:     Jurgen Weber
>Release:        FreeBSD 7.0-RC1
>Organization:
>Environment:
FreeBSD <servername> 7.0-RC1 FreeBSD 7.0-RC1 #0: Mon Dec 24 12:18:24 UTC 2007     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When adding a certain IP address to any of the NIC's in the system it
would crash reboot within 2 minutes of booting up. After some investigation
and mucking about wiht NIC's I worked out it was a particular IP address.
10.10.10.9.

oot@clashserver /usr/src/sys/i386]# kgdb /boot/kernel/kernel.symbols /var/crash/vmcore.0
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".


Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address	= 0x18
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc07851c5
stack pointer	        = 0x28:0xe6883a48
frame pointer	        = 0x28:0xe6883a64
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= resume, IOPL = 0
current process		= 476 (nfsd)
trap number		= 12
panic: page fault
cpuid = 1
Uptime: 25s
Physical memory: 1011 MB
Dumping 157 MB: 142 126 110 94 78 62 46 30 14

#0  doadump () at pcpu.h:195
195	pcpu.h: No such file or directory.

## note:
I have a debian system also, which had an fstab entry to mount a
directory which was not in exports, this system was untouched though
(eg. I didn't try and mount it).

>How-To-Repeat:
I could repeat the problem by just going

ifconfig em0 add 10.10.10.9 netmask 255.255.0.0
>Fix:
IP address in question 10.10.10.9/16 network. I used 10.10.10.11 with no
problems.

After getting that dump I noticed nfsd was the problem. 
NFSD server was active
/etc/exports
      /raid (rw)

I hashed out that line in exports and disabled the nfsd.

System is now stable.



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Sat Feb 9 11:45:02 UTC 2008 
State-Changed-Why:  
I asked for a kernel backtrace so that we might be able to see where 
this is breaking down. 

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

From: Remko Lodder <remko@FreeBSD.org>
To: Jurgen Weber <warchild@wardeb.no-ip.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/120332: Kernel Panic/Crash when adding a certain IP address
Date: Sat, 09 Feb 2008 12:44:18 +0100

 Jurgen Weber wrote:
 
 Please provide a kernel backtrace as described in 
 http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
 
 Thanks!
 
 -- 
 /"\   Best regards,                      | remko@FreeBSD.org
 \ /   Remko Lodder                       | remko@EFnet
   X    http://www.evilcoder.org/          |
 / \   ASCII Ribbon Campaign              | Against HTML Mail and News
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 10 04:24:16 UTC 2008 
State-Changed-Why:  
Feedback received. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120332 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 17 16:06:20 UTC 2008 
State-Changed-Why:  
Hmm, apparently I set this to 'open' by mistake.  More feedback is needed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120332 
State-Changed-From-To: feedback->closed 
State-Changed-By: vwe 
State-Changed-When: Fri May 2 09:53:09 UTC 2008 
State-Changed-Why:  

We're sorry to not see any feedback received for quite some time. 
If you think this is still an issue which should be worked on, 
please provide the requested information and we'll be happy to 
reopen this ticket. 
Thank you for bringing this problem to attention! 

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