[pkg-cryptsetup-devel] Bug#878031: Bug#878031: cryptsetup: Freeze while typing decryption password
Jonas Meurer
jonas at freesources.org
Tue Oct 17 21:59:49 UTC 2017
Hi Doug,
please send a copy of your replies to the bugreport (use reply to all),
so others than me (e.g. co-maintainers of the package) can read them as
well.
Am 10.10.2017 um 23:19 schrieb Doug S:
> Should I try "cryptsetup open /dev/sda2 cryptolvm --debug" ? I really
> don't know the command. It's what the Debian installer sets by default.
> But how could I open the device at runtime? Debian needs the partition
> to be open in order to keep running, right? How would I close it and
> open again?
So you're talking about the disk unlocking that's happening early in the
boot process? Apparently you have your root disk encrypted so the
unlocking happens in initramfs.
In that case you're right, it's impossible to re-lock and re-unlock the
device while running the system.
In case that you're able to, please do the following:
* boot your system with the kernel commandline 'break=top'. An initramfs
emergency shell should be spawned.
* Inside the initramfs emergency shell, run the cryptsetup command
manually:
# cryptsetup --debug luksOpen \
UUID=e12ee94c-924e-43c2-8578-276388731e95 sda3_crypt
* Save the output to some persistant storage and send it to us.
The fact that you encounter the same freeze with Fedora sounds
suspicious. Probably it's some hardware issues?
You could also remove the 'quiet' kernel commandline option and see
whether you see any useful boot logging messages.
Cheers,
jonas
> 2017-10-08 19:57 GMT-03:00 Jonas Meurer <jonas at freesources.org
> <mailto:jonas at freesources.org>>:
>
> Hi Doug,
>
> Am 08.10.2017 um 23:42 schrieb Doug S.:
> > As I begin typing the first characters of my decryption
> password, the prompt
> > seems to freeze and ignore some of those characters, which leads
> to typing the
> > wrong password every first attempt. It does not happen again for the
> > consecutive attempts.
> >
> > I do not use Plymouth in Debian. This is also reproducible in Fedora
> > Workstation 26 (with Plymouth, which lets me see the freeze
> happening).
>
> Can you please provide the exact commands that you use to unlock your
> dm-drypt volume? Also, please run them with '--debug' and attach the
> output.
>
> Cheers
> jonas
>
> > -- Package-specific info:
> > -- /proc/cmdline
> > BOOT_IMAGE=/vmlinuz-4.9.0-4-amd64 root=/dev/mapper/alq14--vg-root
> ro quiet
> >
> > -- /etc/crypttab
> > sda3_crypt UUID=e12ee94c-924e-43c2-8578-276388731e95 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/alq14--vg-root / ext4
> errors=remount-ro 0 1
> > # /boot was on /dev/sda2 during installation
> > UUID=d8773f5e-4431-4ee2-bdcf-309fd1dfd507 /boot ext2
> defaults 0 2
> > # /boot/efi was on /dev/sda1 during installation
> > UUID=F673-568B /boot/efi vfat umask=0077 0 1
> > /dev/mapper/alq14--vg-home /home ext4 defaults
> 0 2
> > /dev/mapper/alq14--vg-swap_1 none swap sw
> 0 0
> >
> > -- lsmod
> > Module Size Used by
> > fuse 98304 3
> > ctr 16384 4
> > ccm 20480 2
> > nls_ascii 16384 1
> > nls_cp437 20480 1
> > vfat 20480 1
> > fat 69632 1 vfat
> > snd_hda_codec_hdmi 49152 1
> > iTCO_wdt 16384 0
> > iTCO_vendor_support 16384 1 iTCO_wdt
> > dell_wmi 16384 0
> > arc4 16384 2
> > sparse_keymap 16384 1 dell_wmi
> > rtsx_usb_ms 20480 0
> > intel_rapl 20480 0
> > x86_pkg_temp_thermal 16384 0
> > intel_powerclamp 16384 0
> > ath9k 94208 0
> > dell_led 16384 1
> > ath9k_common 32768 1 ath9k
> > coretemp 16384 0
> > kvm_intel 192512 0
> > ath9k_hw 446464 2 ath9k,ath9k_common
> > dell_laptop 20480 0
> > dell_smbios 16384 3 dell_wmi,dell_led,dell_laptop
> > dcdbas 16384 1 dell_smbios
> > i915 1232896 21
> > ath 32768 3 ath9k_hw,ath9k,ath9k_common
> > memstick 20480 1 rtsx_usb_ms
> > kvm 589824 1 kvm_intel
> > mac80211 671744 1 ath9k
> > dell_smm_hwmon 16384 0
> > irqbypass 16384 1 kvm
> > intel_cstate 16384 0
> > joydev 20480 0
> > intel_uncore 118784 0
> > drm_kms_helper 155648 1 i915
> > efi_pstore 16384 0
> > evdev 24576 18
> > snd_hda_codec_realtek 90112 1
> > intel_rapl_perf 16384 0
> > pcspkr 16384 0
> > serio_raw 16384 0
> > hid_multitouch 20480 0
> > snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
> > efivars 20480 1 efi_pstore
> > drm 360448 8 i915,drm_kms_helper
> > cfg80211 589824 4 mac80211,ath9k,ath,ath9k_common
> > snd_hda_intel 36864 10
> > sg 32768 0
> > lpc_ich 24576 0
> > i2c_algo_bit 16384 1 i915
> > snd_hda_codec 135168 4
> snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
> > mei_me 36864 0
> > snd_hda_core 81920 5
> snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
> > snd_hwdep 16384 1 snd_hda_codec
> > mei 102400 1 mei_me
> > snd_soc_rt5640 118784 0
> > snd_soc_ssm4567 16384 0
> > snd_soc_rl6231 16384 1 snd_soc_rt5640
> > shpchp 36864 0
> > wmi 16384 2 dell_wmi,dell_led
> > battery 20480 0
> > snd_soc_core 212992 2 snd_soc_ssm4567,snd_soc_rt5640
> > snd_compress 20480 1 snd_soc_core
> > snd_pcm 110592 7
> snd_hda_intel,snd_hda_codec,snd_hda_core,snd_soc_rt5640,snd_hda_codec_hdmi,snd_soc_core
> > video 40960 3 dell_wmi,dell_laptop,i915
> > dw_dmac 16384 0
> > snd_soc_sst_acpi 16384 0
> > dw_dmac_core 24576 1 dw_dmac
> > elan_i2c 36864 0
> > snd_soc_sst_match 16384 1 snd_soc_sst_acpi
> > snd_timer 32768 1 snd_pcm
> > snd 86016 29
> snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
> > dell_rbtn 16384 0
> > soundcore 16384 1 snd
> > acpi_als 16384 0
> > rfkill 24576 6 dell_laptop,dell_rbtn,cfg80211
> > kfifo_buf 16384 1 acpi_als
> > ac 16384 0
> > acpi_pad 24576 0
> > industrialio 69632 2 acpi_als,kfifo_buf
> > button 16384 1 i915
> > parport_pc 28672 0
> > ppdev 20480 0
> > lp 20480 0
> > parport 49152 3 lp,parport_pc,ppdev
> > efivarfs 16384 1
> > ip_tables 24576 0
> > x_tables 36864 1 ip_tables
> > autofs4 40960 2
> > ext4 585728 3
> > crc16 16384 1 ext4
> > jbd2 106496 1 ext4
> > crc32c_generic 16384 0
> > fscrypto 28672 1 ext4
> > ecb 16384 0
> > mbcache 16384 4 ext4
> > algif_skcipher 20480 0
> > af_alg 16384 1 algif_skcipher
> > rtsx_usb_sdmmc 28672 0
> > rtsx_usb 24576 2 rtsx_usb_sdmmc,rtsx_usb_ms
> > mfd_core 16384 2 lpc_ich,rtsx_usb
> > hid_generic 16384 0
> > usbhid 53248 0
> > dm_crypt 24576 1
> > dm_mod 118784 12 dm_crypt
> > sd_mod 45056 4
> > i2c_hid 20480 0
> > hid 122880 5
> i2c_hid,hid_generic,usbhid,hid_multitouch
> > crct10dif_pclmul 16384 0
> > crc32_pclmul 16384 0
> > crc32c_intel 24576 4
> > ghash_clmulni_intel 16384 0
> > aesni_intel 167936 7
> > aes_x86_64 20480 1 aesni_intel
> > lrw 16384 1 aesni_intel
> > gf128mul 16384 1 lrw
> > glue_helper 16384 1 aesni_intel
> > ablk_helper 16384 1 aesni_intel
> > cryptd 24576 4
> ablk_helper,ghash_clmulni_intel,aesni_intel
> > ahci 36864 3
> > libahci 32768 1 ahci
> > psmouse 135168 0
> > libata 249856 2 ahci,libahci
> > ehci_pci 16384 0
> > ehci_hcd 81920 1 ehci_pci
> > xhci_pci 16384 0
> > scsi_mod 225280 3 sd_mod,libata,sg
> > i2c_i801 24576 0
> > i2c_smbus 16384 1 i2c_i801
> > xhci_hcd 188416 1 xhci_pci
> > r8169 81920 0
> > mii 16384 1 r8169
> > usbcore 249856 6
> usbhid,ehci_hcd,xhci_pci,rtsx_usb,xhci_hcd,ehci_pci
> > usb_common 16384 1 usbcore
> > thermal 20480 0
> > sdhci_acpi 16384 0
> > sdhci 45056 1 sdhci_acpi
> > mmc_core 147456 3 rtsx_usb_sdmmc,sdhci,sdhci_acpi
> > i2c_designware_platform 16384 0
> > i2c_designware_core 20480 1 i2c_designware_platform
> >
> >
> > -- System Information:
> > Debian Release: 9.2
> > APT prefers stable-updates
> > APT policy: (500, 'stable-updates'), (500, 'stable')
> > Architecture: amd64 (x86_64)
> > Foreign Architectures: i386
> >
> > Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
> > Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8),
> LANGUAGE=pt_BR.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > Init: systemd (via /run/systemd/system)
> >
> > Versions of packages cryptsetup depends on:
> > ii cryptsetup-bin 2:1.7.3-4
> > ii debconf [debconf-2.0] 1.5.61
> > ii dmsetup 2:1.02.137-2
> > ii libc6 2.24-11+deb9u1
> >
> > Versions of packages cryptsetup recommends:
> > ii busybox 1:1.22.0-19+b3
> > ii console-setup 1.164
> > ii initramfs-tools [linux-initramfs-tool] 0.130
> > ii kbd 2.0.3-2+b1
> >
> > Versions of packages cryptsetup suggests:
> > ii dosfstools 4.1-1
> > pn keyutils <none>
> > ii liblocale-gettext-perl 1.07-3+b1
> >
> > -- debconf information:
> > cryptsetup/prerm_active_mappings: true
> >
> > _______________________________________________
> > pkg-cryptsetup-devel mailing list
> > pkg-cryptsetup-devel at lists.alioth.debian.org
> <mailto:pkg-cryptsetup-devel at lists.alioth.debian.org>
> >
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cryptsetup-devel
> <http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cryptsetup-devel>
> >
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 866 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20171017/0649217e/attachment.sig>
More information about the pkg-cryptsetup-devel
mailing list