All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Fruhwirth <clemens@endorphin.org>
To: Martin Michlmayr <tbm@cyrius.com>
Cc: dm-devel@redhat.com,
	Brian Brunswick <bdb-reportbug@forbidden.co.uk>,
	403426@bugs.debian.org
Subject: Bug#403426: kernel corrupts LUKS partition header on arm
Date: Sat, 30 Dec 2006 11:50:11 +0100	[thread overview]
Message-ID: <87vejt64kc.wl%clemens@endorphin.org> (raw)
In-Reply-To: <20061229202434.GD23246@deprecation.cyrius.com>

At Fri, 29 Dec 2006 21:24:34 +0100,
Martin Michlmayr <tbm@cyrius.com> wrote:
> 
> * Clemens Fruhwirth <clemens@endorphin.org> [2006-12-29 11:52]:
> > Please try the version from subversion
> > http://luks.endorphin.org/svn/cryptsetup
> 
> With 1.0.4 plus the attached 2 patches from SVN I no longer get any
> corruption but I also cannot access my encrypted data.  

That's good :)

> Is there anything else I should try?
> foobar:~# cryptsetup luksOpen /dev/sda5 x
> Enter LUKS passphrase:
> device-mapper: table: 254:0: crypt: Device lookup failed
> device-mapper: ioctl: error adding target to table
> device-mapper: ioctl: device doesn't appear to be in the dev hash table.
> Failed to setup dm-crypt key mapping.
> Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sda5 contains at least 133 sectors.
> Failed to read from key storage

Are you sure we don't see any device mapper problems here? You might
just go over to a box where LUKS works (when the LUKS partition does
not contain anything security relevant to you), and do

dmsetup table mappingname > dm-table-file

open it up, and find the 7th entry that says something like x:y
(major:minor device number of your underlaying device). Replace this
by your correct device path on the arm box, copy that file over to arm
and set it up as

dmsetup create mappingname dm-table-file

If that does not work, we are seeing a dm-crypt layer problem here.

> Enter LUKS passphrase:

I just commited a patch that prevents password retrying with I/O
errors.
-- 
Fruhwirth Clemens - http://clemens.endorphin.org 
for robots: sp4mtrap@endorphin.org

  reply	other threads:[~2006-12-30 10:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20061217022906.2434.60658.reportbug@LKG8A754B.example.org>
2006-12-20 16:15 ` Bug#403426: kernel corrupts LUKS partition header on arm Martin Michlmayr
2006-12-29 10:52   ` Clemens Fruhwirth
2006-12-29 16:38     ` Martin Michlmayr
2006-12-29 20:24     ` Martin Michlmayr
2006-12-30 10:50       ` Clemens Fruhwirth [this message]
2006-12-30 13:13         ` Martin Michlmayr
2007-01-02 17:00           ` Clemens Fruhwirth
2007-01-02 18:04             ` Martin Michlmayr
2007-01-02 18:34               ` Clemens Fruhwirth
2007-01-03 16:59               ` Clemens Fruhwirth
2007-01-03 19:14                 ` Martin Michlmayr
2007-01-03 19:32                   ` Clemens Fruhwirth
2007-01-03 19:37                     ` Martin Michlmayr
2007-01-04 11:56                       ` Clemens Fruhwirth
2007-01-04 15:09                         ` Martin Michlmayr
2007-01-05  8:36                           ` Gordon Farquharson
2007-01-05  9:59                             ` Martin Michlmayr
2007-01-06  6:38                               ` Gordon Farquharson
2007-01-07  5:47                             ` Gordon Farquharson

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=87vejt64kc.wl%clemens@endorphin.org \
    --to=clemens@endorphin.org \
    --cc=403426@bugs.debian.org \
    --cc=bdb-reportbug@forbidden.co.uk \
    --cc=dm-devel@redhat.com \
    --cc=tbm@cyrius.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.