Bug 133020 - [zfs] [panic] inappropriate panic caused by zfs. Panic: zfs_fuid_create
Summary: [zfs] [panic] inappropriate panic caused by zfs. Panic: zfs_fuid_create
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Jakub Dawidek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-24 18:40 UTC by George Wenzel
Modified: 2009-07-27 15:55 UTC (History)
0 users

See Also:


Attachments
file.txt (635 bytes, text/plain)
2009-03-24 18:40 UTC, George Wenzel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description George Wenzel 2009-03-24 18:40:04 UTC
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.

Fix: Patch attached with submission follows:
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-03-25 01:14:39 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Michael Reifenberger freebsd_committer freebsd_triage 2009-03-25 15:57:50 UTC
Responsible Changed
From-To: freebsd-fs->pjd

Over to maintainer.
Comment 3 matt 2009-05-22 00:47:11 UTC
I'm seeing that same bug. Not sure exactly what file tripped it, but  
this is what gets dumped to the serial console:

panic: zfs_fuid_create
cpuid = 0
KDB: enter: panic
[thread pid 1063 tid 100162 ]
Stopped at      kdb_enter+0x3d: movq    $0,0x678340(%rip)
db>
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2009-05-28 23:25:35 UTC
Responsible Changed
From-To: pjd->freebsd-fs

With pjd's permission, reassing ZFS-related PRs to freebsd-fs. 

To submitter: did the suggested patch fix the problem?
Comment 5 matt 2009-05-29 00:07:30 UTC
I applied the patch and removed the debugging options from my 8-STABLE  
kernel and have not seen this issue since.
Comment 6 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2014-06-01 07:02:24 UTC
State Changed
From-To: open->feedback

Could you try this patch: 

http://people.freebsd.org/~pjd/patches/zfs_znode.h.patch
Comment 7 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2014-06-01 07:02:24 UTC
State Changed
From-To: feedback->closed

Duplicate of 132337, which is now fixed in HEAD. 


Comment 8 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2014-06-01 07:02:24 UTC
Responsible Changed
From-To: freebsd-fs->pjd

I'll take this one.