Package: cryptsetup Version: 2:1.3.0-2 Severity: normal Tags: sid Since the upgrade to cryptsetup 1.3.0, the cryptdisks init script fails to start my dm-crypt encrypted device. Researching it deeper, I've found that the following command (which the init script uses) doesn't behave as it used to: /lib/cryptsetup/askpass some_prompt | cryptsetup -c aes-cbc-plain -h ripemd160 --key-file=- homes /dev/mapper/myvg-homes
It asks for a password, then fails with the following error: "Cannot read requested amount of data". However, when requesting the password from terminal (as opposed to stdin), with the following command, everything works: cryptsetup -c aes-cbc-plain -h ripemd160 --key-file=- homes /dev/mapper/myvg-homes I get the prompt, put the password, and cryptsetup succeeds setting up the dm-crypt device. I don't use luks, nor a real key file, but a simple passphrase. -- Package-specific info: -- /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-2.6.38-2-amd64 root=/dev/mapper/myvg-rootvol ro -- /etc/crypttab # <target name> <source device> <key file> <options> #homes /dev/mapper/myvg-homevol none cipher=aes-cbc-plain homes /dev/mapper/myvg-homevol none cipher=aes-cbc-plain,hash=ripemd160 -- /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 LABEL=/ / ext4 errors=remount-ro 0 1 LABEL=swap none swap sw 0 0 LABEL=/home /home ext4 defaults 0 0 LABEL=ubunturoot /mnt/ubuntu/ ext3 defaults 0 1 LABEL=/data /data ext4 defaults 0 1 -- lsmod Module Size Used by sha256_generic 16797 0 cryptd 14463 0 aes_x86_64 16796 3 aes_generic 37122 1 aes_x86_64 cbc 12747 2 ip6table_filter 12540 0 ip6_tables 21907 1 ip6table_filter iptable_filter 12536 0 ip_tables 21818 1 iptable_filter ebtable_nat 12580 0 ebtables 26089 1 ebtable_nat x_tables 18839 5 ip6table_filter,ip6_tables,iptable_filter,ip_tables,ebtables acpi_cpufreq 12849 1 mperf 12411 1 acpi_cpufreq cpufreq_stats 12713 0 cpufreq_powersave 12454 0 cpufreq_conservative 13878 0 cpufreq_userspace 12576 0 nfsd 258504 11 lockd 70844 1 nfsd nfs_acl 12511 1 nfsd auth_rpcgss 36692 1 nfsd sunrpc 162075 17 nfsd,lockd,nfs_acl,auth_rpcgss exportfs 12591 1 nfsd parport_pc 22191 0 ppdev 12725 0 lp 17190 0 parport 31650 3 parport_pc,ppdev,lp sco 17555 2 rfcomm 32744 0 bnep 17424 2 l2cap 40163 6 rfcomm,bnep autofs4 27310 1 snd_hrtimer 12604 1 kvm_intel 49947 0 binfmt_misc 12914 1 kvm 263288 1 kvm_intel uinput 17392 1 ib_iser 31389 0 rdma_cm 31180 1 ib_iser ib_cm 30954 1 rdma_cm iw_cm 13089 1 rdma_cm ib_sa 26388 2 rdma_cm,ib_cm ib_mad 35863 2 ib_cm,ib_sa ib_core 47482 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad ib_addr 12838 1 rdma_cm iscsi_tcp 17569 0 libiscsi_tcp 17399 1 iscsi_tcp libiscsi 35689 3 ib_iser,iscsi_tcp,libiscsi_tcp scsi_transport_iscsi 29751 4 ib_iser,iscsi_tcp,libiscsi fuse 61520 1 ext3 112218 1 jbd 41698 1 ext3 tp_smapi 23428 0 thinkpad_ec 12806 1 tp_smapi nf_conntrack_ftp 12572 0 nf_conntrack 55903 1 nf_conntrack_ftp firewire_sbp2 17825 0 loop 22515 0 dm_crypt 22256 1 snd_hda_codec_analog 77712 1 snd_hda_intel 25946 2 arc4 12458 2 ecb 12737 2 snd_hda_codec 67647 2 snd_hda_codec_analog,snd_hda_intel snd_hwdep 13148 1 snd_hda_codec snd_pcm_oss 40662 0 snd_mixer_oss 17905 1 snd_pcm_oss snd_pcm 67327 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss iwlagn 141628 0 i915 315266 2 iwlcore 59776 1 iwlagn snd_seq_midi 12848 0 snd_rawmidi 22963 1 snd_seq_midi drm_kms_helper 26893 1 i915 snd_seq_midi_event 13316 1 snd_seq_midi snd_seq 44678 3 snd_seq_midi,snd_seq_midi_event drm 165567 3 i915,drm_kms_helper mac80211 180997 2 iwlagn,iwlcore snd_timer 22658 3 snd_hrtimer,snd_pcm,snd_seq snd_seq_device 13155 3 snd_seq_midi,snd_rawmidi,snd_seq i2c_i801 16870 0 tpm_tis 13125 0 i2c_algo_bit 12834 1 i915 tpm 17756 1 tpm_tis pcmcia 32719 0 thinkpad_acpi 60656 0 ac 12624 0 nvram 12997 1 thinkpad_acpi pcspkr 12579 0 snd 52280 17 snd_hda_codec_analog,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,thinkpad_acpi psmouse 55199 0 btusb 17417 0 cfg80211 126017 3 iwlagn,iwlcore,mac80211 tpm_bios 12903 1 tpm i2c_core 23725 5 i915,drm_kms_helper,drm,i2c_i801,i2c_algo_bit battery 13109 0 evdev 17475 8 power_supply 13475 2 ac,battery video 17553 1 i915 yenta_socket 22601 0 soundcore 13014 1 snd bluetooth 55503 7 sco,rfcomm,bnep,l2cap,btusb snd_page_alloc 12969 2 snd_hda_intel,snd_pcm rfkill 19014 5 thinkpad_acpi,cfg80211,bluetooth pcmcia_rsrc 17483 1 yenta_socket serio_raw 12878 0 pcmcia_core 18333 3 pcmcia,yenta_socket,pcmcia_rsrc processor 27431 3 acpi_cpufreq button 12994 1 i915 ext4 285166 3 mbcache 12930 2 ext3,ext4 jbd2 65157 1 ext4 crc16 12343 2 l2cap,ext4 btrfs 428821 0 zlib_deflate 25466 1 btrfs crc32c 12656 1 libcrc32c 12426 1 btrfs dm_mod 62467 27 dm_crypt sd_mod 35501 4 crc_t10dif 12348 1 sd_mod ata_generic 12479 0 ata_piix 25319 3 sdhci_pci 13184 0 libata 147240 2 ata_generic,ata_piix uhci_hcd 26290 0 firewire_ohci 30887 0 sdhci 21727 1 sdhci_pci ehci_hcd 39529 0 firewire_core 47683 2 firewire_sbp2,firewire_ohci scsi_mod 161457 7 ib_iser,iscsi_tcp,libiscsi,scsi_transport_iscsi,firewire_sbp2,sd_mod,libata mmc_core 58589 1 sdhci crc_itu_t 12347 1 firewire_core usbcore 122908 4 btusb,uhci_hcd,ehci_hcd e1000e 123965 0 thermal 17330 0 thermal_sys 17939 3 video,processor,thermal nls_base 12753 1 usbcore -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cryptsetup depends on: ii dmsetup 2:1.02.63-3 The Linux Kernel Device Mapper use ii libc6 2.13-4 Embedded GNU C Library: Shared lib ii libcryptsetup1 2:1.3.0-2 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.18.4-2 Tiny utilities for small and embed ii dosfstools 3.0.9-1 utilities for making and checking ii initramfs-tools [linux-initra 0.99 tools for generating an initramfs ii liblocale-gettext-perl 1.05-6 Using libc functions for internati ii udev 168-2 /dev/ and hotplug management daemo - -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org