DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] openLuks failing - semaphore weird bug involved ?
Date: Thu, 8 Sep 2011 00:31:47 +0200	[thread overview]
Message-ID: <20110907223147.GB16486@tansi.org> (raw)
In-Reply-To: <CANGzC2y4NOZxda_jSq_szh_5PKGTzDroCHA3OBOqVDmwev9J9w@mail.gmail.com>

As the header seems to be intact, the possibilities I see are 

- A changed keymap. Some people had problems with special
  symbols moving form ASCII encoding to UTF-8 encoding.
  This yields different passphrase-hashes. See FAQ.

  I am not familiar with seahorse. Maybe its passprase
  input fails and theis leads to cryptsetup getting
  an invalid passphrase as input? Anyways, try to 
  decrypt the key manually and see whether you get a 
  good passphrase for LUKS or an error and in the second
  case, try a manual luksOpen with that passphrase.
 
- Keyslot damage. Look at the first keyslot with a
  hex dumper, e.g. hd or hexdump, and see whether there
  are obvious patterns. Offset and length are in the
  FAQ.

- A broken LUKS version. In that case, can you try
  with, e.g. a life-CD of the old version you used?
  Or download, compile and try manually with the 
  current cryptsetup version? 

The first and last option should yield a complete recovery.
A damaged keyslot is only recoverable with a header backup.

Arno


On Wed, Sep 07, 2011 at 02:30:32PM -0400, Ric Flomag wrote:
> Hi all,
> 
> I've been using an external usb hard drive with three (no LVM)  partitions,
> one of them crypt-luks (set up using palimpsest), for months. It used to get
> auto-mounted under Gnome when plugged. Seahorse provided the key (Ubuntu
> 11.04).
> 
> Since a few days ago, it does not mount anymore. luksOpen yields a "no key
> available" error message. No one around me can be suspected to have changed
> the password. The other (plain ext4) partition mounts normally.
> 
> I can backup or dump the header without a problem. Another usb hardrive,
> with the same luks setup (as shown by header dumps), mounts as usual. All
> this is reproducible on other systems (another ubuntu 11.04 and a 11.10
> beta).
> 
> Note that I have the "weird semaphore bug" described here:
> http://thread.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5237/focus=5243,
> though, in my case:
>   * it happens approx. once every three luksOpen attempts
>   * It is not related to luksOpen success or failure (the semaphore error
> message is just displayed sometimes with any of both hard drives)
>   * Chromium is not involved
> 
> Coincidentally, I have started to use my hard drives with ubuntu 11.00 beta
> a few days ago. It could have messed up something on one hd and not the
> other?
> 
> Any hint to try and fix this ?
> 
> ------------- faulty partition
> LUKS header information for /dev/sdb3
> 
> Version:           1
> Cipher name:       aes
> Cipher mode:       cbc-essiv:sha256
> Hash spec:         sha1
> Payload offset:    2056
> MK bits:           256
> MK digest:         70 41 d4 78 bd 91 9e 82 c3 9c 61 df e8 6b 4e 28 2f 2b 90
> 94
> MK salt:           a8 c6 7f 6f 35 2b 48 19 cc e7 27 7a 4f a6 ca a3
>                    9f 78 6d f8 21 b0 48 56 44 27 2c 53 75 bf 0c 86
> MK iterations:     22875
> UUID:              4b74a5b1-0c46-4808-98c0-3a51ec5f7c8e
> 
> Key Slot 0: ENABLED
>     Iterations:             91811
>     Salt:                   24 f0 44 14 a7 4d ae e6 b6 2b 42 7c 8d 10 87 39
>                               47 05 fd 35 14 46 62 12 f7 5a 7e 99 8a 67 33
> f5
>     Key material offset:    8
>     AF stripes:                4000
> Key Slot 1: DISABLED
> Key Slot 2: DISABLED
> Key Slot 3: DISABLED
> Key Slot 4: DISABLED
> Key Slot 5: DISABLED
> Key Slot 6: DISABLED
> Key Slot 7: DISABLED

> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt


-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

  reply	other threads:[~2011-09-07 22:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-07 18:30 [dm-crypt] openLuks failing - semaphore weird bug involved ? Ric Flomag
2011-09-07 22:31 ` Arno Wagner [this message]
2011-09-08 15:46 ` Ric Flomag
2011-09-08 18:11   ` Arno Wagner
2011-09-08 21:53     ` Claudio Moretti
2011-09-08 22:21       ` Karl O. Pinc
2011-09-09 16:19         ` Arno Wagner
     [not found]   ` <1315506605.6590.0@mofo>
2011-09-15 15:54     ` Ric Flomag
2011-09-15 16:06       ` Arno Wagner
2011-09-15 16:15         ` Ricflomag
2011-09-15 23:07           ` Arno Wagner

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=20110907223147.GB16486@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /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