From nobody Fri Mar 18 13:55:57 2022 X-Original-To: fs@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 29D0B1A13E0E for ; Fri, 18 Mar 2022 13:55:57 +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 4KKlsS6Mwsz3HjV for ; Fri, 18 Mar 2022 13:55:56 +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 BCA90203C5 for ; Fri, 18 Mar 2022 13:55:56 +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 22IDtu42010084 for ; Fri, 18 Mar 2022 13:55:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22IDtuk8010083 for fs@FreeBSD.org; Fri, 18 Mar 2022 13:55:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 262468] (13038) zfskeys_enable: encryption key not loaded for a file system within a pool that imports automatically at startup Date: Fri, 18 Mar 2022 13:55:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 0mp@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647611756; 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: in-reply-to:in-reply-to:references:references; bh=G3YMWScnkOMnWM7iT64AqRSCl3b1pD7aK3Esk7Hjt88=; b=nXRxnyb517dVGhMte0uFwGyWVK1bN5DwRu6jK3XcZ3tdUbNa5lPkoSWMEBNj39wvl6dUCq KFxGJoSQrIjWNtswhU0UpLdFFg0/d/w0cAF+93dJAxLE9clXtctcHgM6g0R3qbt1Gxozx8 UyuIiuIaZn89bV+sNoz0yX1ME2yMua0y67mAKMwriDtCN9pS3uJQ52D8igPPg9Et+QT2PF 7iktBbnmPYTivDQjdsM6Yd+VtG3+MsztIbx3t+GBNP2Qmjk4Kzd9/03Z/izVqMjB43QWh3 85CD3/N66rj/+Jb9Mxz6lFyAeBGRZEqTufbA+ECZCw44Vz4aCIR/8VAD8jNxcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647611756; a=rsa-sha256; cv=none; b=dWGZuhOL6qNvwsM3HbaVMAdCTf9IHe3tkXXsBR652U7OLY9Xbh3rTKmSe+fMrC8mSS5Onl WAs891DlxoIM/10HLUX2k+bFz5LalALWeJ+QH8jV22FaGSjRhr0CCuml69fm9iHgbEJIVl zu6C8WEe98cA6S3FeMiScaXUz6oHPBvEiQwxbDytDvUMHpg/9b2k2+esAbPk67c/Pb1k1g t2I0H1kbAUKrY994AkNwpiVfjjCkl+9LsekKP4VkytlSUXny5w1um7WgSZz93tyjopViER Gp+yB1kV5tPHSidmk9mq5vp/rRdqxS1v2zSt8LXA2kjhYac9nLOaNO+f/5gFsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262468 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D97aeda2243568b386d792514996a06dae= c55eece commit 97aeda2243568b386d792514996a06daec55eece Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-03-18 12:35:16 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-03-18 13:53:52 +0000 zfskeys: Support autoloading of keys stored on ZFS The zfskeys service script starts before the zfs service script, so that dataset decryption keys are available when `zfs mount -a` is run. One of the potential edge cases of this design is that if a key is stored on ZFS it won't be loaded until `zfs mount -a` is issued. In order to address that let's try to load the additional keys and mount related ZFS datasets after the zfs script finishes its standard mounting procedure. PR: 262468 Reported by: Graham Perrin Reviewed by: allanjude Approved by: allanjude (src) Fixes: 33ff39796ffe Add zfskeys rc.d script for auto-loading encryption keys MFC after: 3 days Sponsored by: Modirum Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34601 libexec/rc/rc.d/zfs | 12 ++++++++++++ 1 file changed, 12 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=