From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 17 16:50:03 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 05E091065679 for ; Thu, 17 Dec 2009 16:50:03 +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 BD8F38FC16 for ; Thu, 17 Dec 2009 16:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBHGo2dn060844 for ; Thu, 17 Dec 2009 16:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBHGo2h9060843; Thu, 17 Dec 2009 16:50:02 GMT (envelope-from gnats) Resent-Date: Thu, 17 Dec 2009 16:50:02 GMT Resent-Message-Id: <200912171650.nBHGo2h9060843@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, Ben Schumacher Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBAB81065670 for ; Thu, 17 Dec 2009 16:43:06 +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 AA5108FC15 for ; Thu, 17 Dec 2009 16:43:06 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBHGh6NF047916 for ; Thu, 17 Dec 2009 16:43:06 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBHGh6JM047915; Thu, 17 Dec 2009 16:43:06 GMT (envelope-from nobody) Message-Id: <200912171643.nBHGh6JM047915@www.freebsd.org> Date: Thu, 17 Dec 2009 16:43:06 GMT From: Ben Schumacher To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/141718: kernel panic when 'zfs rename' is used on mounted snapshot 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: Thu, 17 Dec 2009 16:50:03 -0000 >Number: 141718 >Category: kern >Synopsis: kernel panic when 'zfs rename' is used on mounted snapshot >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 17 16:50:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ben Schumacher >Release: FreeBSD 8.0-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD filer.sats.internal 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Tue Dec 15 01:05:20 MST 2009 ben@filer.sats.internal:/usr/obj/data/FreeBSD/RELENG_8_0/src/sys/FILER i386 >Description: While using RSE's 'snapshot' tool with a ZFS-based system I observed that calling 'snapshot make' on a drive that has a mounted snapshot causes a panic. It would appear that the 'zfs rename' call inside the utility being executed to rename a snapshot that is mounted causes the panic. Unfortunately I don't have a dump because the system appeared to hang during the panic (no automatic reboot), so I had to manually power cycle it to get it back up. >How-To-Repeat: 1. Create zfs snapshot of drive. 2. Mount zfs snapshot somewhere on system. 3. Use 'zfs rename' to chnage the name of the mounted snapshot. 4. Observe kernel panic. >Fix: Workaround: Don't 'zfs rename' a mounted snapshot. It'd be nice, however, if the OS blocked the operations and didn't panic. >Release-Note: >Audit-Trail: >Unformatted: