[pkg-cryptsetup-devel] Bug#610366: cryptsetup luksAddKey returns 0 even though no key slot was allocated
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Jan 17 16:33:44 UTC 2011
Package: cryptsetup
Version: 2:1.2.0-1
Severity: normal
my prompt is prefixed with the return code of the previous command:
0 pip:~# cryptsetup --master-key-file y luksAddKey /dev/mapper/vg_pip0-testy
Cannot read 32 bytes from keyfile y.
0 pip:~#
Clearly, this command did not allocate a new keyslot -- it should
return a non-zero value to indicate failure.
--dkg
-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.37-trunk-686 root=/dev/mapper/vg_pip0-root ro verbose
-- /etc/crypttab
md0_crypt /dev/md0 none luks
-- /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/vg_pip0-root / ext3 defaults,noatime,errors=remount-ro 0 1
# /dev/sda1 /boot ext3 defaults,noatime 0 2
UUID=775781da-4b41-4fb7-b95a-6ed507fdac3f /boot ext3 defaults,noatime 0 2
/dev/mapper/vg_pip0-home /home ext3 defaults,noatime 0 2
/dev/mapper/vg_pip0-usr /usr ext3 defaults,noatime 0 2
/dev/mapper/vg_pip0-var /var ext3 defaults,noatime 0 2
/dev/mapper/vg_pip0-swap swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,mode=1777,nosuid,nodev 0 0
/dev/mapper/vg_pip0-srv /srv ext3 defaults,noatime,nosuid,nodev,acl 0 2
/dev/mapper/vg_pip0-ftp /srv/ftp ext3 defaults,noatime,nosuid,nodev,acl 0 2
-- lsmod
Module Size Used by
btrfs 400433 0
zlib_deflate 15662 1 btrfs
crc32c 2180 1
libcrc32c 790 1 btrfs
ufs 55346 0
qnx4 5024 0
hfsplus 61407 0
hfs 32992 0
minix 18061 0
ntfs 158987 0
vfat 6563 0
msdos 5252 0
fat 34874 2 vfat,msdos
jfs 131712 0
xfs 522999 0
exportfs 2658 1 xfs
reiserfs 172842 0
ext4 245952 0
jbd2 48343 1 ext4
ext2 45841 0
arc4 1002 2
ecb 1413 2
sco 5975 2
bridge 50129 0
stp 1020 1 bridge
bnep 7759 2
l2cap 26630 3 bnep
crc16 1035 2 ext4,l2cap
bluetooth 37745 5 sco,bnep,l2cap
binfmt_misc 4985 1
fuse 47443 1
ath5k 112525 0
ath 10190 1 ath5k
mac80211 148797 1 ath5k
cfg80211 96461 3 ath5k,ath,mac80211
loop 11011 0
snd_hda_codec_realtek 201681 1
snd_hda_intel 16369 0
snd_hda_codec 52089 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 4046 1 snd_hda_codec
snd_pcm_oss 27678 0
snd_mixer_oss 10395 1 snd_pcm_oss
i915 252899 2
snd_pcm 47068 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
joydev 7016 0
snd_seq_midi 3642 0
snd_rawmidi 12645 1 snd_seq_midi
uvcvideo 45808 0
drm_kms_helper 19621 1 i915
snd_seq_midi_event 3762 1 snd_seq_midi
snd_seq 34744 2 snd_seq_midi,snd_seq_midi_event
drm 119262 3 i915,drm_kms_helper
snd_timer 12501 2 snd_pcm,snd_seq
videodev 46086 1 uvcvideo
snd_seq_device 3659 3 snd_seq_midi,snd_rawmidi,snd_seq
v4l1_compat 10382 2 uvcvideo,videodev
eeepc_laptop 10334 0
i2c_algo_bit 3373 1 i915
sparse_keymap 1932 1 eeepc_laptop
i2c_core 13002 5 i915,drm_kms_helper,videodev,drm,i2c_algo_bit
tpm_tis 5405 0
snd 34257 11 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
rfkill 10814 4 bluetooth,cfg80211,eeepc_laptop
psmouse 38594 0
tpm 8175 1 tpm_tis
battery 4286 0
tpm_bios 3649 1 tpm
ac 1692 0
processor 22124 1
shpchp 18083 0
video 9711 1 i915
serio_raw 2898 0
power_supply 5587 2 battery,ac
evdev 6160 25
soundcore 3434 1 snd
pci_hotplug 16971 2 eeepc_laptop,shpchp
button 3610 1 i915
rng_core 2298 0
output 1220 1 video
snd_page_alloc 5061 2 snd_hda_intel,snd_pcm
ext3 92364 7
jbd 32072 1 ext3
mbcache 3784 3 ext4,ext2,ext3
sha256_generic 9077 4
aes_i586 6828 4
aes_generic 25766 1 aes_i586
cbc 1975 2
dm_crypt 8907 2
dm_mod 47934 33 dm_crypt
raid1 16173 1
md_mod 72679 2 raid1
usb_storage 30371 0
uas 5461 0
sd_mod 24974 3
crc_t10dif 1020 1 sd_mod
ata_generic 2183 0
ahci 16581 0
libahci 13246 1 ahci
uhci_hcd 15850 0
ata_piix 17551 2
ehci_hcd 28331 0
libata 123514 4 ata_generic,ahci,libahci,ata_piix
scsi_mod 128395 4 usb_storage,uas,sd_mod,libata
usbcore 95377 7 uvcvideo,usb_storage,uas,uhci_hcd,ehci_hcd
thermal 6106 0
atl2 17925 0
thermal_sys 9328 3 video,processor,thermal
nls_base 4521 7 hfsplus,hfs,ntfs,vfat,fat,jfs,usbcore
-- System Information:
Debian Release: 6.0
APT prefers testing
APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.37-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cryptsetup depends on:
ii dmsetup 2:1.02.48-4 The Linux Kernel Device Mapper use
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
ii libcryptsetup1 2:1.2.0-1 libcryptsetup shared library
ii libpopt0 1.16-1 lib for parsing cmdline parameters
cryptsetup recommends no packages.
Versions of packages cryptsetup suggests:
ii busybox 1:1.17.1-8 Tiny utilities for small and embed
ii dosfstools 3.0.9-1 utilities for making and checking
ii initramfs-tools [linux-initra 0.98.7 tools for generating an initramfs
ii udev 164-3 /dev/ and hotplug management daemo
-- no debconf information
More information about the pkg-cryptsetup-devel
mailing list