From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 24 18:40:04 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8E82106566C for ; Tue, 24 Mar 2009 18:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8449A8FC14 for ; Tue, 24 Mar 2009 18:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2OIe40G021279 for ; Tue, 24 Mar 2009 18:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2OIe4hY021278; Tue, 24 Mar 2009 18:40:04 GMT (envelope-from gnats) Resent-Date: Tue, 24 Mar 2009 18:40:04 GMT Resent-Message-Id: <200903241840.n2OIe4hY021278@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, George Wenzel Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB2271065670 for ; Tue, 24 Mar 2009 18:34:02 +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 AF16C8FC14 for ; Tue, 24 Mar 2009 18:34:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2OIY2ec028060 for ; Tue, 24 Mar 2009 18:34:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2OIY2ja028059; Tue, 24 Mar 2009 18:34:02 GMT (envelope-from nobody) Message-Id: <200903241834.n2OIY2ja028059@www.freebsd.org> Date: Tue, 24 Mar 2009 18:34:02 GMT From: George Wenzel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/133020: inappropriate panic caused by zfs. Panic: zfs_fuid_create X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 18:40:05 -0000 >Number: 133020 >Category: kern >Synopsis: inappropriate panic caused by zfs. Panic: zfs_fuid_create >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 24 18:40:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: George Wenzel >Release: 7.1 and 8.0 >Organization: Univa UD >Environment: FreeBSD cfpbak01.univaud.com 8.0-CURRENT-200902 FreeBSD 8.0-CURRENT-200902 #0: Wed Mar 18 12:06:18 CDT 2009 gwenzel@cfpbak01.univaud.com:/usr/src/sys/i386/compile/zfs i386 >Description: I am seeing this panic message: Panic: zfs_fuid_create cpuid=1 KDB: enter: Panic [thread pid2819 tid 100215] stopped at kdb_enter+0x3a:movl $,kdb_why (this is from hand-written notes, and may not be exact) zfs is causing a panic when I try to write a file with a 64 bit "nobody" UID. This occurs from a tar, from cp, and from rsync, and any other attempt to write a file owned by UID 4294967294. This UID originates from the anonymous (nobody) UID -2 on a windows server. When this UID is written to a unix NFS server, it becomes 4294967294. More details on this UID origination are at http://blogs.msdn.com/sfu/pages/who-s-4294967294.aspx Other filesystems don't have a problem with this 64bit UID. Ideally ZFS shouldn't either, but if we don't want to support 64bit UIDs, then we should find something more useful to do than generating a panic. >How-To-Repeat: extract the files from the attached tar file onto a zfs filesystem. Due to a browser bug, the file is named with .txt, but it IS a tar file. >Fix: Patch attached with submission follows: PaxHeader/429496729418 uid=4294967294 20 ctime=1237918499 20 atime=1237918460 38 LIBARCHIVE.creationtime=1237910562 18 SCHILY.dev=122 22 SCHILY.ino=6712369 18 SCHILY.nlink=2 18 uid=4294967294 20 ctime=1237918471 20 atime=1237917918 38 LIBARCHIVE.creationtime=1200689912 18 SCHILY.dev=122 22 SCHILY.ino=6712461 18 SCHILY.nlink=1 18 uid=4294967294 20 ctime=1237918471 20 atime=1237917840 38 LIBARCHIVE.creationtime=1200689712 18 SCHILY.dev=122 22 SCHILY.ino=6712460 18 SCHILY.nlink=1 18 uid=4294967294 20 ctime=1237918471 20 atime=1237918384 38 LIBARCHIVE.creationtime=1200690132 18 SCHILY.dev=122 22 SCHILY.ino=6712462 18 SCHILY.nlink=1 >Release-Note: >Audit-Trail: >Unformatted: