From nobody Sat Sep 23 15:43:04 2023 X-Original-To: freebsd-stable@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 4RtD1S40Zdz4tqYp for ; Sat, 23 Sep 2023 15:43:08 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RtD1R6h6Wz4Khj for ; Sat, 23 Sep 2023 15:43:07 +0000 (UTC) (envelope-from shoesoft@gmx.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1695483785; x=1696088585; i=shoesoft@gmx.net; bh=CWl4PjWTeQ7NvP7XQtTGYR4MH/ZsHQBD15PaPee8pXk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=EFIuLvKg1LsLr0coA9H/6uleGx4slGMoyIWj++oOky8OOMqmxAYKKGQzhEgyONg9N36SvBlQsKI Zu1UrnII8JH1r12uVPiiw+3i2VXLt7kULtVm+55BtBNqs70br9hMLTvVsPn3vMqpjGmbmDhZCmKYM p4je+OCkbHKGsmLB8ZiWVcToFDosz4TwSnLLUpI7PX4hFsfX9VhD82G4WJJFDKcbiIcqW+xpe0X8M 8B4U03Jx2Y4wURr8XfknBwtAvSV4obs1bDB2yk8WdUKyckth7xiuxmgwv1qKeGZ4phumCtOHjIiKL mtPznp/RNRJM1bnaPhcuOZBl88UVQve3K3LQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from walrus.pepperland ([81.217.72.171]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MDQeK-1qrFnT2Qic-00AZfW; Sat, 23 Sep 2023 17:43:05 +0200 From: Stefan Ehmann To: Warner Losh Cc: FreeBSD-STABLE Mailing List Subject: Re: nvd compatibility links and geli Date: Sat, 23 Sep 2023 17:43:04 +0200 Message-ID: <6137184.BczB8pWqXV@walrus.pepperland> In-Reply-To: References: <99750134.ESjDGNxrJy@walrus.pepperland> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K1:1fJwEi2WjPBYzAp7hn3Ei7WFP5jqsczvSBsFT77w5gesF1NoE/E btFdnjHfiOftN101knAgdfJ8xgHCtjBVtCCNZpwcU34hbW38WlobRAFAO8VI4c5pzD0GleI 7w/RnEBpF6XadzfdIlyjJaTJYPP3+eTZvrLaxmvgGi+VLPhMtJz67w4FB+rmIhDRxtgEZG4 hFUcObfGIXCoMWCHMZDsQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:WaY6u85nA3E=;GVVRuM6dtc/4gSsuhs6AgrWnyg3 UtIDWoHvCRMA4Mx1O17ERhxrojG4n3HPDSFqfG50t/vw9aWhJ4jGf7XVylzlfCGXesO/27U3b PpLyLhjlN6bOGFdnCDxYl7zOUujP288VjaZm0ZoiqlF0QUsAqbCDsILQx7j57zGOTnhzZcP5m 2gCsq6rWxJHNSqQ1MGn39udh1tCUISsuyjfCuZAwF9ZncnWp7HnYLPhwomv6WetOsviUTyawL r3kQHEIcvtJjuDSeJk6Mzu/4E3qzYsOGZY/m0IAHPble/3wVR23abHlOoUDMCSnFJRhiEh+pk bSzTX9buuGBuAWH2BsSo+vXMgOgDL9K8wNRo6rlltOnpOc6B5XP/NKzCIx3bpnO6F+LX8HJCi 5KQZ9XZdC4xg92ZdZeGBEvggYq7SR9q+wMgLlXH7zoTWKU1q0OLYd+9aWNxx0Nnv0VtYFtcjP jjTIbWLQmlAJYbgc3Fy9boFNdPtRhceFf4j/BXo014VOKC3OjdAx6h+e4ark+sxdeDWbBXjMN 7wuiWHq64veARRAAFv+QdX0qgrcDMfTMbf/b7l/WqDJgODDVmDqCP3vD7qgMJa2AVlkDEkTH9 rp48cTg+OY8uqWFxEIY3K7yqYpF19e0akmWQ9Zf87K6EfWdm/kma46m9aOl28tipwcFjSTVOd wgE0MShv2wtqoYJriNkcKygPgIbyKfanPMl/7Ja0MtKrCUrtGp//lNDQV8tv301bpF/dn6y5/ pUaBcpJYuZmOPHEBUxx2nAvNyIk56K+Sg4LGec54mC4h81rq7P4GVJk3i4Xs1hqUz2PF9ztHp EJKIAP3Tkrhnkq8K041WPDcR2117SyCgEvoCqhsqqdxhrXHLYCNl7QvwyurTJYUJXejd4JyxM 4QpTeubzHtuPt9q57O6DRFmQaYAXm6S6UK5HGxw6o+1EBPhg6X+Kv5yTdvhSuQou7vkJYpYqi Fb6q3F10D0d5WRKStOJBCI88uZ8= X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4RtD1R6h6Wz4Khj On Saturday, September 23, 2023 4:45:36 PM CEST Warner Losh wrote: > On Sat, Sep 23, 2023, 7:19 AM Stefan Ehmann wrote: > > The 20230612 entry in UPDATING says: > > Encrypted swap partitions need to be changed from nvd to nda i= f > > you > > migrate, or you need to use the above to switch back to nvd. > > > > Are encrypted (non-swap) partitions supposed to work? If not, it would= be > > less > > confusing to directly abort with an error message instead of prompting > > "Enter > > passphrase: " first. > > > > # ls -l /dev/nvd0p4 > > lrwxr-xr-x 1 root wheel 6 Sep 23 14:59 /dev/nvd0p4 -> nda0p4 > > # geli attach nvd0p4 > > Enter passphrase: > > geli: Provider not found: "nvd0p4" > > geli: There was an error with at least one provider. > > > > Using nda works as expected: > > # geli attach nda0p4 > > # Enter passphrase: > > > > > > Tested on 14.0-BETA3. > > They do not work due to obscure issues with geom and how I implemented t= he > compat code. You will either need to set the sysctl in the updating entr= y > to switch back to nvd. Or you'll need to change the config to use the ne= w > name. > > Geom doesn't provide a nice centralized place to deal with all the name > stuff, so my compat code was just at the most popular places. I missed a > few... > > How hard is it for you to adapt? Thanks for the explanation. It's no issue for me. I'll just set kern.cam.nda.nvd_compat=3D0 to avoid accessing nvd devices out of habit. Maybe we should drop the "swap" from "Encrypted swap partitions" in UPDATI= NG?