[From nobody Wed Jul 22 02:35:08 2026
Received: (at submit) by bugs.debian.org; 2 Jul 2026 09:26:44 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-18.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,NO_RELAYS,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 18; hammy, 74; neutral, 28; spammy, 2.
 spammytokens:0.941-+--H*r:bugs.debian.org, 0.855-+--forward
 hammytokens:0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking,
 0.000-+--HTo:N*Debian, 0.000-+--HTo:N*Bug, 0.000-+--HTo:N*System
Return-path: &lt;cacin@allfreemail.net&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;cacin@allfreemail.net&gt;) id 1wfDgy-00DalF-0e
 for submit@bugs.debian.org; Thu, 02 Jul 2026 09:26:44 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: cacin@allfreemail.net
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: luks_try_token_unlock: Assertion `tries &gt;= 1' failed.
Message-ID: &lt;178298440306.1233.5099711968181333539.reportbug@debian&gt;
X-Mailer: reportbug 13.2.0+nmu1
Date: Thu, 02 Jul 2026 09:26:43 +0000
Delivered-To: submit@bugs.debian.org

Package: cryptsetup
Version: 2:2.8.6-2
Severity: normal

Dear Maintainer,

I wanted to see if I get infinite attempts when using -T 0 (--tries=0),
and came across this assertion failure.

Please forward it upstream. Thank you.

Create some file for the LUKS container (the size is irrelevant):
$ fallocate -l 100M mycontainer

Create the actual container (with empty password; the password doesn't
matter):
$ printf '\n' | cryptsetup luksFormat mycontainer

Observe assertion failure when using -T 0 argument when trying to open
the container:
$ cryptsetup open --test-passphrase -T 0 mycontainer
cryptsetup: src/utils_luks.c:321: luks_try_token_unlock: Assertion `tries &gt;= 1' failed.
Aborted                    cryptsetup open --test-passphrase -T 0 mycontainer
]