From nobody@FreeBSD.org  Thu Nov  3 22:21:23 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 3AC8A1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Nov 2011 22:21:23 +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 2A9F98FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Nov 2011 22:21:23 +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 pA3MLMrE012009
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Nov 2011 22:21:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pA3MLM3S012008;
	Thu, 3 Nov 2011 22:21:22 GMT
	(envelope-from nobody)
Message-Id: <201111032221.pA3MLM3S012008@red.freebsd.org>
Date: Thu, 3 Nov 2011 22:21:22 GMT
From: Gary Smith <gahcho@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Repeatable system crash when offlining a zpool vdev
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162277
>Category:       kern
>Synopsis:       Repeatable system crash when offlining a zpool vdev
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 03 22:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Gary Smith
>Release:        9.0-RC1
>Organization:
>Environment:
FreeBSD v2 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:51:43 UTC 2011     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I created two zfs vdevs with mkfile, then created a zpool mirror.  Attempting to offline one of the devices will result in a system crash and reboot.

#####

(root@v2) ~/t#mkfile 100m a
(root@v2) ~/t#mkfile 100m b
(root@v2) ~/t#zpool create u3 mirror ~/t/a ~/t/b
(root@v2) ~/t#zpool status u3
  pool: u3
 state: ONLINE
 scan: none requested
config:

        NAME           STATE     READ WRITE CKSUM
        u3             ONLINE       0     0     0
          mirror-0     ONLINE       0     0     0
            /root/t/a  ONLINE       0     0     0
            /root/t/b  ONLINE       0     0     0

errors: No known data errors
(root@v2) ~/t#zpool offline u3 /root/t/b

>How-To-Repeat:
The steps listed in the description will always cause a crash.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
