Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 1998 09:05:02 GMT
From:      "David O'Brien" <obrien@NUXI.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/7754: kernel panics if NFS server uses LKM vs. compiled in NFS support
Message-ID:  <199808270905.JAA03277@dragon.nuxi.com>

next in thread | raw e-mail | index | archive | help

>Number:         7754
>Category:       kern
>Synopsis:       kernel panics if NFS server uses LKM vs. compiled in NFS support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 27 02:10:00 PDT 1998
>Last-Modified:
>Originator:     David O'Brien
>Organization:
The FreeBSD Project
>Release:        FreeBSD 3.0-19980804-SNAP i386
>Environment:

	kernel compiled with "DIAGNOSTICS"

>Description:

	My NFS server panics if I use the NFS LKM vs. statically
	compiling in NFS support.  I've also tested this with a -CURRENT
	src/sys and src/lkm of 25-Aug-1998, and get the same results.

30 box is exporting /FBSD/CVS-repository
227 box is accessing it via AMD using /net/foo/FBSD/CVS-repository

30 box panics when I:

    227box# cd /net/foo/FBSD/CVS-repository ; du

Here are two ``gdb where'' outputs:

(kgdb) core-file /var/crash/vmcore.0
IdlePTD 9916416
initial pcb at 1f48c4
panicstr: zone: entry not free
panic messages:
---
panic: zone: entry not free
---
#0  boot (howto=256) at ../../kern/kern_shutdown.c:286
286                                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=256) at ../../kern/kern_shutdown.c:286
#1  0xf0119ad3 in panic (fmt=0xf01a1982 "zone: entry not free")
    at ../../kern/kern_shutdown.c:427
#2  0xf01a1a3b in zerror (error=1) at ../../vm/vm_zone.c:442
#3  0xf013e898 in namei (ndp=0xf5622eb0) at ../../vm/vm_zone.h:91
#4  0xf01450a4 in stat (p=0xf557ef80, uap=0xf5622f94)
    at ../../kern/vfs_syscalls.c:1580
#5  0xf01b3018 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 0,
      tf_esi = 1, tf_ebp = -272638404, tf_isp = -178114588,
      tf_ebx = -272638384, tf_edx = 903659280, tf_ecx = 7, tf_eax = 188,
      tf_trapno = 7, tf_err = 7, tf_eip = 537344529, tf_cs = 31,
      tf_eflags = 582, tf_esp = -272639144, tf_ss = 39})
    at ../../i386/i386/trap.c:1031
#6  0x20073a11 in ?? ()
#7  0x1843 in ?? ()
#8  0x1099 in ?? ()
(kgdb)



(kgdb) core-file /var/crash/vmcore.1
IdlePTD 9916416
initial pcb at 1f48c4
panicstr: zone: entry not free
panic messages:
---
panic: zone: entry not free
---
#0  boot (howto=256) at ../../kern/kern_shutdown.c:286
286                                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=256) at ../../kern/kern_shutdown.c:286
#1  0xf0119ad3 in panic (fmt=0xf01a1982 "zone: entry not free")
    at ../../kern/kern_shutdown.c:427
#2  0xf01a1a3b in zerror (error=1) at ../../vm/vm_zone.c:442
#3  0xf013e898 in namei (ndp=0xf56e9ef8) at ../../vm/vm_zone.h:91
#4  0xf014754d in vn_open (ndp=0xf56e9ef8, fmode=1, cmode=384)
    at ../../kern/vfs_vnops.c:125
#5  0xf0143d8b in open (p=0xf557d180, uap=0xf56e9f94)
    at ../../kern/vfs_syscalls.c:901
#6  0xf01b3018 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 60,
      tf_esi = 903629812, tf_ebp = -272639440, tf_isp = -177299484,
      tf_ebx = 5812, tf_edx = 15, tf_ecx = 0, tf_eax = 5, tf_trapno = 7,
      tf_err = 7, tf_eip = 537356961, tf_cs = 31, tf_eflags = 582,
      tf_esp = -272639560, tf_ss = 39}) at ../../i386/i386/trap.c:1031
#7  0x20076aa1 in ?? ()
#8  0x1c0a in ?? ()
#9  0x1096 in ?? ()
(kgdb)


vm/vm_zone.h:91 is
98 #if defined(DIAGNOSTIC)
90    if (((void **) item)[1] != (void *) ZENTRY_FREE)
91        zerror(ZONE_ERROR_NOTFREE);
92     ((void **) item)[1] = 0;

vm/vm_zone.c:442 is
442    panic(msg);                      from void zerror(int error);

kern/vfs_vnops.c:125 is
123    ndp->ni_cnd.cn_flags =
124            ((fmode & O_NOFOLLOW) ? NOFOLLOW : FOLLOW) | LOCKLEAF;
125        error = namei(ndp);
126        if (error)

kern/vfs_syscalls.c:1580 is
1578    NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | NOOBJ, UIO_USERSPACE,
1579        SCARG(uap, path), p);
1580    if (error = namei(&nd))
1581        return (error);



>How-To-Repeat:

	

>Fix:
	
	

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808270905.JAA03277>