[pkg-cryptsetup-devel] Bug#1020553: cryptsetup-suspend: resume from suspend to RAM stuck after upgrading to 2:2.5.0-3

Yuya Nishihara yuya at tcha.org
Tue Sep 27 06:22:13 BST 2022


On Mon, 26 Sep 2022 18:14:19 +0200, Guilhem Moulin wrote:
> On Fri, 23 Sep 2022 at 16:47:19 +0900, Yuya Nishihara wrote:
> > This is the output of 'cryptsetup luksResume', at version 2:2.5.0-3:  
> 
> Thanks for the debug log!  Did you obtain that by adding ‘--debug’ to
> /lib/cryptsetup/functions:resume_mapping() and rebuilding the initramfs?

Yes, but I didn't run 'update-initramfs -u'.

> This is where our traces differ:
> 
> > # Detected dm-ioctl version 4.47.0.
> > # Detected dm-crypt version 1.24.0.
> > # Device-mapper backend running with UDEV support enabled.  
> 
> While I got
> 
>     # Detected dm-ioctl version 4.46.0.
>     # Detected dm-crypt version 1.24.0.
>     # Udev is not running. Not using udev synchronisation code.
>     # Device-mapper backend running with UDEV support disabled.
> 
> Which suggests that my resume environment is lacking /run/udev/control,
> while yours doesn't:
> 
>     https://sources.debian.org/src/lvm2/2.03.16-1/device_mapper/libdm-common.c/?hl=2336#L2336
>     https://sources.debian.org/src/systemd/251.4-3/src/libudev/libudev-queue.c/?hl=133#L133
> 
> Could you please apply /tmp/cryptsetup-suspend-wrapper.diff to
> /lib/cryptsetup/scripts/suspend/cryptsetup-suspend-wrapper so we see
> what the list of mounted filesystems and the content of /run/udev looks
> like?  The resume environment shouldn't contain /run/udev since we're no
> longer bind-mounting /run.

I couldn't find the diff, so tried with the following changes to 'functions'.
This time, I also ran 'update-initramfs -u'.

 resume_mapping() {
     local keyfile="${1:--}"
 
-    /sbin/cryptsetup -T1 \
+    mount | tee -a /var/tmp/cryptsetup-resume.log
+    tree /run/udev | tee -a /var/tmp/cryptsetup-resume.log
+    stdbuf -oL -eL /sbin/cryptsetup -T1 \
         ${CRYPTTAB_OPTION_header:+--header="$CRYPTTAB_OPTION_header"} \
         ${CRYPTTAB_OPTION_keyslot:+--key-slot="$CRYPTTAB_OPTION_keyslot"} \
         ${CRYPTTAB_OPTION_keyfile_size:+--keyfile-size="$CRYPTTAB_OPTION_keyfile_size"} \
         ${CRYPTTAB_OPTION_keyfile_offset:+--keyfile-offset="$CRYPTTAB_OPTION_keyfile_offset"} \
         --type="$CRYPTTAB_TYPE" --key-file="$keyfile" \
-        luksResume "$CRYPTTAB_NAME"
+        --debug \
+        luksResume "$CRYPTTAB_NAME" 2>&1 | tee -a /var/tmp/cryptsetup-resume.log
 }
 

The attached log file shows /run/udev/control exists, but it might not be what
you suggested because the log is captured out of the chroot environment. Maybe
that's why udevd is found in my environment.

> If for some reason something automatically creates /run/udev/control
> then I think a fix would be to pass ‘DM_DISABLE_UDEV=y’ to the
> resume_device() environment.

Thanks, adding DM_DISABLE_UDEV=y indeed fixed the problem. I'm not sure if
the following change is correct, but it worked fine on my machine.

--- a/debian/scripts/suspend/cryptsetup-suspend-wrapper
+++ b/debian/scripts/suspend/cryptsetup-suspend-wrapper
@@ -309,7 +309,7 @@ devices_remaining="$(chroot "$INITRAMFS_DIR" /bin/sh -c "
 # resume remaining active luks devices (non-initramfs devices)
 for dev in $devices_remaining; do
     if crypttab_find_entry --quiet "$dev"; then
-        resume_device "$dev" || true
+        DM_DISABLE_UDEV=y resume_device "$dev" || true
     else
         log_error "'$dev' not found in /etc/crypttab"
     fi
-------------- next part --------------
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16018708k,nr_inodes=4004677,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=3207736k,mode=755,inode64)
/dev/mapper/vg0-root on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13415)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=409600,inode64)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/dev/nvme0n1p2 on /boot type ext4 (rw,relatime)
/dev/mapper/vg0-var on /var type ext4 (rw,relatime)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/mapper/vg0-home on /home type ext4 (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=3207736k,nr_inodes=801934,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
ramfs on /run/cryptsetup/cryptsetup-suspend-initramfs type ramfs (ro,relatime,mode=700)
udev on /run/cryptsetup/cryptsetup-suspend-initramfs/main/dev type devtmpfs (rw,nosuid,noexec,relatime,size=16018708k,nr_inodes=4004677,mode=755,inode64)
proc on /run/cryptsetup/cryptsetup-suspend-initramfs/main/proc type proc (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/cryptsetup/cryptsetup-suspend-initramfs/main/run type ramfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /run/cryptsetup/cryptsetup-suspend-initramfs/main/sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devpts on /run/cryptsetup/cryptsetup-suspend-initramfs/main/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/run/udev
├── control
├── data
│   ├── +acpi:ACPI0003:00
│   ├── +acpi:ACPI0007:00
│   ├── +acpi:ACPI0007:01
│   ├── +acpi:ACPI0007:02
│   ├── +acpi:ACPI0007:03
│   ├── +acpi:ACPI0007:04
│   ├── +acpi:ACPI0007:05
│   ├── +acpi:ACPI0007:06
│   ├── +acpi:ACPI0007:07
│   ├── +acpi:ACPI0007:08
│   ├── +acpi:ACPI0007:09
│   ├── +acpi:ACPI0007:0a
│   ├── +acpi:ACPI0007:0b
│   ├── +acpi:ACPI0007:0c
│   ├── +acpi:ACPI0007:0d
│   ├── +acpi:ACPI0007:0e
│   ├── +acpi:ACPI0007:0f
│   ├── +acpi:ACPI0010:00
│   ├── +acpi:AMDI0010:00
│   ├── +acpi:AMDI0030:00
│   ├── +acpi:INT3515:00
│   ├── +acpi:LEN0071:00
│   ├── +acpi:LEN0100:00
│   ├── +acpi:LEN0111:00
│   ├── +acpi:LEN0130:00
│   ├── +acpi:LEN0268:00
│   ├── +acpi:LEN2064:00
│   ├── +acpi:LNXPOWER:00
│   ├── +acpi:LNXPOWER:01
│   ├── +acpi:LNXPOWER:02
│   ├── +acpi:LNXPOWER:03
│   ├── +acpi:LNXPOWER:04
│   ├── +acpi:LNXPOWER:05
│   ├── +acpi:LNXPOWER:06
│   ├── +acpi:LNXPOWER:07
│   ├── +acpi:LNXPWRBN:00
│   ├── +acpi:LNXSYBUS:00
│   ├── +acpi:LNXSYBUS:01
│   ├── +acpi:LNXSYSTM:00
│   ├── +acpi:LNXTHERM:00
│   ├── +acpi:LNXVIDEO:00
│   ├── +acpi:PNP0000:00
│   ├── +acpi:PNP0100:00
│   ├── +acpi:PNP0200:00
│   ├── +acpi:PNP0800:00
│   ├── +acpi:PNP0A08:00
│   ├── +acpi:PNP0B00:00
│   ├── +acpi:PNP0C01:00
│   ├── +acpi:PNP0C02:00
│   ├── +acpi:PNP0C02:01
│   ├── +acpi:PNP0C02:02
│   ├── +acpi:PNP0C02:03
│   ├── +acpi:PNP0C02:04
│   ├── +acpi:PNP0C02:05
│   ├── +acpi:PNP0C02:06
│   ├── +acpi:PNP0C02:07
│   ├── +acpi:PNP0C02:08
│   ├── +acpi:PNP0C02:09
│   ├── +acpi:PNP0C02:0a
│   ├── +acpi:PNP0C02:0b
│   ├── +acpi:PNP0C02:0c
│   ├── +acpi:PNP0C04:00
│   ├── +acpi:PNP0C09:00
│   ├── +acpi:PNP0C0A:00
│   ├── +acpi:PNP0C0C:00
│   ├── +acpi:PNP0C0D:00
│   ├── +acpi:PNP0C0E:00
│   ├── +acpi:PNP0C0F:00
│   ├── +acpi:PNP0C0F:01
│   ├── +acpi:PNP0C0F:02
│   ├── +acpi:PNP0C0F:03
│   ├── +acpi:PNP0C0F:04
│   ├── +acpi:PNP0C0F:05
│   ├── +acpi:PNP0C0F:06
│   ├── +acpi:PNP0C0F:07
│   ├── +acpi:PNP0C14:00
│   ├── +acpi:PNP0C14:01
│   ├── +acpi:PNP0C14:02
│   ├── +acpi:PNP0C14:03
│   ├── +acpi:PNP0C14:04
│   ├── +acpi:PNP0C14:05
│   ├── +acpi:SMB0001:00
│   ├── +acpi:STM0125:00
│   ├── +acpi:USBC000:00
│   ├── b254:0
│   ├── b254:1
│   ├── b254:2
│   ├── b254:3
│   ├── b259:0
│   ├── b259:1
│   ├── b259:2
│   ├── b259:3
│   ├── +backlight:amdgpu_bl0
│   ├── +bluetooth:hci0
│   ├── c10:1
│   ├── c10:125
│   ├── c10:126
│   ├── c10:127
│   ├── c10:130
│   ├── c10:144
│   ├── c10:183
│   ├── c10:223
│   ├── c10:224
│   ├── c10:228
│   ├── c10:229
│   ├── c10:231
│   ├── c10:232
│   ├── c10:235
│   ├── c10:236
│   ├── c10:242
│   ├── c1:1
│   ├── c1:11
│   ├── c116:1
│   ├── c116:10
│   ├── c116:11
│   ├── c116:12
│   ├── c116:2
│   ├── c116:3
│   ├── c116:33
│   ├── c116:4
│   ├── c116:5
│   ├── c116:6
│   ├── c116:7
│   ├── c116:8
│   ├── c116:9
│   ├── c1:3
│   ├── c13:32
│   ├── c13:33
│   ├── c13:63
│   ├── c13:64
│   ├── c13:65
│   ├── c13:66
│   ├── c13:67
│   ├── c13:68
│   ├── c13:69
│   ├── c13:70
│   ├── c13:71
│   ├── c13:72
│   ├── c13:73
│   ├── c13:74
│   ├── c13:75
│   ├── c13:76
│   ├── c13:77
│   ├── c13:78
│   ├── c13:79
│   ├── c13:80
│   ├── c1:4
│   ├── c1:5
│   ├── c1:7
│   ├── c1:8
│   ├── c189:0
│   ├── c189:128
│   ├── c189:129
│   ├── c189:256
│   ├── c189:384
│   ├── c189:385
│   ├── c189:512
│   ├── c189:640
│   ├── c189:641
│   ├── c189:768
│   ├── c1:9
│   ├── c202:0
│   ├── c202:1
│   ├── c202:10
│   ├── c202:11
│   ├── c202:12
│   ├── c202:13
│   ├── c202:14
│   ├── c202:15
│   ├── c202:2
│   ├── c202:3
│   ├── c202:4
│   ├── c202:5
│   ├── c202:6
│   ├── c202:7
│   ├── c202:8
│   ├── c202:9
│   ├── c226:0
│   ├── c226:128
│   ├── c240:0
│   ├── c240:1
│   ├── c241:0
│   ├── c242:0
│   ├── c242:1
│   ├── c244:0
│   ├── c245:0
│   ├── c245:1
│   ├── c245:2
│   ├── c245:3
│   ├── c245:4
│   ├── c246:0
│   ├── c247:0
│   ├── c251:0
│   ├── c253:65536
│   ├── c254:0
│   ├── c29:0
│   ├── c4:0
│   ├── c4:1
│   ├── c4:10
│   ├── c4:11
│   ├── c4:12
│   ├── c4:13
│   ├── c4:14
│   ├── c4:15
│   ├── c4:16
│   ├── c4:17
│   ├── c4:18
│   ├── c4:19
│   ├── c4:2
│   ├── c4:20
│   ├── c4:21
│   ├── c4:22
│   ├── c4:23
│   ├── c4:24
│   ├── c4:25
│   ├── c4:26
│   ├── c4:27
│   ├── c4:28
│   ├── c4:29
│   ├── c4:3
│   ├── c4:30
│   ├── c4:31
│   ├── c4:32
│   ├── c4:33
│   ├── c4:34
│   ├── c4:35
│   ├── c4:36
│   ├── c4:37
│   ├── c4:38
│   ├── c4:39
│   ├── c4:4
│   ├── c4:40
│   ├── c4:41
│   ├── c4:42
│   ├── c4:43
│   ├── c4:44
│   ├── c4:45
│   ├── c4:46
│   ├── c4:47
│   ├── c4:48
│   ├── c4:49
│   ├── c4:5
│   ├── c4:50
│   ├── c4:51
│   ├── c4:52
│   ├── c4:53
│   ├── c4:54
│   ├── c4:55
│   ├── c4:56
│   ├── c4:57
│   ├── c4:58
│   ├── c4:59
│   ├── c4:6
│   ├── c4:60
│   ├── c4:61
│   ├── c4:62
│   ├── c4:63
│   ├── c4:64
│   ├── c4:65
│   ├── c4:66
│   ├── c4:67
│   ├── c4:7
│   ├── c4:8
│   ├── c4:9
│   ├── c5:0
│   ├── c5:1
│   ├── c5:2
│   ├── c7:0
│   ├── c7:1
│   ├── c7:128
│   ├── c7:129
│   ├── c7:130
│   ├── c7:131
│   ├── c7:132
│   ├── c7:133
│   ├── c7:134
│   ├── c7:136
│   ├── c7:2
│   ├── c7:3
│   ├── c7:4
│   ├── c7:5
│   ├── c7:6
│   ├── c7:64
│   ├── c7:65
│   ├── c7:66
│   ├── c7:67
│   ├── c7:68
│   ├── c7:69
│   ├── c7:70
│   ├── c7:72
│   ├── c7:8
│   ├── c81:0
│   ├── c81:1
│   ├── c81:2
│   ├── c81:3
│   ├── +dmi:id
│   ├── +drm:card0-DP-1
│   ├── +drm:card0-DP-2
│   ├── +drm:card0-DP-3
│   ├── +drm:card0-DP-4
│   ├── +drm:card0-eDP-1
│   ├── +drm:card0-HDMI-A-1
│   ├── +gpio:gpiochip768
│   ├── +input:input0
│   ├── +input:input10
│   ├── +input:input11
│   ├── +input:input12
│   ├── +input:input13
│   ├── +input:input14
│   ├── +input:input15
│   ├── +input:input16
│   ├── +input:input17
│   ├── +input:input2
│   ├── +input:input3
│   ├── +input:input4
│   ├── +input:input5
│   ├── +input:input6
│   ├── +input:input7
│   ├── +input:input8
│   ├── +input:input9
│   ├── +leds:input0::capslock
│   ├── +leds:input0::numlock
│   ├── +leds:input0::scrolllock
│   ├── +leds:phy0-led
│   ├── +leds:platform::micmute
│   ├── +leds:platform::mute
│   ├── +leds:tpacpi::lid_logo_dot
│   ├── +leds:tpacpi::power
│   ├── +leds:tpacpi::standby
│   ├── +leds:tpacpi::thinkvantage
│   ├── +module:configfs
│   ├── +module:fuse
│   ├── n1
│   ├── n2
│   ├── n3
│   ├── n4
│   ├── n5
│   ├── +pci:0000:00:00.0
│   ├── +pci:0000:00:00.2
│   ├── +pci:0000:00:01.0
│   ├── +pci:0000:00:02.0
│   ├── +pci:0000:00:02.1
│   ├── +pci:0000:00:02.2
│   ├── +pci:0000:00:02.3
│   ├── +pci:0000:00:02.4
│   ├── +pci:0000:00:02.5
│   ├── +pci:0000:00:02.6
│   ├── +pci:0000:00:02.7
│   ├── +pci:0000:00:08.0
│   ├── +pci:0000:00:08.1
│   ├── +pci:0000:00:14.0
│   ├── +pci:0000:00:14.3
│   ├── +pci:0000:00:18.0
│   ├── +pci:0000:00:18.1
│   ├── +pci:0000:00:18.2
│   ├── +pci:0000:00:18.3
│   ├── +pci:0000:00:18.4
│   ├── +pci:0000:00:18.5
│   ├── +pci:0000:00:18.6
│   ├── +pci:0000:00:18.7
│   ├── +pci:0000:01:00.0
│   ├── +pci:0000:02:00.0
│   ├── +pci:0000:02:00.1
│   ├── +pci:0000:02:00.2
│   ├── +pci:0000:02:00.3
│   ├── +pci:0000:02:00.4
│   ├── +pci:0000:03:00.0
│   ├── +pci:0000:04:00.0
│   ├── +pci:0000:05:00.0
│   ├── +pci:0000:06:00.0
│   ├── +pci:0000:07:00.0
│   ├── +pci:0000:08:00.0
│   ├── +pci:0000:08:00.1
│   ├── +pci:0000:08:00.2
│   ├── +pci:0000:08:00.3
│   ├── +pci:0000:08:00.4
│   ├── +pci:0000:08:00.5
│   ├── +pci:0000:08:00.6
│   ├── +platform:ACPI0003:00
│   ├── +platform:acp_pdm_mach.0
│   ├── +platform:acp_rn_pdm_dma.0
│   ├── +platform:alarmtimer.0.auto
│   ├── +platform:AMDI0010:00
│   ├── +platform:AMDI0030:00
│   ├── +platform:dmic-codec.0
│   ├── +platform:efivars.0
│   ├── +platform:i8042
│   ├── +platform:INT3515:00
│   ├── +platform:intel_rapl_msr.0
│   ├── +platform:LEN0100:00
│   ├── +platform:LEN0111:00
│   ├── +platform:LEN0130:00
│   ├── +platform:LEN0268:00
│   ├── +platform:microcode
│   ├── +platform:pcspkr
│   ├── +platform:PNP0800:00
│   ├── +platform:PNP0C04:00
│   ├── +platform:PNP0C09:00
│   ├── +platform:PNP0C0A:00
│   ├── +platform:PNP0C0C:00
│   ├── +platform:PNP0C0D:00
│   ├── +platform:PNP0C0E:00
│   ├── +platform:PNP0C14:00
│   ├── +platform:PNP0C14:01
│   ├── +platform:PNP0C14:02
│   ├── +platform:PNP0C14:03
│   ├── +platform:PNP0C14:04
│   ├── +platform:PNP0C14:05
│   ├── +platform:reg-dummy
│   ├── +platform:regulatory.0
│   ├── +platform:rtc-efi.0
│   ├── +platform:rtsx_pci_sdmmc.0
│   ├── +platform:serial8250
│   ├── +platform:snd-soc-dummy
│   ├── +platform:sp5100-tco
│   ├── +platform:STM0125:00
│   ├── +platform:thinkpad_acpi
│   ├── +platform:thinkpad_hwmon
│   ├── +platform:USBC000:00
│   ├── +rfkill:rfkill0
│   ├── +rfkill:rfkill1
│   ├── +rfkill:rfkill2
│   ├── +rfkill:rfkill3
│   ├── +sound:card0
│   ├── +sound:card1
│   ├── +sound:card2
│   ├── +usb:1-0:1.0
│   ├── +usb:2-0:1.0
│   ├── +usb:2-2:1.0
│   ├── +usb:2-2:1.1
│   ├── +usb:2-2:1.2
│   ├── +usb:2-2:1.3
│   ├── +usb:2-2:1.4
│   ├── +usb:3-0:1.0
│   ├── +usb:4-0:1.0
│   ├── +usb:4-1:2.0
│   ├── +usb:5-0:1.0
│   ├── +usb:6-0:1.0
│   ├── +usb:6-4:1.0
│   ├── +usb:6-4:1.1
│   └── +usb:7-0:1.0
├── links
│   ├── disk\x2fby-diskseq\x2f1
│   │   └── b259:0 -> 0:/dev/nvme0n1
│   ├── disk\x2fby-id\x2fdm-name-vg0-crypthome
│   │   └── b254:2 -> 0:/dev/dm-2
│   ├── disk\x2fby-id\x2fdm-name-vg0-home
│   │   └── b254:3 -> 0:/dev/dm-3
│   ├── disk\x2fby-id\x2fdm-name-vg0-root
│   │   └── b254:0 -> 0:/dev/dm-0
│   ├── disk\x2fby-id\x2fdm-name-vg0-var
│   │   └── b254:1 -> 0:/dev/dm-1
│   ├── disk\x2fby-id\x2fdm-uuid-CRYPT-LUKS2-377a4f32521a4a1db046ec1904ebbc47-vg0-home
│   │   └── b254:3 -> 0:/dev/dm-3
│   ├── disk\x2fby-id\x2fdm-uuid-LVM-226BLhgCaDDL9QuCDI3miSUzvJSRay479CD5tj7sOLFJ9VLdsI7wtXlrv2CRMfYK
│   │   └── b254:1 -> 0:/dev/dm-1
│   ├── disk\x2fby-id\x2fdm-uuid-LVM-226BLhgCaDDL9QuCDI3miSUzvJSRay47IhhAK53MWtQAALxPd4nAwPLGm3tJdZgP
│   │   └── b254:2 -> 0:/dev/dm-2
│   ├── disk\x2fby-id\x2fdm-uuid-LVM-226BLhgCaDDL9QuCDI3miSUzvJSRay47QQyFpRktw2RzFANxjxWI5h1OJovH4WE9
│   │   └── b254:0 -> 0:/dev/dm-0
│   ├── disk\x2fby-id\x2flvm-pv-uuid-9NRXCN-cgUW-T2AO-9xc3-g9qi-YteL-TTtxRl
│   │   └── b259:3 -> 0:/dev/nvme0n1p3
│   ├── disk\x2fby-id\x2fnvme-eui.e8238fa6bf530001001b444a44357237
│   │   └── b259:0 -> 0:/dev/nvme0n1
│   ├── disk\x2fby-id\x2fnvme-eui.e8238fa6bf530001001b444a44357237-part1
│   │   └── b259:1 -> 0:/dev/nvme0n1p1
│   ├── disk\x2fby-id\x2fnvme-eui.e8238fa6bf530001001b444a44357237-part2
│   │   └── b259:2 -> 0:/dev/nvme0n1p2
│   ├── disk\x2fby-id\x2fnvme-eui.e8238fa6bf530001001b444a44357237-part3
│   │   └── b259:3 -> 0:/dev/nvme0n1p3
│   ├── disk\x2fby-id\x2fnvme-WDC_WDS100T2B0C-00PXH0_2022HP459801
│   │   └── b259:0 -> 0:/dev/nvme0n1
│   ├── disk\x2fby-id\x2fnvme-WDC_WDS100T2B0C-00PXH0_2022HP459801-part1
│   │   └── b259:1 -> 0:/dev/nvme0n1p1
│   ├── disk\x2fby-id\x2fnvme-WDC_WDS100T2B0C-00PXH0_2022HP459801-part2
│   │   └── b259:2 -> 0:/dev/nvme0n1p2
│   ├── disk\x2fby-id\x2fnvme-WDC_WDS100T2B0C-00PXH0_2022HP459801-part3
│   │   └── b259:3 -> 0:/dev/nvme0n1p3
│   ├── disk\x2fby-partuuid\x2f006a0baa-274c-4e12-b4ea-1ac16e63a806
│   │   └── b259:1 -> 0:/dev/nvme0n1p1
│   ├── disk\x2fby-partuuid\x2f61f1f973-5d1f-4974-b463-558b53285dd5
│   │   └── b259:3 -> 0:/dev/nvme0n1p3
│   ├── disk\x2fby-partuuid\x2f86910b60-cb7c-433e-aa6d-cf1732b793b0
│   │   └── b259:2 -> 0:/dev/nvme0n1p2
│   ├── disk\x2fby-path\x2fpci-0000:01:00.0-nvme-1
│   │   └── b259:0 -> 0:/dev/nvme0n1
│   ├── disk\x2fby-path\x2fpci-0000:01:00.0-nvme-1-part1
│   │   └── b259:1 -> 0:/dev/nvme0n1p1
│   ├── disk\x2fby-path\x2fpci-0000:01:00.0-nvme-1-part2
│   │   └── b259:2 -> 0:/dev/nvme0n1p2
│   ├── disk\x2fby-path\x2fpci-0000:01:00.0-nvme-1-part3
│   │   └── b259:3 -> 0:/dev/nvme0n1p3
│   ├── disk\x2fby-uuid\x2f377a4f32-521a-4a1d-b046-ec1904ebbc47
│   │   └── b254:2 -> 0:/dev/dm-2
│   ├── disk\x2fby-uuid\x2f657c7c45-8fed-4873-86f9-f96882d7d81a
│   │   └── b254:0 -> 0:/dev/dm-0
│   ├── disk\x2fby-uuid\x2f6b7d34eb-acd3-4339-a927-e035b0ca66f5
│   │   └── b254:1 -> 0:/dev/dm-1
│   ├── disk\x2fby-uuid\x2f9da006d8-a29d-4ad1-90f3-2c8aa4e2f20c
│   │   └── b254:3 -> 0:/dev/dm-3
│   ├── disk\x2fby-uuid\x2fbefa79d2-d1b2-45aa-b702-a5f7b529e8fa
│   │   └── b259:2 -> 0:/dev/nvme0n1p2
│   ├── disk\x2fby-uuid\x2fEA1A-5D32
│   │   └── b259:1 -> 0:/dev/nvme0n1p1
│   ├── dri\x2fby-path\x2fpci-0000:08:00.0-card
│   │   └── c226:0 -> 0:/dev/dri/card0
│   ├── dri\x2fby-path\x2fpci-0000:08:00.0-render
│   │   └── c226:128 -> 0:/dev/dri/renderD128
│   ├── input\x2fby-id\x2fusb-Azurewave_Integrated_Camera_0000-event-if00
│   │   └── c13:79 -> 0:/dev/input/event15
│   ├── input\x2fby-id\x2fusb-Azurewave_Integrated_Camera_0000-event-if02
│   │   └── c13:80 -> 0:/dev/input/event16
│   ├── input\x2fby-path\x2fpci-0000:07:00.0-usb-0:2:1.0-event
│   │   └── c13:79 -> 0:/dev/input/event15
│   ├── input\x2fby-path\x2fpci-0000:07:00.0-usb-0:2:1.2-event
│   │   └── c13:80 -> 0:/dev/input/event16
│   ├── input\x2fby-path\x2fplatform-i8042-serio-0-event-kbd
│   │   └── c13:64 -> 0:/dev/input/event0
│   ├── input\x2fby-path\x2fplatform-i8042-serio-1-event-mouse
│   │   └── c13:65 -> 0:/dev/input/event1
│   ├── input\x2fby-path\x2fplatform-i8042-serio-1-mouse
│   │   └── c13:32 -> 0:/dev/input/mouse0
│   ├── input\x2fby-path\x2fplatform-i8042-serio-2-event-mouse
│   │   └── c13:66 -> 0:/dev/input/event2
│   ├── input\x2fby-path\x2fplatform-i8042-serio-2-mouse
│   │   └── c13:33 -> 0:/dev/input/mouse1
│   ├── input\x2fby-path\x2fplatform-thinkpad_acpi-event
│   │   └── c13:72 -> 0:/dev/input/event8
│   ├── mapper\x2fvg0-crypthome
│   │   └── b254:2 -> 0:/dev/dm-2
│   ├── mapper\x2fvg0-home
│   │   └── b254:3 -> 0:/dev/dm-3
│   ├── mapper\x2fvg0-root
│   │   └── b254:0 -> 0:/dev/dm-0
│   ├── mapper\x2fvg0-var
│   │   └── b254:1 -> 0:/dev/dm-1
│   ├── rtc
│   │   └── c251:0 -> -100:/dev/rtc0
│   ├── snd\x2fby-path\x2fpci-0000:08:00.1
│   │   └── c116:6 -> 0:/dev/snd/controlC0
│   ├── snd\x2fby-path\x2fpci-0000:08:00.5-platform-acp_pdm_mach.0
│   │   └── c116:8 -> 0:/dev/snd/controlC2
│   ├── snd\x2fby-path\x2fpci-0000:08:00.6
│   │   └── c116:12 -> 0:/dev/snd/controlC1
│   ├── v4l\x2fby-id\x2fusb-Azurewave_Integrated_Camera_0000-video-index0
│   │   ├── c81:0 -> 0:/dev/video0
│   │   └── c81:2 -> 0:/dev/video2
│   ├── v4l\x2fby-id\x2fusb-Azurewave_Integrated_Camera_0000-video-index1
│   │   ├── c81:1 -> 0:/dev/video1
│   │   └── c81:3 -> 0:/dev/video3
│   ├── v4l\x2fby-path\x2fpci-0000:07:00.0-usb-0:2:1.0-video-index0
│   │   └── c81:0 -> 0:/dev/video0
│   ├── v4l\x2fby-path\x2fpci-0000:07:00.0-usb-0:2:1.0-video-index1
│   │   └── c81:1 -> 0:/dev/video1
│   ├── v4l\x2fby-path\x2fpci-0000:07:00.0-usb-0:2:1.2-video-index0
│   │   └── c81:2 -> 0:/dev/video2
│   ├── v4l\x2fby-path\x2fpci-0000:07:00.0-usb-0:2:1.2-video-index1
│   │   └── c81:3 -> 0:/dev/video3
│   ├── vg0\x2fcrypthome
│   │   └── b254:2 -> 0:/dev/dm-2
│   ├── vg0\x2froot
│   │   └── b254:0 -> 0:/dev/dm-0
│   └── vg0\x2fvar
│       └── b254:1 -> 0:/dev/dm-1
├── static_node-tags
│   └── uaccess
│       ├── snd\x2fseq -> /dev/snd/seq
│       └── snd\x2ftimer -> /dev/snd/timer
├── tags
│   ├── master-of-seat
│   │   ├── c226:0
│   │   ├── +drm:card0-DP-1
│   │   ├── +drm:card0-DP-2
│   │   ├── +drm:card0-DP-3
│   │   ├── +drm:card0-DP-4
│   │   ├── +drm:card0-eDP-1
│   │   └── +drm:card0-HDMI-A-1
│   ├── power-switch
│   │   ├── c13:64
│   │   ├── c13:67
│   │   ├── c13:68
│   │   ├── c13:69
│   │   ├── c13:70
│   │   ├── c13:71
│   │   ├── c13:72
│   │   ├── c13:73
│   │   ├── c13:74
│   │   ├── c13:75
│   │   ├── c13:77
│   │   ├── c13:78
│   │   ├── c13:79
│   │   └── c13:80
│   ├── seat
│   │   ├── +backlight:amdgpu_bl0
│   │   ├── c10:232
│   │   ├── c10:242
│   │   ├── c189:0
│   │   ├── c189:128
│   │   ├── c189:256
│   │   ├── c189:384
│   │   ├── c189:512
│   │   ├── c189:640
│   │   ├── c189:768
│   │   ├── c226:0
│   │   ├── c226:128
│   │   ├── c240:0
│   │   ├── c240:1
│   │   ├── c254:0
│   │   ├── c29:0
│   │   ├── c81:0
│   │   ├── c81:1
│   │   ├── c81:2
│   │   ├── c81:3
│   │   ├── +drm:card0-DP-1
│   │   ├── +drm:card0-DP-2
│   │   ├── +drm:card0-DP-3
│   │   ├── +drm:card0-DP-4
│   │   ├── +drm:card0-eDP-1
│   │   ├── +drm:card0-HDMI-A-1
│   │   ├── +gpio:gpiochip768
│   │   ├── +input:input0
│   │   ├── +input:input10
│   │   ├── +input:input11
│   │   ├── +input:input12
│   │   ├── +input:input13
│   │   ├── +input:input14
│   │   ├── +input:input15
│   │   ├── +input:input16
│   │   ├── +input:input17
│   │   ├── +input:input2
│   │   ├── +input:input3
│   │   ├── +input:input4
│   │   ├── +input:input5
│   │   ├── +input:input6
│   │   ├── +input:input7
│   │   ├── +input:input8
│   │   ├── +input:input9
│   │   ├── +leds:input0::capslock
│   │   ├── +leds:input0::numlock
│   │   ├── +leds:input0::scrolllock
│   │   ├── +leds:phy0-led
│   │   ├── +leds:platform::micmute
│   │   ├── +leds:platform::mute
│   │   ├── +leds:tpacpi::lid_logo_dot
│   │   ├── +leds:tpacpi::power
│   │   ├── +leds:tpacpi::standby
│   │   ├── +leds:tpacpi::thinkvantage
│   │   ├── +sound:card0
│   │   ├── +sound:card1
│   │   └── +sound:card2
│   ├── systemd
│   │   ├── b254:0
│   │   ├── b254:1
│   │   ├── b254:2
│   │   ├── b254:3
│   │   ├── b259:0
│   │   ├── b259:1
│   │   ├── b259:2
│   │   ├── b259:3
│   │   ├── +backlight:amdgpu_bl0
│   │   ├── +bluetooth:hci0
│   │   ├── c10:224
│   │   ├── c10:242
│   │   ├── c116:12
│   │   ├── c116:6
│   │   ├── c116:8
│   │   ├── c253:65536
│   │   ├── c4:64
│   │   ├── c4:65
│   │   ├── c4:66
│   │   ├── c4:67
│   │   ├── +module:configfs
│   │   ├── +module:fuse
│   │   ├── n2
│   │   ├── n3
│   │   ├── n4
│   │   └── n5
│   └── uaccess
│       ├── c10:232
│       ├── c10:242
│       ├── c116:1
│       ├── c116:10
│       ├── c116:11
│       ├── c116:12
│       ├── c116:2
│       ├── c116:3
│       ├── c116:33
│       ├── c116:4
│       ├── c116:5
│       ├── c116:6
│       ├── c116:7
│       ├── c116:8
│       ├── c116:9
│       ├── c226:0
│       ├── c226:128
│       ├── c240:0
│       ├── c240:1
│       ├── c254:0
│       ├── c81:0
│       ├── c81:1
│       ├── c81:2
│       ├── c81:3
│       └── +gpio:gpiochip768
└── watch
    ├── 1 -> b254:0
    ├── 2 -> b259:0
    ├── 3 -> b259:3
    ├── 4 -> b259:2
    ├── 5 -> b254:1
    ├── 6 -> b259:1
    ├── 7 -> b254:2
    ├── 8 -> b254:3
    ├── b254:0 -> 1
    ├── b254:1 -> 5
    ├── b254:2 -> 7
    ├── b254:3 -> 8
    ├── b259:0 -> 2
    ├── b259:1 -> 6
    ├── b259:2 -> 4
    └── b259:3 -> 3

71 directories, 651 files
# 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-2-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 0xd4d7f15 (semid 2) created
# Udev cookie 0xd4d7f15 (semid 2) incremented to 1
# Udev cookie 0xd4d7f15 (semid 2) incremented to 2
# Udev cookie 0xd4d7f15 (semid 2) assigned to RESUME task(5) with flags DISABLE_LIBRARY_FALLBACK         (0x20)
# dm resume vg0-home  [ opencount flush ]   [16384] (*1)
# vg0-home: Stacking NODE_ADD (254,3) 0:6 0660 [trust_udev]
# Udev cookie 0xd4d7f15 (semid 2) decremented to 1
# Udev cookie 0xd4d7f15 (semid 2) waiting for zero


More information about the pkg-cryptsetup-devel mailing list