Bug 167047 - RELEASE-9 crash when using ZFS+NULLFS+NFS
Summary: RELEASE-9 crash when using ZFS+NULLFS+NFS
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-18 10:10 UTC by Marcelo Araujo
Modified: 2012-04-18 10:20 UTC (History)
0 users

See Also:


Attachments
file.diff (821 bytes, patch)
2012-04-18 10:10 UTC, Marcelo Araujo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Araujo freebsd_committer freebsd_triage 2012-04-18 10:10:04 UTC
If we create a pool with ZFS, mount it using nullfs in another path and export it using NFS, when the user mount the NFS in another machine and try to perform a ls -a inside /mnt/.zfs we have the crash.

More information about it could be found at: http://people.freebsd.org/~araujo/dump_nfs/

Fix: On FreeBSD-HEAD the problem doesnt happens anymore, but investigate it, the patch attached that was obtained from HEAD, solved this issue.

Patch attached with submission follows:
How-To-Repeat: root# zpool create tank raidz /dev/ada1 /dev/ada2
root# mount nullfs /tank /mnt
root# echo "/mnt -alldirs" >>/etc/exports
root# /etc/rc.d/mountd restart

1) Mount the NFS share in another machine.
2) cd /mnt/.zfs/
3) ls -la
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2012-04-18 10:18:56 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer.
Comment 2 Marcelo Araujo freebsd_committer freebsd_triage 2012-04-18 10:20:33 UTC
State Changed
From-To: open->closed

I'm gonna open another one with more info.