Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 2009 09:09:01 +0200
From:      Thomas Backman <serenity@exscape.org>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-fs@freebsd.org, FreeBSD current <freebsd-current@freebsd.org>, Andriy Gapon <avg@FreeBSD.org>
Subject:   Re: zfs: Fatal trap 12: page fault while in kernel mode
Message-ID:  <7C3499A8-A389-4F28-A800-B6C31B9E09C4@exscape.org>
In-Reply-To: <20090805065022.GI2181@garage.freebsd.pl>
References:  <4A719CA4.4060400@freebsd.org> <19347561-3CE6-40B3-930A-EB9925D3AFD1@exscape.org> <4A71AD29.10705@freebsd.org> <7544AED1-1216-4A24-B287-F54117641F76@exscape.org> <4A71B239.8060007@freebsd.org> <3AA3C1CB-CEF7-46CC-A9C7-1648093D679E@exsca!pe.org> <4A71BED8.7050300@freebsd.org> <C7FEDA88-7A89-45DB-BD16-4C8816D17E0D@exscape.org> <BEC7EB06-3B69-4BBC-B143-409E55C1F3A8@exscape.org> <CD114CD9-4968-47A7-BD16-C974E49232E5@exscape.org> <20090805065022.GI2181@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Aug 5, 2009, at 08:50, Pawel Jakub Dawidek wrote:

> On Fri, Jul 31, 2009 at 11:05:01AM +0200, Thomas Backman wrote:
>> I'm able to reliably reproduce this panic, by having zfs recv destroy
>> a filesystem on the receiving end.
>>
>> 1) Use DDEBUG=1, I guess
>> 2) Create a FS on the source pool you don't care about: zfs create -o
>> mountpoint=/testfs source/testfs
>> 3) Clone a pool to another: zfs snapshot -r source@snap && zfs send  
>> -R
>> source@snap | zfs recv -Fvd target
>> 4) zfs destroy -r source/testfs
>> 4) zfs snapshot -r source@snap2 && zfs send -R -I snap source@snap2 |
>> zfs recv -Fvd target
>> 5) ^ Panic while receiving the FS the destroyed one is mounted under.
>> In my case, this was tank/root three times out of three; I then tried
>> creating testfs under /tmp (tank/tmp/testfs), *mounting* it under / 
>> usr/
>> testfs, and it panics on receiving tank/usr:
> [...]
>
> I repeated precisevly those steps and it doesn't panic for me.
> Could you confirm that you use this patch?
>
> 	http://people.freebsd.org/~pjd/patches/zfs_vnops.c.2.patch
>
> If so, could you give me exact steps and all of them how to  
> reproduce it?
> Starting with pool creation.
Yup, I'm using that patch (I diffed the diffs, heh). I'll try to write  
a script to recreate the panic; I hope it's as easy as in real-world  
conditions though.

Regards,
Thomas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7C3499A8-A389-4F28-A800-B6C31B9E09C4>