Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2020 10:27:17 -0500
From:      Eric van Gyzen <eric@vangyzen.net>
To:        freebsd-current@freebsd.org
Subject:   Re: ZFS crash -- zvol_geom_bio_getattr called when volmode=dev
Message-ID:  <9a140b74-de79-60d5-f5c8-b2a2676dbbea@vangyzen.net>
In-Reply-To: <74ba295a-1f67-5109-0a21-9662eac0334b@vangyzen.net>
References:  <1dfaf797-f23b-af97-d2d3-efa0f5bb88d9@vangyzen.net> <95636bbf-2367-f226-f462-d5581581c18f@vangyzen.net> <CAOtMX2hMKFnMdDWP3Boeqmjh3oRWKraoRCcKCdW4y0UWK8RVfA@mail.gmail.com> <b3883e51-aea1-7f65-d1e5-279474c6ffea@FreeBSD.org> <74ba295a-1f67-5109-0a21-9662eac0334b@vangyzen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/9/20 7:54 PM, Eric van Gyzen wrote:
> On 10/9/20 6:27 PM, Ryan Moeller wrote:
>>
>> On 10/9/20 6:22 PM, Alan Somers wrote:
>>> This sounds like it might be a regression introduced by the OpenZFS 
>>> merge.
>>> Have you compared vdev_geom.c in OpenZFS vs the old version?
>>> -Alan
>>
>>
>> I don't think vdev_geom.c is involved, we're taking a wrong path in 
>> zvol_os.c because
>> it seems the volume is created using the default volmode and later 
>> changed to volmode=dev.
> 
> Yes, you're on the right track.  I tried this several times on a VM and 
> it eventually hit the window:
> 
> # zfs create -s -V 20G -o primarycache=none -o volmode=dev 
> head_root/testvol
> zvol_create_minor_impl:1250[1]: Creating ZVOL head_root/testvol...
> zvol_create_minor_impl:1371[1]: ZVOL head_root/testvol created.
> 
> 
> Fatal trap 12: page fault while in kernel mode

Let's track this in

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250297

Eric



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9a140b74-de79-60d5-f5c8-b2a2676dbbea>