From: Milan Broz <gmazyland@gmail.com>
To: "doffloster@gmail.com" <doffloster@gmail.com>,
cryptsetup@lists.linux.dev
Subject: Re: Bug: luksClose search LUKS header but it is detached
Date: Wed, 10 Aug 2022 08:58:36 +0200 [thread overview]
Message-ID: <df769461-e347-9abd-7195-556e22f5d481@gmail.com> (raw)
In-Reply-To: <CACHosL9ri_XGPoLxsAb4vEnav1-w3B=YWCE1YidhRn-ONrW=fw@mail.gmail.com>
On 09/08/2022 23:53, doffloster@gmail.com wrote:
> Hi all,
>
> I noticed that cryptsetup LUKS extensions is searching for a LUKS
> header in the device.
> This is expected when the LUKS header should be in the device.
> But I used a detached LUKS header, so I wasn't expecting to see
> cryptsetup searching for the LUKS header in the device.
>
> You can see that in the log file "log.txt" - in the URL:
> https://drive.google.com/file/d/1DcrpklgE75oE5znAxHAlp9CPikkYbVq1/view?usp=sharing
>
> You may notice that I used a "--header" flag, but I also tried without
> it - still, cryptsetup behaved the same.
>
> The incriminating lines from the attached log are as follows:
...
> Do you consider it to be a bug?
Hi,
No, this is expected. But for close (deactivation) it proceeds even
if it does not find the detached header.
The reason is that even close need some information from the header
(for example UUID).
Is there any functional problem with this or it just looks strange?
If it is problem, you can always use low-level access through
"dmsetup remove <device>" here, but it can keeps some underlying device
active (for LUKS2 this is used only for integrity protected devices).
Milan
next prev parent reply other threads:[~2022-08-10 6:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 21:53 Bug: luksClose search LUKS header but it is detached doffloster
2022-08-10 6:58 ` Milan Broz [this message]
2022-08-10 12:51 ` doffloster
2022-08-11 6:42 ` Milan Broz
2022-08-12 14:55 ` doffloster
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=df769461-e347-9abd-7195-556e22f5d481@gmail.com \
--to=gmazyland@gmail.com \
--cc=cryptsetup@lists.linux.dev \
--cc=doffloster@gmail.com \
/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