From nobody@FreeBSD.org  Mon Jan  4 12:15:06 2010
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 57AF91065672
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Jan 2010 12:15: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 482F38FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Jan 2010 12:15: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 o04CF5qT018000
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 4 Jan 2010 12:15:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o04CF5gp017999;
	Mon, 4 Jan 2010 12:15:05 GMT
	(envelope-from nobody)
Message-Id: <201001041215.o04CF5gp017999@www.freebsd.org>
Date: Mon, 4 Jan 2010 12:15:05 GMT
From: Stefan Krauth <sdk@xxzz.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ZFS (from OSX Leopard) causes two kernel panics
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         142306
>Category:       kern
>Synopsis:       [zfs] [panic] ZFS drive (from OSX Leopard) causes two kernel panics
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 04 12:20:00 UTC 2010
>Closed-Date:    
>Last-Modified:  Mon Jan 04 16:17:26 UTC 2010
>Originator:     Stefan Krauth
>Release:        8.0-RELEASE
>Organization:
>Environment:
Lenovo T61, FreeBSD 8.0-RELEASE, amd64
>Description:
Hello,

I've a problem that a harddrive formatted with ZFS via OSX kills my FBSD.
Two kernel panics occur when attaching a ZFS volume created by OSX Snow
Leopard (10.6.2).

ZFS Volumes create with FreeBSD are running fine. I also played around
with enabling/disabling ZIL, prefetch, adjusting memory usage... the
result was always the same.

It would be nice if you could help here.

Best Regards,
Stefan
>How-To-Repeat:
Create a ZFS Disk with OSX Snow Leopard and plug it into the FreeBSD
machine. Dmesg shows that the disk is recognized and immediately after
this two kernel panics occur.

It does not matter how the ZFS volume is connected. I tried to connect
the same disk as USB and IDE device.

NOTE: I'm not shure if it is related to ZFS. I renamed the zfs kernel
modules (just to be shure that they can not be loaded). And the panics
also occured. It might have to do with the fact that OSX creates GPT
(Guid Partition Table) and FBSD can not deal with it?

The panics are not written to the filesystem, and currently I've no
dump device available that's big enough (4gb ram, 2gb swap).

If you need a dump or any further information, let me know - I'll try
to get it.
>Fix:


>Release-Note:
>Audit-Trail:

From: Sebastian Laubscher <sebastian.laubscher@interdose.com>
To: bug-followup@FreeBSD.org,
 sdk@xxzz.de
Cc:  
Subject: Re: amd64/142306: ZFS (from OSX Leopard) causes two kernel panics
Date: Mon, 4 Jan 2010 16:10:39 +0100

 Hi there,
 
 I'm the bad guy who created Stefan's panic'ish volume. I've 
 created the ZPool on the USB-disk via: 
 "diskutil partitiondisk /dev/diskX GPTFormat ZFS %noformat% 100%"
 and "zpool create usbdisk diskXs2". My ZFS implementation was
 creating a ZPool v6 and I didn't upgrade it to v8. My Mac is 
 running 10.6.2 (Build 10C540, 64bit) with dustin's ZFS-Patches 
 from http://github.com/dustin/mac-zfs
 
 Good luck and best wishes,
  Sebastian
Responsible-Changed-From-To: freebsd-amd64->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jan 4 16:15:58 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

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