From nobody Sat Jan 29 02:24:54 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D61C31968830 for ; Sat, 29 Jan 2022 02:24:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JlypG3hZTz3pMN for ; Sat, 29 Jan 2022 02:24:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5E9445A96 for ; Sat, 29 Jan 2022 02:24:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20T2OsFS006076 for ; Sat, 29 Jan 2022 02:24:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20T2Osx0006075 for bugs@FreeBSD.org; Sat, 29 Jan 2022 02:24:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261543] [ZFS] file in encrypted dataset disappears after first reboot Date: Sat, 29 Jan 2022 02:24:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: taceant@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643423094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JNU6zGDnFkRhM6F86sGXxbCmI4yH3YOdUSioAiq7Lrc=; b=nuMOhjPkcxZFfOlMtaurjfCbEWpL09MvGWxYAX72RoUGu238vpnPzOuxXH6G3ftdDX9pv1 kU3ERf39m2hTIlfwPUOqspKq8/eVTlxqKMgS6swZYLbTI4C5NwJASuJ5TJUYJWC5JJXab0 zxrw/5Cxaud80vEqknI1kLIxRoOjtMDE4NO1LZcNsSk0xPTSNXad7EO28ZgYqDsL+pLUM4 bTVRmSSfgSR9ecdqPTvQ+Xl+6KzM5UrJxQ+hwQaaP3q+YxKzUiJSGRErh1RkdzEtW1ZNvb LcqBriDcz7i1PkvD3xp48BZnRNmyT/zkbkZ+4tbW18HPzZwIfqEZndd8tUnrYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643423094; a=rsa-sha256; cv=none; b=B3MAHriD3zuXvofN28LnUn785MWOjyBDlypdMR3mm0sF/TLSmdgmRta8TTqJvDkwr4qU3x 7553VWmwsOetQa4cmKp1TwYljeN8su1G9FbXIJAoX3Yzoo64cSZmg/MCQxSqh5NGwki4hw yIPDdhi5i2EFYlQOnl083ZuK6ar0Hosuw/i+YHnJiSz/0Q3c2yJ9Urgannh4G6NXPzLW5X SypniGFVnWI0DLPYjEf1zS4nQT/VFNNzcx6gir2Xcwp92MjVjUaQtlXa4QRfhGj5s3+5oK iniQ7yLYPh08Nurv335rq7yi4g0iwXtUiJijO7cfta0MgiZBzcmWI4U5tyhfCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=