From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gFRxMt9b1GFL9wAAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 15:38:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2HfVL99b1GGNfgEA9RJhRA (envelope-from ) for ; Tue, 04 Jan 2022 15:38:23 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4870727AE6 for ; Tue, 4 Jan 2022 15:38:23 +0100 (CET) Received: from localhost ([::1]:49740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4kxC-0005Ff-3G for larch@yhetil.org; Tue, 04 Jan 2022 09:38:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4kws-0005FR-RI for bug-guix@gnu.org; Tue, 04 Jan 2022 09:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4kws-0006gs-IA for bug-guix@gnu.org; Tue, 04 Jan 2022 09:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4kws-0002qv-Eq for bug-guix@gnu.org; Tue, 04 Jan 2022 09:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53005: cryptsetup-static aborts opening LUKS2 volume with Argon2i PBKDF Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 04 Jan 2022 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53005 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 53005@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164130703010891 (code B ref -1); Tue, 04 Jan 2022 14:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2022 14:37:10 +0000 Received: from localhost ([127.0.0.1]:37178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4kw2-0002pa-In for submit@debbugs.gnu.org; Tue, 04 Jan 2022 09:37:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:51348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4kvy-0002pP-5A for submit@debbugs.gnu.org; Tue, 04 Jan 2022 09:37:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4kvw-00057d-Dn for bug-guix@gnu.org; Tue, 04 Jan 2022 09:37:05 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:51134) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4kvs-0006Gr-HU for bug-guix@gnu.org; Tue, 04 Jan 2022 09:37:02 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id A6E60C7F25 for ; Tue, 4 Jan 2022 14:36:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo01-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo01-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id drz7Gi5X590v for ; Tue, 4 Jan 2022 14:36:58 +0000 (UTC) Received: from mars (23-233-96-244.cpe.pppoe.ca [23.233.96.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 6033AC7F1A for ; Tue, 4 Jan 2022 14:36:58 +0000 (UTC) From: Simon South Date: Tue, 04 Jan 2022 09:36:57 -0500 Message-ID: <87v8yz1sae.fsf@simonsouth.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641307103; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=C228yuJHncCm9LdGSp74186c6g8QeNHgpFdfDJN/9Io=; b=BFtU+B6C1U6nBwDlsSjnIYh2UZThE1XOI6GTbsW2qjz8Jp7B7W4pTVRFndZQqktMOuiH50 KjqKlXaW1fip0sPjZw+WMVytxxpw0eClteTLayQj9SZe+xUDErrPT+kYExHMuyRJMn7Eea 5tcQD+AajEsEF+mh46Vrx4d/UHY4kN7ZsJhauZp8bLIgkhiGPQn4MuIyO2B+f2eLvBXOvD nBeBcU1ccANv36SlRKZ0V6Ed5RZ5muO2MWsetp5mLzW94gWzztyGKz21rfQPN0i3QQaIaP CLLzNYhqgaZPrrxlEshYKo1ImrLlCtAB2gBRSAuSg9TomgTudoQCjd5vPuJhhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641307103; a=rsa-sha256; cv=none; b=maLrDo1ijV7zRyF1MVflG8bX9ddgOo2lMW3+PNL5f7HNKaMrL6ueMtlKDT4+BcELXpaOHb c18GUtjgA2ic7ACrm1YhWXRlvZwYKQXXXaJWzZo+dWKVm3C+a2uE4f4rXt/E7z7wBBoP85 dn9kw0PDsIBHy13Nv9yCZqtTfJbl+4dlHkJHItxpUM7g89QCpYZyDTd6pS4VgOcO+wgloN 2yY1M7jCET/bLxxst6r/4ZW4QAQFc36pIK9GSEZ4QDIp0WggeqUkDpx83KtfJIMGs1x+4d jkpsz5N0yYFZ6GckleK8X2s4dVhToqDxR8zpIXqR9gHbw9/NuneXYeTnA4ZQpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.09 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4870727AE6 X-Spam-Score: -4.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: uX6I/FcwdRFy Currently cryptsetup from the "cryptsetup-static" package is unable to open LUKS2 encrypted volumes that use the Argon2i key-derivation algorithm, the default for LUKS2. It catches SIGABRT and exits without opening the volume. This appears to be a regression following the merge of the core-updates-frozen branch and because of it, I'm unable to boot into an up-to-date system as there is no way to get past the "Enter passphrase" prompt at startup. I've verified this on both AArch64 and x86-64. To reproduce: 1. Ensure the "cryptsetup" package is installed in your profile and that "cryptsetup-static", the statically-linked equivalent added to the initrd and used during startup, is available on your system: guix install cryptsetup guix build --verbosity=2 cryptsetup-static 2. Create a file containing a dummy LUKS2 volume: truncate -s 32M ./dummy-luks-volume cryptsetup luksFormat --type luks2 ./dummy-luks-volume Make sure the Argon2i PBKDF algorithm was selected during formatting: cryptsetup luksDump ./dummy-luks-volume | grep argon This should output "PBKDF: argon2i". 3. Verify the volume can be opened using the regular cryptsetup tool: sudo cryptsetup open --type luks ./dummy-luks-volume dummy-volume ls /dev/mapper/dummy-volume sudo cryptsetup close /dev/mapper/dummy-volume 4. Now try opening the volume using the statically-linked cryptsetup: sudo `guix build cryptsetup-static`/sbin/cryptsetup open \ --type luks ./dummy-luks-volume dummy-volume ls /dev/mapper/dummy-volume You should find (on most runs, at least) after you enter the passphrase the tool exits with "Aborted" and with no entry added beneath /dev/mapper. -- Simon South simon@simonsouth.net