[pkg-cryptsetup-devel] Bug#662768: [cryptsetup] New cryptsetup version chokes on old LUKS header

Konrad Zimmermann k.zimmi at gmx.de
Tue Mar 6 09:38:45 UTC 2012


Package: cryptsetup
Version: 2:1.4.1-2
Severity: normal

--- Please enter the report below this line. ---

I am running 3 LUKS encrypted disks in a software RAID5.
After upgrading to version 2:1.4.1-2 of cryptsetup

cryptsetup luksOpen /dev/sdb sdb_crypt

on any of these disks failed, returning the error

LUKS keyslot 4 is invalid.
LUKS keyslot 5 is invalid.

On the devices in question, only the keyslots 0 and 1 are used and if I
remember correctly, slots 4 and 5 were never in use.
Opening an encrypted container file on a different disk worked just fine.
Reverting back to version 2:1.1.3-4sqeeze2 solved the problem for the
time being.

Kind regards

Konrad

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.2.0-1-amd64

Debian Release: wheezy/sid
  990 testing         security.debian.org
  990 testing         ftp.de.debian.org
  990 testing         debian.netcologne.de
  500 unstable        ftp.de.debian.org
  500 unstable        debian.netcologne.de
  500 stable          ftp.de.debian.org
  500 stable          dl.google.com
  110 lucid           archive.canonical.com

--- Package information. ---
Depends                     (Version) | Installed
=====================================-+-===============
libc6                        (>= 2.3) | 2.13-26
libdevmapper1.02.1     (>= 2:1.02.36) | 2:1.02.67-2
libpopt0                    (>= 1.16) | 1.16-3
libuuid1                    (>= 2.16) | 2.20.1-1.2
dmsetup                               | 2:1.02.67-2


Package's Recommends field is empty.

Suggests                  (Version) | Installed
===================================-+-===========
udev                                | 175-3.1
initramfs-tools          (>= 0.91)  | 0.100
 OR linux-initramfs-tool            |
busybox                             |
dosfstools                          | 3.0.12-1



--- Output from package bug script ---
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.2.0-1-amd64
root=UUID=4e38c9e7-1d79-4f37-9c1a-8cc267e10fea ro quiet

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>

-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
UUID=4e38c9e7-1d79-4f37-9c1a-8cc267e10fea /               ext4
noatime,relatime,errors=remount-ro 0       1
UUID=06466b7f-1546-41ef-b66c-9215ae95451f swap            swap
defaults                           0       0
UUID=69875fcb-2949-4081-952e-5fcff3599537 /home           ext4
defaults,noatime,relatime          0       0
UUID=38491ac6-e929-4254-ae61-f3c1f102bf9b /multimedia     ext4
defaults,noatime,relatime          0       0
/multimedia/.tmp                          /tmp            ext4
bind,noexec,nosuid,nogid           0       0
# /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/cdrom3        /media/cdrom0   udf,iso9660 user,noauto     0       0
# /dev/sr1        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/cdrom2        /media/cdrom1   udf,iso9660 user,noauto     0       0
#localhost:/multimedia /media/multimedia nfs defaults,user 0 0

-- lsmod
Module                  Size  Used by
raid456                48356  1
async_raid6_recov      12526  1 raid456
async_pq               12605  2 raid456,async_raid6_recov
raid6_pq               82591  2 async_raid6_recov,async_pq
async_xor              12422  3 raid456,async_raid6_recov,async_pq
xor                    12605  1 async_xor
async_memcpy           12387  2 raid456,async_raid6_recov
async_tx               12604  5
raid456,async_raid6_recov,async_pq,async_xor,async_memcpy
md_mod                 87742  2 raid456
radeon                643235  0
ttm                    48725  1 radeon
drm_kms_helper         27227  1 radeon
drm                   167670  3 radeon,ttm,drm_kms_helper
i2c_algo_bit           12841  1 radeon
power_supply           13475  1 radeon
parport_pc             22364  0
ppdev                  12763  0
lp                     17149  0
parport                31858  3 parport_pc,ppdev,lp
powernow_k8            17574  0
mperf                  12453  1 powernow_k8
cpufreq_stats          12866  0
cpufreq_powersave      12454  0
cpufreq_conservative    13147  0
cpufreq_userspace      12576  0
nfsd                  211858  13
nfs                   312062  0
lockd                  67328  2 nfsd,nfs
fscache                36739  1 nfs
auth_rpcgss            37143  2 nfsd,nfs
nfs_acl                12511  2 nfsd,nfs
sunrpc                173671  19 nfsd,nfs,lockd,auth_rpcgss,nfs_acl
ext2                   59231  0
sha256_generic         16797  6
cryptd                 14517  0
aes_x86_64             16796  36
aes_generic            33026  1 aes_x86_64
cbc                    12754  18
fuse                   61981  1
dm_crypt               22586  3
kvm_amd                47218  0
kvm                   287572  1 kvm_amd
w83627ehf              31187  0
hwmon_vid              12430  1 w83627ehf
loop                   22641  0
snd_hda_codec_hdmi     30783  1
snd_hda_codec_via      41160  1
snd_hda_intel          26345  4
snd_hda_codec          77994  3
snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
sp5100_tco             12900  0
snd_hwdep              13186  1 snd_hda_codec
snd_pcm_oss            41081  0
snd_mixer_oss          17916  1 snd_pcm_oss
snd_pcm                63900  4
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
i2c_piix4              12536  0
snd_timer              22917  1 snd_pcm
snd                    52850  17
snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
i2c_core               23876  5
radeon,drm_kms_helper,drm,i2c_algo_bit,i2c_piix4
soundcore              13065  1 snd
shpchp                 31293  0
edac_core              35258  0
edac_mce_amd           17103  0
evdev                  17562  7
k10temp                12611  0
snd_page_alloc         13003  2 snd_hda_intel,snd_pcm
pci_hotplug            27114  1 shpchp
processor              28059  1 powernow_k8
thermal_sys            18040  1 processor
wmi                    13243  0
pcspkr                 12579  0
ext4                  350557  3
mbcache                13065  2 ext2,ext4
jbd2                   62015  1 ext4
crc16                  12343  1 ext4
dm_mod                 63545  15 dm_crypt
usbhid                 36379  0
sr_mod                 21899  0
hid                    81288  1 usbhid
cdrom                  35401  1 sr_mod
sd_mod                 36136  5
crc_t10dif             12348  1 sd_mod
ohci_hcd               22467  0
fglrx                3059110  0
ahci                   24997  3
sata_via               12971  1
libahci                22860  1 ahci
libata                140589  3 ahci,sata_via,libahci
scsi_mod              162417  3 sr_mod,sd_mod,libata
firewire_ohci          35772  0
ehci_hcd               40215  0
button                 12937  1 fglrx
r8169                  46980  0
mii                    12675  1 r8169
firewire_core          48407  1 firewire_ohci
crc_itu_t              12347  1 firewire_core
usbcore               128498  4 usbhid,ohci_hcd,ehci_hcd
usb_common             12354  1 usbcore


-- 
For encryptet contact use:

Key-ID: 17631C0B
Key-Server: subkeys.pgp.net
Key-Fingerprint: 14C2 8C85 488D A7C0 38B5 47A7 9E92 87F6 1763 1C0B





More information about the pkg-cryptsetup-devel mailing list