Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2015 11:01:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 204628] ZFS dies when another dataset appears with same mountpoint as existing
Message-ID:  <bug-204628-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 204628
           Summary: ZFS dies when another dataset appears with same
                    mountpoint as existing
           Product: Base System
           Version: 10.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: vlad-fbsd@acheronmedia.com

Importing a pool with mountpoints already existing for another, mounted
dataset, or doing send | receive of existing mounted datasets to, say, external
media, will cause ZFS to break instead of refusing to mount to existing
mountpoints.

What happens is that running any ZFS command fails with "internal error: failed
to initialize ZFS library".

In case of sending a backup of zroot (root dataset) snapshot to external media,
if the external media is then unplugged, the system freezes.

I have used -u on zfs receive but I apparently misunderstood the flag and will
file another PR about the manpage flag description ambiguity. Is it "is not
mounted" or "will not be mounted" (as I was lead to believe following an
article on zfs send,recv backups)?

I suspect this is also a gaping security hole if you import unknown pools and
forget to -N.

-- 
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-204628-8>