[dm-crypt] Cryptsetup bug

Milan Broz gmazyland at gmail.com
Fri Dec 30 03:18:06 CET 2016

On 12/29/2016 06:53 PM, Hunter DeMeyer wrote:
> I believe that under certain circumstances cryptsetup will encrypt
> more than one partion on a drive. I have attached the process that
> produced this bug.

Cryptsetup accesses only device that you specify.

There are two options how could happen that LUKS device appeared on different partition:

1) there was some old LUKS device on the /dev/sdb1 offset start already or
2) you recreated partitions but for some reason kernel still see the old partitions size,
and sdb1 was still in fact mapped to the old partition.

Could you please paste blkid /dev/sdb* to verify it is the first option (to check LUKS UUID)?
I guess you will see different UUIDs.

And please do not send html mails to the list.


More information about the dm-crypt mailing list