David Härdeman wrote:
On Tue, Oct 02, 2007 at 10:10:40PM +0100, Dick Middleton wrote:
David Härdeman wrote:
On Mon, October 1, 2007 21:16, Dick Middleton wrote:
I have a curious effect; sometimes I get an error with luksOpen such as
this:

Failed to setup dm-crypt key mapping.

The first message is usually reported when a module is missing, but then
it is curious that it would work later.

This is the last of some 5 encrypted partitions that are opened. The main difference is that it's on a different physical device.

Oh, I see, then the tests I suggested are not relevant.
(please keep the bug report address in the CC by the way)

Oops, sorry about that.

It sounds very much like this bug:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/105266

It does look similar.

Could you please try running crypsetup under strace and capture a failed invocation so that we can compare them?

Is this helpful?

 strace echo -n xxxxx| cryptsetup luksOpen /dev/mapper/vg02-devil devil
execve("/bin/echo", ["echo", "-n", "xxxxx"], [/* 33 vars */]) = 0
brk(0)                                  = 0x804d000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f27000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=79181, ...}) = 0
mmap2(NULL, 79181, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7f13000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260a\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1335912, ...}) = 0
mmap2(NULL, 1340944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf7dcb000 mmap2(0xf7f0d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x142) = 0xf7f0d000 mmap2(0xf7f10000, 9744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf7f10000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7dca000 set_thread_area({entry_number:-1 -> 12, base_addr:0xf7dca6b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xf7f0d000, 4096, PROT_READ)   = 0
munmap(0xf7f13000, 79181)               = 0
brk(0)                                  = 0x804d000
brk(0x806e000)                          = 0x806e000
fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f26000
write(1, "xxxxx", 5)                    = 5
close(1)                                = 0
munmap(0xf7f26000, 4096)                = 0
exit_group(0)                           = ?
Process 11295 detached
Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-plain cipher spec and verify that /dev/mapper/vg02-devil contains at least 261 sectors.
Failed to read from key storage
Command failed: No key available with this passphrase.

Dick






Reply via email to