[pkg-cryptsetup-devel] Bug#755074: cryptsetup: Cryptsetup prompting for password twice in parallel, preventing from entering password

Shachar Shemesh shachar at debian.org
Thu Jul 17 12:43:45 UTC 2014


Package: cryptsetup
Version: 2:1.6.4-4
Severity: important

Dear Maintainer,

I have a LUKS disk (not necessary for the boot of the system). The disk was installed on wheezy. On Wheezy, it would ask for the password
for the disk during boot.

When I upgraded the system to Jessie, I noticed that the first time I input the password, it would always fail. I noticed that
two password prompts would show on screen, one interrupted by the other. After I would put in the password prompt, the decryption
would fail, and it would ask again, this time only once. At that point, I could put in the password and the disk would mount
correctly.

I think that the password prompt runs from two different scripts, perhaps to accomodate both initrd and normal startup. I suspect that
the switch to systemd causes the two scripts to run in parallel, causing the trouble I'm experiencing.

Shachar


-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.14-1-amd64 root=/dev/mapper/ssd-root ro quiet

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>
sdb1_crypt UUID=f9971ca4-10c8-43ae-8ffd-f27faaa765a1 none luks

-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
/dev/mapper/ssd-root		/		ext4		noatime,nodiratime,discard,errors=remount-ro	0	1
/dev/mapper/ssd-home		/home		ext4		nodiratime,discard				0	2
/dev/mapper/crypt-swap		none		swap		defaults					0	2
/dev/mapper/crypt-data		/srv/crypt	ext4		noatime,nodiratime				0	2
/dev/mapper/plain-virtual	/srv/virtual	ext4		noatime,nodiratime				0	2
/dev/mapper/plain-cache		/var/cache	ext4		defaults					0	2
/dev/mapper/plain-storage	/srv/storage	ext4		defaults					0	2
/dev/sr0			/media/cdrom0	udf,iso9660	user,noauto					0       0

-- lsmod
Module                  Size  Used by
cfg80211              412187  0 
rfkill                 18867  1 cfg80211
raid6_pq               95238  0 
xor                    21040  0 
ufs                    73486  0 
qnx4                   13036  0 
hfsplus                93258  0 
hfs                    49749  0 
minix                  31387  0 
vfat                   17135  0 
msdos                  17046  0 
fat                    53794  2 vfat,msdos
libcrc32c              12426  0 
pci_stub               12429  1 
vboxpci                18981  0 
vboxnetadp             25443  0 
vboxnetflt             23324  0 
vboxdrv               261792  3 vboxnetadp,vboxnetflt,vboxpci
binfmt_misc            16949  1 
sha256_ssse3           21596  2 
sha256_generic         16804  1 sha256_ssse3
dm_crypt               22595  1 
snd_hda_codec_hdmi     40955  1 
snd_hda_codec_realtek    50301  1 
snd_hda_codec_generic    59065  1 snd_hda_codec_realtek
iTCO_wdt               12831  0 
iTCO_vendor_support    12649  1 iTCO_wdt
hid_generic            12393  0 
usbhid                 44439  0 
hid                    94034  2 hid_generic,usbhid
x86_pkg_temp_thermal    12951  0 
intel_powerclamp       17159  0 
usblp                  17274  0 
evdev                  17445  8 
snd_hda_intel          43768  3 
intel_rapl             17356  0 
snd_hda_codec         100159  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hwdep              13148  1 snd_hda_codec
coretemp               12854  0 
snd_pcm                84566  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
kvm_intel             134712  0 
snd_seq                48834  0 
snd_seq_device         13132  1 snd_seq
kvm                   388171  1 kvm_intel
snd_timer              26614  2 snd_pcm,snd_seq
psmouse                90422  0 
pcspkr                 12595  0 
serio_raw              12849  0 
snd                    61094  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
lpc_ich                20768  0 
mfd_core               12601  1 lpc_ich
shpchp                 31121  0 
i2c_i801               16965  0 
tpm_infineon           16844  0 
tpm_tis                17134  0 
battery                13101  0 
tpm                    27415  2 tpm_tis,tpm_infineon
i915                  718092  4 
soundcore              13026  1 snd
video                  17804  1 i915
drm_kms_helper         39892  1 i915
button                 12944  1 i915
drm                   236561  5 i915,drm_kms_helper
i2c_algo_bit           12751  1 i915
mei_me                 13400  0 
i2c_core               24228  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
mei                    50039  1 mei_me
processor              28221  0 
md_mod                103628  0 
loop                   26605  0 
fuse                   78839  1 
parport_pc             26300  0 
ppdev                  12686  0 
lp                     17074  0 
parport                35749  3 lp,ppdev,parport_pc
autofs4                27383  2 
ext4                  473514  6 
crc16                  12343  1 ext4
mbcache                13082  1 ext4
jbd2                   82560  1 ext4
dm_mod                 89276  24 dm_crypt
sg                     29972  0 
sr_mod                 21898  0 
sd_mod                 44346  5 
cdrom                  39232  1 sr_mod
crc_t10dif             12431  1 sd_mod
crct10dif_pclmul       13387  1 
crct10dif_common       12356  2 crct10dif_pclmul,crc_t10dif
crc32_pclmul           12915  0 
crc32c_intel           21809  1 
ghash_clmulni_intel    12978  0 
ahci                   25099  3 
aesni_intel           151423  3 
aes_x86_64             16719  1 aesni_intel
libahci                27116  1 ahci
lrw                    12757  1 aesni_intel
gf128mul               12970  1 lrw
alx                    36175  0 
glue_helper            12695  1 aesni_intel
mdio                   12599  1 alx
ablk_helper            12572  1 aesni_intel
libata                168945  2 ahci,libahci
cryptd                 14516  4 ghash_clmulni_intel,aesni_intel,ablk_helper
scsi_mod              183017  4 sg,libata,sd_mod,sr_mod
ehci_pci               12472  0 
xhci_hcd              107726  0 
ehci_hcd               48510  1 ehci_pci
usbcore               158411  5 usblp,ehci_hcd,ehci_pci,usbhid,xhci_hcd
usb_common             12440  1 usbcore
fan                    12681  0 
thermal                17468  0 
thermal_sys            27642  6 fan,video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal


-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=he_IL.UTF-8, LC_CTYPE=he_IL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.6.4-4
ii  debconf [debconf-2.0]  1.5.53
ii  dmsetup                2:1.02.85-2
ii  libc6                  2.19-7

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.22.0-6
ii  console-setup                           1.102
ii  initramfs-tools [linux-initramfs-tool]  0.115
ii  kbd                                     1.15.5-1

Versions of packages cryptsetup suggests:
ii  dosfstools              3.0.26-2
pn  keyutils                <none>
ii  liblocale-gettext-perl  1.05-8

-- debconf information:
  cryptsetup/prerm_active_mappings: true



More information about the pkg-cryptsetup-devel mailing list