Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2022 02:24:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261543] [ZFS] file in encrypted dataset disappears after first reboot
Message-ID:  <bug-261543-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 261543
           Summary: [ZFS] file in encrypted dataset disappears after first
                    reboot
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: taceant@gmail.com

A file in encrypted dataset disappears after first reboot.

How to reproduce:
1. Create an encrypted dataset like so (after creating a file with a
passphrase)
zfs create -o encryption=3Don -o keyformat=3Dpassphrase -o
keylocation=3Dfile:///root/pass zroot/enc
2. Create file in encrypted dataset, for example like so
cat > /zroot/enc/testfile
3. Reboot
4. Look for testfile, it has disappeared.


# freebsd-version
13.0-RELEASE-p6

I can reproduce this every time I try.

Further remarks:
- The issue does not manifest if the dataset is not encrypted. I have not
tested other types of encryption so don't know if it manifests or not.
- The issue happens only on the first reboot after creating the dataset. In
other words, if I create a file after the first reboot and reboot again, the
file does not disappear.
- The issue manifests also in a FreeBSD VirtualBox guest running on Archlin=
ux
host.
- The issue does not manifests in a Xubuntu 21.10 VirtualBox guest running =
on
Archlinux  host. This suggests that the issue is in the FreeBSD kernel and =
not
in the part of the ZFS code that is shared with Linux.

--=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-261543-227>