linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cryptsetup not working under 3.6  - regression from 3.4?
@ 2012-10-20 20:44 Tvrtko Ursulin
  2012-10-21  9:53 ` [dm-crypt] " Milan Broz
  0 siblings, 1 reply; 18+ messages in thread
From: Tvrtko Ursulin @ 2012-10-20 20:44 UTC (permalink / raw)
  To: dm-crypt; +Cc: linux-kernel


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-10-30 20:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-20 20:44 cryptsetup not working under 3.6 - regression from 3.4? Tvrtko Ursulin
2012-10-21  9:53 ` [dm-crypt] " Milan Broz
2012-10-21 12:03   ` Tvrtko Ursulin
     [not found]     ` <5083E87B.2080908@gmail.com>
2012-10-21 12:36       ` Tvrtko Ursulin
2012-10-21 19:29         ` Milan Broz
2012-10-21 20:03           ` Tvrtko Ursulin
2012-10-29 19:31             ` Tvrtko Ursulin
2012-10-29 19:47               ` [dm-crypt] " 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                         ` [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).