From nobody Tue Nov 05 16:46:21 2024 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 4XjZ3d5kjsz5cKKB for ; Tue, 05 Nov 2024 16:46:21 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjZ3d1xTKz44J4 for ; Tue, 5 Nov 2024 16:46:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730825181; 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=fN3yYC0T9l9ncsrh1TUFFg3b0fCSqE5wCO6/cXfE0Wc=; b=RL++LonK2QCUMtA4HMHx9B2YWYWckDeVRkcXkDntMooCQ/xxJ/hkVIRor3hhildLwSvuu5 KL+eqdDxqj2o4cLPYN2xKu9cJMyQjGNvt2YrgRjSrVYE/lGymfmzw9i1NjxWQ1dKeveaum CHXqNNg1Airfb9yjIG+n1XskNocnFF6It11usFdCTejT71i/BflFPhq1/zV0SOlvCs1/Xm Q9WAUj3nvVnV3N3D/gdBz9YDaBE9H5L7DiSJ5wiYazPaV/Bmp6WXgkmMGyGizPWCLP4Czr UTTr84Ay2ukaNFIH1FaY5FYnqftGFV3Azqeywa8F/U2OJWtJYkn1e1VXJmIkvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730825181; a=rsa-sha256; cv=none; b=rl1i4aG0czQh4PTKfLO/fJMc2lhaXbcMFycc3ag4F8rkfIVKuJzgVN4hykwI5T0UBtXt8w PYYXmO37hyjyPipS+kLjsmwOXV9bi1WPwbOUQk1vQrLk9nLIGkxmSovUqW4nm24zM9cR+9 SyopqSlGEb3ZxuHCV3m0WzI7edQdvmtM+xJA6Tz71Z6owckoK9ngF6Rro3m6NjhUziuuQc tgtdMhHTmX0rTxF9+Ya0xFbbHxg8/LPNCcBFpgGunO3vDggQqqqj/vQshpi5RQUcpnXiQT W6nXBCmQioXYC9ckp3DWcBE17KhkykfLJMZlA33SCYn7g3lHdkktc5PfrLCIeg== 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 4XjZ3d1V6czPrX for ; Tue, 5 Nov 2024 16:46:21 +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 4A5GkK10023457 for ; Tue, 5 Nov 2024 16:46:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4A5GkK6Z023456 for bugs@FreeBSD.org; Tue, 5 Nov 2024 16:46:20 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 282567] [geli] geli setkey can clear key components, perfectory Date: Tue, 05 Nov 2024 16:46:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nork@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282567 Norikatsu Shigemura changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|] |[geli] geli setkey can | |clear key components, | |perfectory --- Comment #1 from Norikatsu Shigemura --- I tested following case as a bug of "geli setkey": - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -= - # truncate -s 1M testfile # # mdconfig -f testfile md0 # geli init -e AES-XTS -l 256 -B none -s 4096 md0 Enter new passphrase: Reenter new passphrase: # geli attach md0 Enter passphrase: # geli setkey -i $((65536*65536-1)) md0 Enter new passphrase: Reenter new passphrase: Note, that the master key encrypted with old keys and/or passphrase may sti= ll exist in a metadata backup file. # geli detach md0 # geli attach md0 geli: Missing -p flag. geli: There was an error with at least one provider. # geli attach -p md0 geli: No key components given. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -= - I found this issue because I tried reset passphrase key like "geli setkey -k keyfile -P md0". But I couldn't reset passphrase, so I noticed that the "md_iterations" does= n't reset to -1 (=3D 2^32-1 =3D 65536*65536-1). SEE ALSO: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196834 So there is a bug of "geli setkey -P doesn't reset md_iterations" yet. To reset iterations, "geli setkey -P" should reset the md_iteratitons, or describe how to reset passphrase by setting iterations and save no key compoents status. --=20 You are receiving this mail because: You are the assignee for the bug.=