Dominik Geyer | 12 Jun 17:51

cryptsetup: Problem with password-prompt when re-mapping encrypted partition

Hi list,

using cryptsetup (version 1.0.5 on Gentoo) I noticed following strange behaviour:

After a successful mapping the partition I unmap it again. When I 
try to remap it, sometimes the password prompt doesn't accept the 
passphrase I entered before or accepts it finally after some tries.

Anyone noticed a similar behaviour? (BTW: My keyboard is working fine ;-) )

--
Dominik Geyer

Jonas | 13 Jun 11:20

Re: cryptsetup: Problem with password-prompt when re-mapping encrypted partition

On 12/06/2008 Dominik Geyer wrote:
> Hi list,

Hey Dominik,

> using cryptsetup (version 1.0.5 on Gentoo) I noticed following strange behaviour:
> 
> After a successful mapping the partition I unmap it again. When I 
> try to remap it, sometimes the password prompt doesn't accept the 
> passphrase I entered before or accepts it finally after some tries.
> 
> Anyone noticed a similar behaviour? (BTW: My keyboard is working fine ;-) )

Could you try whether this happens with cryptsetup 1.0.6 as well? 1.0.6
has some code added which invokes udevsettle before actually doing the
device setup.
the reason for that is that after a dm-crypt device is closed, sometimes
temporary device-mapper tables are left behind. you should see them as
temporary-cryptsetup-* devices in /dev/mapper.

please see http://bugs.debian.org/444914 for more information.

greetings,
 jonas

Dominik Geyer | 13 Jun 15:55

Re: cryptsetup: Problem with password-prompt when re-mapping encrypted partition

On Friday 13 June 2008 11:20, Jonas wrote:
> Hey Dominik,

Hi Jonas,

thank you for your fast response!

> > using cryptsetup (version 1.0.5 on Gentoo) I noticed following strange behaviour:
> > 
> > After a successful mapping the partition I unmap it again. When I 
> > try to remap it, sometimes the password prompt doesn't accept the 
> > passphrase I entered before or accepts it finally after some tries.
> > 
> > Anyone noticed a similar behaviour? (BTW: My keyboard is working fine ;-) )
> 
> Could you try whether this happens with cryptsetup 1.0.6 as well? 1.0.6
> has some code added which invokes udevsettle before actually doing the
> device setup.
> the reason for that is that after a dm-crypt device is closed, sometimes
> temporary device-mapper tables are left behind. you should see them as
> temporary-cryptsetup-* devices in /dev/mapper.
> 
> please see http://bugs.debian.org/444914 for more information.

Yes, thats it. I tested cryptsetup-1.0.6 which seems to fix/workaround this bug. Everything works 
fine again, thanks! 

Regards,
Dominik

(Continue reading)

Till Maas | 17 Jun 00:43
Favicon

Re: cryptsetup: Problem with password-prompt when re-mapping encrypted partition

Jonas wrote:

> Could you try whether this happens with cryptsetup 1.0.6 as well? 1.0.6
> has some code added which invokes udevsettle before actually doing the
> device setup.

This creates a deadlock when one runs cryptsetup 
within an udev rule, here is a bug report about this in Fedora:

https://bugzilla.redhat.com/show_bug.cgi?id=451241

Or the message
<Pine.LNX.4.64.0806141902051.8477@...>
with the subject "cryptsetup is 100 times slower then in 1.0.6".

Do you maybe have an idea how to solve this?

Regards,
Till


Gmane