From nobody@FreeBSD.org  Thu Oct 13 02:53:22 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F2A29106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Oct 2011 02:53:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E2A5E8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Oct 2011 02:53:22 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9D2rMOp054026
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Oct 2011 02:53:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p9D2rMik054025;
	Thu, 13 Oct 2011 02:53:22 GMT
	(envelope-from nobody)
Message-Id: <201110130253.p9D2rMik054025@red.freebsd.org>
Date: Thu, 13 Oct 2011 02:53:22 GMT
From: David Black <freebsd@1000.relay.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: zfs receive panic: system ioctl returning with 1 locks held
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161533
>Category:       kern
>Synopsis:       [zfs] [panic] zfs receive panic: system ioctl returning with 1 locks held
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 13 03:00:27 UTC 2011
>Closed-Date:    
>Last-Modified:  Fri Oct 14 21:21:40 UTC 2011
>Originator:     David Black
>Release:        9.0-BETA3
>Organization:
>Environment:
FreeBSD tex 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Sat Sep 24 21:31:28 UTC 2011     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Machine reliably panics at end of zfs receive.

The options (-DRp on send, -Fdu on receive) are just what I use when replicating zfs filesystems between my Solaris boxes.  Dedup is not enabled on the test filesystems.

core.txt file attached.
>How-To-Repeat:
(with pool 'a' already existing - empty or having other filesystems doesn't matter)
zfs create a/test
zfs snapshot a/test@snap
zfs send -DRp a/test@snap > /tmp/test.zfs
zfs destroy -r a/test
zfs receive -Fdu a < /tmp/test.zfs

The same panic occurs if I use a zfs dump from this machine, too:
# uname -a
SunOS andy 5.11 snv_134 i86pc i386 i86pc Solaris

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Oct 14 21:21:28 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161533 
>Unformatted:
