From: Anthony Rossomano <trossoma2@gmail.com>
To: Milan Broz <gmazyland@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Partition incorrectly identified as LUKS
Date: Thu, 11 Dec 2025 15:24:29 -0800 [thread overview]
Message-ID: <A4CF73A8-06D0-47DD-81CD-0B852DDA0F11@gmail.com> (raw)
In-Reply-To: <13c13750-6420-40a8-a99c-35b46b9b009a@gmail.com>
> On Dec 11, 2025, at 1:22 PM, Milan Broz <gmazyland@gmail.com> wrote:
>
> On 12/11/25 4:20 PM, Anthony Rossomano wrote:
>> LUKS image is stored on XFS partition. When secondary LUKS signature
>> winds up at one of the offsets checked by libblkid partition then we
>> have the side effects of partition reported with crypto_LUKS fstype,
>> no by-label link created by udev, mount requires fstype, etc
>> Don’t think that this has been addressed upstream but need to
>> confirm.
> LUKS2 metadata contains offset, so it is not possible to detect
> it on a wrong offset.
>
> If it is detected on partition (secondary LUKS2 header),
> it probably means that partition was not properly wiped before reformat.
> (wipefs -a should wipe both LUKS2 headers)
>
> Anyway, without the reproducer image it is just guessing.
>
> Milan
>
Make sure we’re on the same page. This partition is properly wiped and formatted as XFS. There are LUKS encrypted squashfs image files stored in the partition. These images are updated periodically. The issue occurs when secondary LUKS signature in one of the image files winds up at offset on disk checked by libblkid.
Tony
next prev parent reply other threads:[~2025-12-11 23:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 15:20 Partition incorrectly identified as LUKS Anthony Rossomano
2025-12-11 21:22 ` Milan Broz
2025-12-11 23:24 ` Anthony Rossomano [this message]
2025-12-12 7:35 ` Milan Broz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A4CF73A8-06D0-47DD-81CD-0B852DDA0F11@gmail.com \
--to=trossoma2@gmail.com \
--cc=gmazyland@gmail.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox