Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Apr 2019 04:48:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 237067] [PANIC] [ZFS] [GELI] Crash in vdev_dtl_reassess when using GELI with autodetach
Message-ID:  <bug-237067-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237067

            Bug ID: 237067
           Summary: [PANIC] [ZFS] [GELI] Crash in vdev_dtl_reassess when
                    using GELI with autodetach
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: vi@endrift.com

When using GELI with autodetach enabled (which it is by default if using
geli_devices in rc.conf) enabled, ZFS can trigger a panic.

Steps to reproduce:

- Create a VM with FreeBSD 12.0-RELEASE rootfs and two attached drives, whi=
ch
I'll be calling ada0 and ada1 for simplicity
- Format the devices with geli init with no passphrase:
# dd if=3D/dev/random of=3D/root/k bs=3D64 count=3D1
# geli init -PK /root/k ada0
# geli init -PK /root/k ada1
- Attach to the devices and set up a mirrored zpool (I don't know if the
mirroring is needed, this is just what my setup was when I discovered it):
# geli attach -pk /root/k ada0
# geli attach -pk /root/k ada1
# zpool create pool mirror ada0.eli ada1.eli
- Ensure zfs and geli load at boot:
# cat >> /boot/loader.conf <<END
zfs_load=3D"YES"
geom_eli_load=3D"YES"
END
# cat >> /etc/rc.conf <<END
geli_devices=3D"ada0 ada1"
geli_ada0_flags=3D"-p -k /root/k"
geli_ada1_flags=3D"-p -k /root/k"
END
- Reboot the VM and run `zpool status`

Expected results:
- GELI and ZFS work and it shows the status of `pool`

Actual results:
- Kernel panic in vdev_dtl_reassess

I don't seem to have a way to gather the crashlog from this VM (I'm using
VMware Player on Linux to reproduce at the moment) otherwise I'd attach it.

Configuration:
- Running stock amd64 FreeBSD 12.0-RELEASE on a fresh installation.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237067-227>