public inbox for cryptsetup@lists.linux.dev
 help / color / mirror / Atom feed
* Bug: luksClose search LUKS header but it is detached
@ 2022-08-09 21:53 doffloster
  2022-08-10  6:58 ` Milan Broz
  0 siblings, 1 reply; 5+ messages in thread
From: doffloster @ 2022-08-09 21:53 UTC (permalink / raw)
  To: cryptsetup

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:
"
# Trying to read primary LUKS2 header at offset 0x0.
# Opening locked device /dev/sdb1
# Verifying locked device handle (bdev)
# Trying to read secondary LUKS2 header at offset 0x4000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x8000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x10000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x20000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x40000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x80000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x100000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x200000.
# Reusing open ro fd on device /dev/sdb1
# Trying to read secondary LUKS2 header at offset 0x400000.
# Reusing open ro fd on device /dev/sdb1
# LUKS2 header read failed (-22).
"

Do you consider it to be a bug?

Best Regards,
David.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-12 14:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-09 21:53 Bug: luksClose search LUKS header but it is detached doffloster
2022-08-10  6:58 ` Milan Broz
2022-08-10 12:51   ` doffloster
2022-08-11  6:42     ` Milan Broz
2022-08-12 14:55       ` doffloster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox