From owner-freebsd-current@FreeBSD.ORG Tue Jun 26 16:36:05 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E353816A469 for ; Tue, 26 Jun 2007 16:36:04 +0000 (UTC) (envelope-from Philippe.Pegon@crc.u-strasbg.fr) Received: from mailhost.u-strasbg.fr (mailhost.u-strasbg.fr [130.79.200.158]) by mx1.freebsd.org (Postfix) with ESMTP id 6B84213C4CB for ; Tue, 26 Jun 2007 16:36:03 +0000 (UTC) (envelope-from Philippe.Pegon@crc.u-strasbg.fr) Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.13.8/jtpda-5.5pre1) with ESMTP id l5QGCn4n056530 for ; Tue, 26 Jun 2007 18:12:49 +0200 (CEST) Received: from [IPv6:2001:660:2402:1001:20e:cff:fe60:e734] ([IPv6:fe80::215:60ff:feaa:bdf0]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id l5QGCmOr028497 for ; Tue, 26 Jun 2007 18:12:49 +0200 (CEST) Message-ID: <46813AF4.4020004@crc.u-strasbg.fr> Date: Tue, 26 Jun 2007 18:12:36 +0200 From: Philippe Pegon User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mailhost.u-strasbg.fr [IPv6:2001:660:2402::158]); Tue, 26 Jun 2007 18:12:49 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3531/Tue Jun 26 17:38:50 2007 on mr8.u-strasbg.fr X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,NO_RELAYS autolearn=disabled version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mr8.u-strasbg.fr Cc: Subject: nfs on zfs panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 16:36:05 -0000 Hi, I'm playing with zfs on vmware on FreeBSD current (world and kernel of today with GENERIC kernel). I have 3 disks (virtuals) in raidz : # zpool status pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1 ONLINE 0 0 0 da0 ONLINE 0 0 0 da1 ONLINE 0 0 0 da2 ONLINE 0 0 0 errors: No known data errors with this zfs configuration : # zfs list NAME USED AVAIL REFER MOUNTPOINT tank 844M 8.93G 25.3K none tank/nfs 24.0K 8.93G 24.0K /mnt/nfs tank/obj 436M 8.93G 436M /usr/obj tank/ports 244M 8.93G 244M /usr/ports tank/src 162M 8.93G 162M /usr/src /mnt/nfs is nfs exported (zfs set sharenfs=on tank/nfs) and when I mount it on a Linux box and try a ls from Linux, FreeBSD panic. panic and debug informations : # kgdb kernel.debug /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: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x10 fault code = supervisor read, page not present instruction pointer = 0x20:0xc08d088d stack pointer = 0x28:0xd61f88f0 frame pointer = 0x28:0xd61f8bec code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 722 (nfsd) panic: from debugger cpuid = 0 Uptime: 3h46m48s Physical memory: 499 MB Dumping 52 MB: 37 21 5 #0 doadump () at pcpu.h:195 195 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) backtrace #0 doadump () at pcpu.h:195 #1 0xc074997e in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc0749c3b in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:563 #3 0xc048bf87 in db_panic (addr=Could not find the frame base for "db_panic". ) at /usr/src/sys/ddb/db_command.c:433 #4 0xc048c975 in db_command_loop () at /usr/src/sys/ddb/db_command.c:401 #5 0xc048e0e5 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:222 #6 0xc07703d6 in kdb_trap (type=12, code=0, tf=0xd61f88b0) at /usr/src/sys/kern/subr_kdb.c:502 #7 0xc09f31bc in trap_fatal (frame=0xd61f88b0, eva=16) at /usr/src/sys/i386/i386/trap.c:861 #8 0xc09f33f3 in trap_pfault (frame=0xd61f88b0, usermode=0, eva=16) at /usr/src/sys/i386/i386/trap.c:784 #9 0xc09f3d92 in trap (frame=0xd61f88b0) at /usr/src/sys/i386/i386/trap.c:462 #10 0xc09d9a0b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #11 0xc08d088d in nfsrv_readdirplus (nfsd=0xc3bb4500, slp=0xc3d31900, td=0xc3b0be00, mrq=0xd61f8c58) at /usr/src/sys/nfsserver/nfs_serv.c:3640 #12 0xc08de4b4 in nfssvc (td=0xc3b0be00, uap=0xd61f8cfc) at /usr/src/sys/nfsserver/nfs_syscalls.c:469 #13 0xc09f36d3 in syscall (frame=0xd61f8d38) at /usr/src/sys/i386/i386/trap.c:1006 #14 0xc09d9a70 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196 #15 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) list *0xc08d088d 0xc08d088d is in nfsrv_readdirplus (/usr/src/sys/nfsserver/nfs_serv.c:3640). 3635 */ 3636 if (VFS_VGET(vp->v_mount, dp->d_fileno, LK_EXCLUSIVE, 3637 &nvp)) 3638 goto invalid; 3639 bzero((caddr_t)nfhp, NFSX_V3FH); 3640 nfhp->fh_fsid = 3641 nvp->v_mount->mnt_stat.f_fsid; 3642 /* 3643 * XXXRW: Assert the mountpoints are the same so that 3644 * we know that acquiring Giant based on the