public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Anthony Rossomano <trossoma2@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Partition incorrectly identified as LUKS
Date: Fri, 12 Dec 2025 08:35:44 +0100	[thread overview]
Message-ID: <7cae1d2b-3da8-483e-abaa-6a629fb9e725@gmail.com> (raw)
In-Reply-To: <A4CF73A8-06D0-47DD-81CD-0B852DDA0F11@gmail.com>

On 12/12/25 12:24 AM, Anthony Rossomano wrote:
> 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.

This just cannot happen until there is a bug in libblkid
(which should check offset) or something different happens.
The offset checking patch was added later, perhaps your distro did not backport the patch.

LUKS1 must be on offset 0.

LUKS2 is designed exactly to prevent this to happen by checking
header offset in on expected location form device start.

If upstream util-linux misdetects LUKS, then please send a testing image somewhere.

Thanks,
Milan


      reply	other threads:[~2025-12-12  7:35 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
2025-12-12  7:35     ` Milan Broz [this message]

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=7cae1d2b-3da8-483e-abaa-6a629fb9e725@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=trossoma2@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