Package: cryptsetup-suspend Version: 2:2.5.0-3 Severity: normal Dear Maintainer,
After upgrading to 2:2.5.0-3, resume process gets stuck at 'cryptsetup luksResume' on my laptop. The machine has no swap partition, so the method is not hibernate, but suspend to RAM. Steps to reproduce: 1. switch to tty 2. run 'systemctl suspend' 3. resume by pressing power button 4. enter password to unlock /home The process stuck at 4, and I could only kill it by Ctrl+\ and/or run some Magic SyRq commands. The following commit says we no longer need to restart udevd, but for some unknown reason, it appears needed on my machine. The script from the previous revision e9cc9f08 worked fine. https://salsa.debian.org/cryptsetup-team/cryptsetup/-/commit/89b29a3c754bccfcb395dc703993357666391c66 This is the output of 'cryptsetup luksResume', at version 2:2.5.0-3: # cryptsetup 2.5.0 processing "/sbin/cryptsetup -T1 --type=luks --key-file=- --debug luksResume vg0-home" # Verifying parameters for command luksResume. # Running command luksResume. # Locking memory. # Installing SIGINT/SIGTERM handler. # Unblocking interruption on signal. # Allocating crypt device context by device vg0-home. # Initialising device-mapper backend library. # dm version [ opencount flush ] [16384] (*1) # dm versions [ opencount flush ] [16384] (*1) # Detected dm-ioctl version 4.47.0. # Detected dm-crypt version 1.24.0. # Device-mapper backend running with UDEV support enabled. # dm status vg0-home [ opencount noflush ] [16384] (*1) # Releasing device-mapper backend. # Trying to open and read device /dev/mapper/vg0-crypthome with direct-io. # Allocating context for crypt device /dev/mapper/vg0-crypthome. # Trying to open and read device /dev/mapper/vg0-crypthome with direct-io. # Initialising device-mapper backend library. # dm versions [ opencount flush ] [16384] (*1) # dm table vg0-home [ opencount flush securedata ] [16384] (*1) # dm status (254:2) [ opencount noflush ] [16384] (*1) # Trying to open and read device /dev/mapper/vg0-crypthome with direct-io. # dm versions [ opencount flush ] [16384] (*1) # dm deps vg0-home [ opencount flush ] [16384] (*1) # dm table vg0-crypthome [ opencount flush securedata ] [16384] (*1) # Crypto backend (OpenSSL 3.0.5 5 Jul 2022 [default][legacy]) initialized in cryptsetup library version 2.5.0. # Detected kernel Linux 5.19.0-1-amd64 x86_64. # Reloading LUKS2 header (repair disabled). # Acquiring read lock for device /dev/mapper/vg0-crypthome. # Opening lock resource file /run/cryptsetup/L_254:2 # Verifying lock handle for /dev/mapper/vg0-crypthome. # Device /dev/mapper/vg0-crypthome READ lock taken. # Trying to read primary LUKS2 header at offset 0x0. # Opening locked device /dev/mapper/vg0-crypthome # Verifying locked device handle (bdev) # LUKS2 header version 2 of size 16384 bytes, checksum sha256. # Checksum:af81f24962aab09694ca451aa87dc40a151f95de35b53d56144fd0ba8c41d850 (on-disk) # Checksum:af81f24962aab09694ca451aa87dc40a151f95de35b53d56144fd0ba8c41d850 (in-memory) # Trying to read secondary LUKS2 header at offset 0x4000. # Reusing open ro fd on device /dev/mapper/vg0-crypthome # LUKS2 header version 2 of size 16384 bytes, checksum sha256. # Checksum:0d1024f9b1c646b8ff5ca6e805d84011d5c4800dfda0e8537f2c2d3c5fac4b1a (on-disk) # Checksum:0d1024f9b1c646b8ff5ca6e805d84011d5c4800dfda0e8537f2c2d3c5fac4b1a (in-memory) # Device size 800000573440, offset 16777216. # Device /dev/mapper/vg0-crypthome READ lock released. # PBKDF argon2id, time_ms 2000 (iterations 0), max_memory_kb 1048576, parallel_threads 4. # dm versions [ opencount flush ] [16384] (*1) # dm table vg0-home [ opencount flush securedata ] [16384] (*1) # dm status (254:2) [ opencount noflush ] [16384] (*1) # Trying to open and read device /dev/mapper/vg0-crypthome with direct-io. # Resuming volume vg0-home by token (any type) -1. # dm versions [ opencount flush ] [16384] (*1) # dm status vg0-home [ opencount noflush ] [16384] (*1) No usable token is available. # STDIN descriptor passphrase entry requested. # Resuming volume vg0-home. # dm versions [ opencount flush ] [16384] (*1) # dm status vg0-home [ opencount noflush ] [16384] (*1) # Keyslot 0 priority 1 != 2 (required), skipped. # Trying to open LUKS2 keyslot 0. # Running keyslot key derivation. # Reading keyslot area [0x8000]. # Acquiring read lock for device /dev/mapper/vg0-crypthome. # Opening lock resource file /run/cryptsetup/L_254:2 # Verifying lock handle for /dev/mapper/vg0-crypthome. # Device /dev/mapper/vg0-crypthome READ lock taken. # Reusing open ro fd on device /dev/mapper/vg0-crypthome # Device /dev/mapper/vg0-crypthome READ lock released. # Verifying key from keyslot 0, digest 0. # Loading key (64 bytes, type logon) in thread keyring. # dm message vg0-home [ opencount flush securedata ] key set [16384] (*1) # Udev cookie 0xd4d24b3 (semid 2) created --- from here, the log is resureccted from screenshot, so there may be typo --- # Udev cookie 0xd4d24b3 (semid 2) incremented to 1 # Udev cookie 0xd4d24b3 (semid 2) incremented to 2 # Udev cookie 0xd4d24b3 (semid 2) assigned to RESUME task(5) with flags DISABLE_LIBRARY... # dm resume vg0-home [ opencount flush ] [16384] (*1) # vg0-home: Stacking NODE_ADD (254,3) 0:6 0660 [trust_udev] # Udev cookie 0xd4d24b3 (semid 2) decremented to 1 # Udev cookie 0xd4d24b3 (semid 2) waiting for zero -- Package-specific info: -- /proc/cmdline BOOT_IMAGE=/vmlinuz-5.19.0-1-amd64 root=/dev/mapper/vg0-root ro nvme_core.default_ps_max_latency_us=15000 quiet -- /etc/crypttab vg0-home UUID=377a4f32-521a-4a1d-b046-ec1904ebbc47 none luks,discard -- /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). # # systemd generates mount units based on this file, see systemd.mount(5). # Please run 'systemctl daemon-reload' after making changes here. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/vg0-root / ext4 errors=remount-ro 0 1 # /boot was on /dev/nvme0n1p2 during installation UUID=befa79d2-d1b2-45aa-b702-a5f7b529e8fa /boot ext4 defaults 0 2 # /boot/efi was on /dev/nvme0n1p1 during installation UUID=EA1A-5D32 /boot/efi vfat umask=0077 0 1 /dev/mapper/vg0-home /home ext4 defaults 0 2 /dev/mapper/vg0-var /var ext4 defaults 0 2 -- lsmod Module Size Used by rfcomm 90112 4 snd_seq_dummy 16384 0 snd_hrtimer 16384 1 snd_seq 94208 7 snd_seq_dummy snd_seq_device 16384 1 snd_seq 8021q 40960 0 garp 16384 1 8021q stp 16384 1 garp mrp 20480 1 8021q llc 16384 2 stp,garp nvme_fabrics 32768 0 ctr 16384 0 ccm 20480 0 iptable_nat 16384 0 nf_nat 57344 1 iptable_nat iptable_mangle 16384 0 overlay 159744 0 qrtr 49152 4 iptable_filter 16384 0 cmac 16384 3 algif_hash 16384 1 algif_skcipher 16384 1 af_alg 36864 6 algif_hash,algif_skcipher bnep 28672 2 binfmt_misc 24576 1 dm_crypt 61440 1 btusb 65536 0 btrtl 28672 1 btusb btbcm 24576 1 btusb btintel 45056 1 btusb btmtk 16384 1 btusb bluetooth 888832 36 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm nls_ascii 16384 1 nls_cp437 20480 1 vfat 20480 1 fat 86016 1 vfat jitterentropy_rng 16384 1 uvcvideo 131072 0 sha512_ssse3 49152 1 sha512_generic 16384 1 sha512_ssse3 videobuf2_vmalloc 20480 1 uvcvideo videobuf2_memops 20480 1 videobuf2_vmalloc videobuf2_v4l2 36864 1 uvcvideo videobuf2_common 73728 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops drbg 40960 1 videodev 286720 3 videobuf2_v4l2,uvcvideo,videobuf2_common ansi_cprng 16384 0 ecdh_generic 16384 2 bluetooth ecc 40960 1 ecdh_generic mc 69632 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common intel_rapl_msr 20480 0 intel_rapl_common 28672 1 intel_rapl_msr edac_mce_amd 40960 0 snd_ctl_led 24576 0 snd_acp3x_pdm_dma 16384 1 snd_soc_dmic 16384 1 snd_acp3x_rn 16384 4 snd_hda_codec_realtek 167936 1 snd_hda_codec_generic 98304 1 snd_hda_codec_realtek iwlmvm 376832 0 snd_hda_codec_hdmi 81920 1 snd_soc_core 344064 3 snd_acp3x_rn,snd_soc_dmic,snd_acp3x_pdm_dma rtsx_pci_sdmmc 32768 0 kvm_amd 155648 0 snd_hda_intel 57344 11 snd_compress 28672 1 snd_soc_core mac80211 1101824 1 iwlmvm mmc_core 208896 1 rtsx_pci_sdmmc snd_intel_dspcfg 36864 1 snd_hda_intel wmi_bmof 16384 0 snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg libarc4 16384 1 mac80211 tps6598x 57344 0 nft_ct 24576 3 kvm 1114112 1 kvm_amd snd_hda_codec 184320 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek nf_conntrack 184320 2 nf_nat,nft_ct iwlwifi 360448 1 iwlmvm snd_hda_core 118784 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek irqbypass 16384 1 kvm snd_pci_acp6x 20480 0 snd_hwdep 16384 1 snd_hda_codec crc32_pclmul 16384 0 thinkpad_acpi 139264 0 snd_pcm 159744 9 snd_hda_codec_hdmi,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_compress,snd_soc_core,snd_hda_core,snd_acp3x_pdm_dma snd_pci_acp5x 20480 0 nf_defrag_ipv6 24576 1 nf_conntrack snd_rn_pci_acp3x 20480 0 nvram 16384 1 thinkpad_acpi xhci_pci 20480 0 platform_profile 16384 1 thinkpad_acpi ghash_clmulni_intel 16384 0 nf_defrag_ipv4 16384 1 nf_conntrack snd_timer 45056 3 snd_seq,snd_hrtimer,snd_pcm ledtrig_audio 16384 3 snd_ctl_led,snd_hda_codec_generic,thinkpad_acpi snd_acp_config 16384 1 snd_rn_pci_acp3x ehci_pci 20480 0 battery 28672 1 thinkpad_acpi snd_soc_acpi 16384 1 snd_acp_config r8169 98304 0 ac 20480 0 snd 126976 45 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm sp5100_tco 20480 0 cfg80211 1089536 3 iwlmvm,iwlwifi,mac80211 rapl 20480 0 xhci_hcd 315392 1 xhci_pci joydev 28672 0 efi_pstore 16384 0 iosm 110592 0 ccp 118784 1 kvm_amd ehci_hcd 98304 1 ehci_pci snd_pci_acp3x 20480 0 realtek 36864 2 watchdog 32768 1 sp5100_tco soundcore 16384 2 snd_ctl_led,snd rtsx_pci 114688 1 rtsx_pci_sdmmc rfkill 32768 7 iwlmvm,bluetooth,thinkpad_acpi,cfg80211 wwan 28672 1 iosm rng_core 20480 1 ccp mdio_devres 16384 1 r8169 usbcore 339968 6 xhci_hcd,ehci_pci,uvcvideo,ehci_hcd,btusb,xhci_pci ucsi_acpi 16384 0 ipmi_devintf 20480 0 typec_ucsi 53248 1 ucsi_acpi libphy 176128 3 r8169,mdio_devres,realtek i2c_piix4 28672 0 k10temp 16384 0 ipmi_msghandler 73728 1 ipmi_devintf roles 20480 2 tps6598x,typec_ucsi usb_common 16384 4 xhci_hcd,usbcore,uvcvideo,ehci_hcd typec 69632 2 tps6598x,typec_ucsi video 57344 1 thinkpad_acpi wmi 36864 1 wmi_bmof i2c_scmi 20480 0 serial_multi_instantiate 20480 0 acpi_cpufreq 28672 0 button 24576 0 nf_tables 286720 41 nft_ct libcrc32c 16384 3 nf_conntrack,nf_nat,nf_tables nfnetlink 20480 1 nf_tables msr 16384 0 fuse 172032 5 configfs 57344 1 efivarfs 16384 1 ip_tables 36864 3 iptable_filter,iptable_nat,iptable_mangle x_tables 61440 4 iptable_filter,ip_tables,iptable_nat,iptable_mangle autofs4 53248 2 ext4 958464 4 crc16 16384 2 bluetooth,ext4 mbcache 16384 1 ext4 jbd2 167936 1 ext4 crc32c_generic 16384 0 dm_mod 180224 12 dm_crypt amdgpu 8503296 30 drm_ttm_helper 16384 1 amdgpu ttm 90112 2 amdgpu,drm_ttm_helper gpu_sched 53248 1 amdgpu i2c_algo_bit 16384 1 amdgpu drm_display_helper 180224 1 amdgpu drm_kms_helper 192512 4 drm_display_helper,amdgpu crc32c_intel 24576 9 nvme 49152 3 drm 602112 17 gpu_sched,drm_kms_helper,drm_display_helper,thinkpad_acpi,amdgpu,drm_ttm_helper,ttm nvme_core 151552 7 nvme,nvme_fabrics t10_pi 16384 1 nvme_core aesni_intel 380928 6 psmouse 184320 0 cec 61440 1 drm_display_helper crypto_simd 16384 1 aesni_intel evdev 28672 16 cryptd 28672 4 crypto_simd,ghash_clmulni_intel crc64_rocksoft 20480 1 t10_pi crc64 20480 1 crc64_rocksoft rc_core 69632 1 cec serio_raw 20480 0 crc_t10dif 20480 1 t10_pi crct10dif_generic 16384 0 crct10dif_pclmul 16384 1 crct10dif_common 16384 3 crct10dif_generic,crc_t10dif,crct10dif_pclmul -- System Information: Debian Release: bookworm/sid APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.19.0-1-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages cryptsetup-suspend depends on: ii cryptsetup-initramfs 2:2.5.0-3 ii initramfs-tools-core 0.142 ii kbd 2.3.0-3 ii libc6 2.35-1 ii libcryptsetup12 2:2.5.0-3 ii systemd 251.4-3 cryptsetup-suspend recommends no packages. cryptsetup-suspend suggests no packages. -- no debconf information