From: Tvrtko Ursulin <tvrtko@ursulin.net>
To: dm-crypt@saout.de
Cc: linux-kernel@vger.kernel.org
Subject: [dm-crypt] cryptsetup not working under 3.6 - regression from 3.4?
Date: Sat, 20 Oct 2012 21:44:35 +0100 [thread overview]
Message-ID: <50830D33.5050807@ursulin.net> (raw)
Hi all,
I can't open my LUKS formatted crypto files in 3.6 any more while 3.4
works fine.
Error is:
# cryptsetup --key-file=- luksOpen /luks.file target
Enter passphrase:
device-mapper: reload ioctl on failed: No such file or directory
Failed to setup dm-crypt key mapping for device /dev/loop0.
Check that kernel supports aes-cbc-essiv:sha256 cipher (check syslog for
more info).
Failed to read from key storage.
I don't think kernel misses any modules because:
a) I built 3.6 from 3.4 config via make oldconfig, and,
b) I checked what crypto modules get loaded under 3.4 and loaded them
under 3.6 before attempting to run cryptsetup. Those are:
Module Size Used by
sha256_generic 10207 0
cryptd 8665 0
aes_x86_64 7614 0
aes_generic 26764 1 aes_x86_64
I am not sure module auto-loading for crypto works under 3.6 because if
I just run the cryptsetup command none of the above gets loaded.
But I repeat, even if I load the required modules before hand things do
not work.
Kernel says this:
device-mapper: table: 252:1: crypt: Error allocating crypto tfm
device-mapper: ioctl: error adding target to table
And strace on cryptsetup says there DM ioctls are issued:
ioctl(3, DM_VERSION, 0x1d65db0) = 0
ioctl(3, DM_LIST_VERSIONS, 0x1d65d20) = 0
ioctl(3, DM_TABLE_STATUS, 0x1d66730) = -1 ENXIO (No such device or
address)
ioctl(3, DM_DEV_CREATE, 0x1d78290) = 0
ioctl(3, DM_TABLE_LOAD, 0x1d78290) = -1 ENOENT (No such file or directory)
ioctl(3, DM_DEV_REMOVE, 0x1d781d0) = 0
Perhaps I am missing something obvious?
Thanks,
Tvrtko
next reply other threads:[~2012-10-20 20:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-20 20:44 Tvrtko Ursulin [this message]
2012-10-21 9:53 ` [dm-crypt] cryptsetup not working under 3.6 - regression from 3.4? Milan Broz
2012-10-21 12:03 ` Tvrtko Ursulin
2012-10-21 12:20 ` Zdenek Kaspar
2012-10-21 12:36 ` Tvrtko Ursulin
2012-10-21 19:29 ` Milan Broz
2012-10-21 20:03 ` Tvrtko Ursulin
2012-10-22 14:27 ` Ondrej Kozina
2012-10-29 19:31 ` Tvrtko Ursulin
2012-10-29 19:47 ` Milan Broz
2012-10-29 20:14 ` Tvrtko Ursulin
2012-10-29 20:45 ` [dm-crypt] cryptsetup not working under 3.6 - RT patch set seem to break it Tvrtko Ursulin
2012-10-29 23:51 ` Thomas Gleixner
2012-10-30 9:40 ` Uwe Kleine-König
2012-10-30 9:55 ` Milan Broz
2012-10-30 15:27 ` [dm-crypt] [PATCH] Fix crypto api init for 3.6.4-rt10 Milan Broz
2012-10-30 17:57 ` Thomas Gleixner
2012-10-30 20:35 ` Uwe Kleine-König
2012-10-30 18:24 ` Tvrtko Ursulin
2012-10-29 20:48 ` [dm-crypt] cryptsetup not working under 3.6 - regression from 3.4? Milan Broz
2012-10-21 10:00 ` Heinz Diehl
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=50830D33.5050807@ursulin.net \
--to=tvrtko@ursulin.net \
--cc=dm-crypt@saout.de \
--cc=linux-kernel@vger.kernel.org \
/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