Date: Sat, 29 Jan 2022 02:24:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261543 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: firstname.lastname@example.org 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=on -o keyformat=passphrase -o keylocation=file:///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 Archlinux 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. -- You are receiving this mail because: You are the assignee for the bug.