Devuan logs - #237, boring messages


Message sent to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:


X-Loop: owner@bugs.devuan.org
Subject: bug#237: cryptsetup: System hangs (minutes until timeout) on lvm on luks during shutdown. Patch attached.
Reply-To: =?utf-8?q?Dr=2E_Jan_Hau=C3=9F?= <devujan@drhauss.de>, 237@bugs.devuan.org
Resent-From: =?utf-8?q?Dr=2E_Jan_Hau=C3=9F?= <devujan@drhauss.de>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: owner@bugs.devuan.org
Resent-Date: Thu, 23 Aug 2018 15:03:01 UTC
Resent-Message-ID: <handler.237.B.153503580621378@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 237
X-Devuan-PR-Package: cryptsetup
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.153503580621378
          (code B ref -1); Thu, 23 Aug 2018 15:03:01 UTC
Received: (at submit) by bugs.devuan.org; 23 Aug 2018 14:50:06 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 23 Aug 2018 16:50:06 +0200 (CEST)
Received: from jhauss.vserver.softronics.ch (jhauss.vserver.softronics.ch [91.214.169.97])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 170CDF60998
	for <submit@bugs.devuan.org>; Thu, 23 Aug 2018 16:44:46 +0200 (CEST)
Received: from harry.drhauss.de (ip-95-222-215-75.hsi15.unitymediagroup.de [95.222.215.75])
	(Authenticated sender: devuan@drhauss.de)
	by jhauss.vserver.softronics.ch (Postfix) with ESMTPA id C08493EA5D
	for <submit@bugs.devuan.org>; Thu, 23 Aug 2018 16:41:38 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: =?utf-8?q?Dr=2E_Jan_Hau=C3=9F?= <devujan@drhauss.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Message-ID: <153503566190.4896.16551699497736311318.reportbug@harry.drhauss.de>
X-Mailer: reportbug 7.1.6+devuan2.1
Date: Thu, 23 Aug 2018 16:47:41 +0200
X-Spam-Status: No, score=0.0 required=5.0 tests=T_HK_NAME_DR
	autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

Package: cryptsetup
Version: 2:1.7.3-4
Severity: normal



-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.17.0-0.bpo.1-amd64 root=/dev/mapper/svg-root_d2_lv ro quiet amdgpu.dc=1 resume=UUID=54f94d03-5f1d-4725-9e36-3ec18b6910f3 ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 pcie_aspm=force acpi_serialize pci=noaer

-- /etc/crypttab
nvme0n1p3_crypt UUID=8e567911-848f-4f16-aaeb-f054c7571b09 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl
nvme0n1p4_crypt UUID=a5576297-455b-4ef7-920d-761e27f5fe10 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl
sda7_crypt UUID=5fdbcf43-4cb9-4017-8cd0-89b041c94f05 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl

-- /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/svg-root_d2_lv /               xfs     defaults        0       0
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=9A3B-5F19  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/svg-srv_d2_lv /srv            xfs     nodev,nosuid    0       0
/dev/mapper/svg-usr_d2_lv /usr            xfs     nodev           0       0
/dev/mapper/svg-usr_share_d2_lv /usr/share      xfs     nodev,nosuid    0       0
/dev/mapper/svg-var_d2_lv /var            xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_cache_d2_lv /var/cache      xfs     nodev,nosuid    0       0
/dev/mapper/svg-var_lib_d2_lv /var/lib        xfs     defaults        0       0
/dev/mapper/svg-var_log_d2_lv /var/log        xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_spool_d2_lv /var/spool      xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_tmp_d2_lv /var/tmp        ext2    nodev,user_xattr 0       2
/dev/mapper/svg-opt_d2_lv /opt        xfs    nodev,nosuid	0       2
/dev/mapper/svg-tmp_lv /tmp        ext2    nodev,user_xattr 0       2
/dev/mapper/uvg-home_lv /home           xfs     nodev,nosuid    0       0
/dev/mapper/svg-swap_lv none            swap    sw              0       0

-- lsmod
Module                  Size  Used by
rfcomm                 86016  12
cmac                   16384  0
appletalk              45056  0
ax25                   69632  0
ipx                    32768  0
p8023                  16384  1 ipx
p8022                  16384  1 ipx
psnap                  16384  2 appletalk,ipx
llc                    16384  2 p8022,psnap
bnep                   24576  2
iptable_filter         16384  0
ip_tables              28672  1 iptable_filter
fuse                  118784  3
x_tables               49152  2 iptable_filter,ip_tables
ext4                  741376  2
mbcache                16384  1 ext4
jbd2                  118784  1 ext4
fscrypto               32768  1 ext4
ecb                    16384  0
nls_ascii              16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    77824  1 vfat
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                57344  3 parport_pc,lp,ppdev
dm_cache_smq           28672  1
dm_cache               69632  2 dm_cache_smq
dm_persistent_data     86016  1 dm_cache
dm_bio_prison          20480  1 dm_cache
dm_bufio               32768  1 dm_persistent_data
arc4                   16384  2
amdkfd                200704  1
snd_hda_codec_realtek   110592  1
amdgpu               3125248  17
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     57344  1
snd_hda_intel          45056  4
uvcvideo              114688  0
btusb                  53248  0
ath10k_pci             61440  0
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
btrtl                  16384  1 btusb
videobuf2_vmalloc      16384  1 uvcvideo
chash                  16384  1 amdgpu
videobuf2_memops       16384  1 videobuf2_vmalloc
edac_mce_amd           28672  0
btbcm                  16384  1 btusb
gpu_sched              28672  1 amdgpu
ath10k_core           344064  1 ath10k_pci
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
btintel                24576  1 btusb
videobuf2_v4l2         28672  1 uvcvideo
ttm                   126976  1 amdgpu
kvm_amd               106496  0
ath                    32768  1 ath10k_core
snd_hwdep              20480  1 snd_hda_codec
ccp                    94208  1 kvm_amd
videobuf2_common       49152  2 videobuf2_v4l2,uvcvideo
bluetooth             630784  39 btrtl,btintel,btbcm,bnep,btusb,rfcomm
efi_pstore             16384  0
dell_wmi               16384  0
dell_laptop            24576  1
snd_pcm               118784  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
dell_smbios            28672  2 dell_wmi,dell_laptop
snd_timer              36864  1 snd_pcm
dcdbas                 16384  1 dell_smbios
drbg                   28672  1
wmi_bmof               16384  0
videodev              212992  3 videobuf2_v4l2,uvcvideo,videobuf2_common
sparse_keymap          16384  1 dell_wmi
dell_wmi_descriptor    16384  2 dell_wmi,dell_smbios
dell_smm_hwmon         16384  0
rtsx_usb_ms            20480  0
ansi_cprng             16384  0
mac80211              827392  1 ath10k_core
drm_kms_helper        196608  1 amdgpu
ecdh_generic           24576  1 bluetooth
snd                    94208  16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
memstick               16384  1 rtsx_usb_ms
cdc_acm                32768  0
joydev                 24576  0
crc16                  16384  2 bluetooth,ext4
chaoskey               16384  0
media                  45056  2 videodev,uvcvideo
evdev                  28672  17
kvm                   724992  1 kvm_amd
irqbypass              16384  1 kvm
tpm_crb                16384  0
drm                   462848  10 gpu_sched,drm_kms_helper,amdgpu,ttm
cfg80211              774144  3 ath,mac80211,ath10k_core
soundcore              16384  1 snd
i2c_algo_bit           16384  1 amdgpu
serio_raw              16384  0
tpm_tis                16384  0
pcspkr                 16384  0
tpm_tis_core           20480  1 tpm_tis
efivars                20480  1 efi_pstore
k10temp                16384  0
wmi                    28672  4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
shpchp                 40960  0
sp5100_tco             16384  0
tpm                    65536  3 tpm_tis,tpm_crb,tpm_tis_core
dell_rbtn              16384  0
battery                24576  0
rng_core               16384  3 ccp,chaoskey,tpm
video                  45056  2 dell_wmi,dell_laptop
ac                     16384  0
rfkill                 28672  9 bluetooth,dell_laptop,dell_rbtn,cfg80211
button                 16384  0
acpi_cpufreq           24576  0
xfs                  1495040  11
libcrc32c              16384  2 dm_persistent_data,xfs
crc32c_generic         16384  0
algif_skcipher         16384  0
af_alg                 28672  1 algif_skcipher
dm_crypt               45056  3
dm_mod                147456  59 dm_crypt,dm_cache,dm_bufio
rtsx_usb_sdmmc         28672  0
mmc_core              172032  1 rtsx_usb_sdmmc
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
sg                     36864  0
hid_generic            16384  0
usbhid                 57344  0
sd_mod                 53248  2
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  3
ghash_clmulni_intel    16384  0
pcbc                   16384  0
ahci                   40960  1
libahci                40960  1 ahci
aesni_intel           200704  7
xhci_pci               16384  0
aes_x86_64             20480  1 aesni_intel
libata                278528  2 libahci,ahci
crypto_simd            16384  1 aesni_intel
xhci_hcd              262144  1 xhci_pci
cryptd                 28672  6 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
psmouse               172032  0
nvme                   36864  3
usbcore               290816  8 xhci_hcd,usbhid,cdc_acm,rtsx_usb,uvcvideo,btusb,xhci_pci,chaoskey
scsi_mod              253952  3 sd_mod,libata,sg
i2c_piix4              24576  0
usb_common             16384  1 usbcore
r8169                  94208  0
mii                    16384  1 r8169
nvme_core              77824  5 nvme
i2c_hid                24576  0
hid                   135168  3 i2c_hid,usbhid,hid_generic


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 2.0 (ascii)
Release:	2.0
Codename:	ascii

Architecture: x86_64

Kernel: Linux 4.17.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

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+deb9u3

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
ii  keyutils                1.5.9-9
ii  liblocale-gettext-perl  1.07-3+b1

-- debconf information:
  cryptsetup/prerm_active_mappings: true

I run the Devuan ASCII system on LVM on LUKS.
In function do_stop in file /lib/cryptsetup/cryptdisks.functions there is a vary off of the VGs
missing. So the function handle_crypttab_line_stop gives unwanted return values and sleep $i
within the funtion do_stop increments slowly to 16...
Which slows down the shutdown by unnecessary minutes.

I wrote the following patch according to the function activate_vg from /usr/share/initramfs-tools/scripts/local-top/cryptroot
which varys on the VGs before chroot.


------------------------patch------------------------------------------------------
--- /lib/cryptsetup/cryptdisks.functions.orig   2018-08-14 17:12:31.543227705 +0200
+++ /lib/cryptsetup/cryptdisks.functions        2018-08-23 16:36:23.849064962 +0200
@@ -763,9 +763,17 @@
 
 # Removes all mappings in crypttab
 do_stop () {
-       local dst src key opts opencount major minor
+       local dst src key opts opencount major minor vgs vg
 
        dmsetup mknodes
+       if [ -x /sbin/lvm ]; then
+        vgs="$(/sbin/lvm vgscan | sed -n '/"/s/^.*"\([^'\'']*\)".*$/\1/p')"
+         if [ -n "${vgs}" ]; then
+          for vg in ${vgs}; do
+           /sbin/lvm vgchange -a n ${vg} >/dev/null 2>&1 
+          done 
+         fi
+        fi
        log_action_begin_msg "Stopping $INITSTATE crypto disks"
 
        egrep -v "^[[:space:]]*(#|$)" "$TABFILE" | while read dst src key opts; do
------------------------patch/-----------------------------------------------------

The above patch silently varys off the VGs and makes handle_crypttab_line_stop work.

Kind regards

Jan


Message sent:


X-Loop: owner@bugs.devuan.org
From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: =?utf-8?q?Dr=2E_Jan_Hau=C3=9F?= <devujan@drhauss.de>
Subject: bug#237: Acknowledgement (cryptsetup: System hangs (minutes until timeout) on lvm on luks during shutdown. Patch attached.)
Message-ID: <handler.237.B.153503580621378.ack@bugs.devuan.org>
In-Reply-To: <153503566190.4896.16551699497736311318.reportbug@harry.drhauss.de>
References: <153503566190.4896.16551699497736311318.reportbug@harry.drhauss.de>
Precedence: bulk
X-Devuan-PR-Message: ack 237
X-Devuan-PR-Package: cryptsetup
X-Devuan-PR-Keywords: 
Reply-To: 237@bugs.devuan.org

Thank you for the problem report you have sent regarding Devuan.
This is an automatically generated reply, to let you know your message has
been received.  It is being forwarded to the developers mailing list for
their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 owner@bugs.devuan.org

If you wish to submit further information on your problem, please send
it to 237@bugs.devuan.org (and *not* to
submit@bugs.devuan.org).

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Devuan Bugs Owner
(administrator, Devuan bugs database)


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: fsmithred <fsmithred@gmail.com>
Subject: bug#237: marked as done (cryptsetup: System hangs (minutes until
 timeout) on lvm on luks during shutdown. Patch attached.)
Message-ID: <handler.237.D237.15976008074991.ackdone@bugs.devuan.org>
References: <2524adf7-d9b7-5460-f459-3de156cebf21@gmail.com>
 <153503566190.4896.16551699497736311318.reportbug@harry.drhauss.de>
X-Devuan-PR-Message: closed 237
X-Devuan-PR-Package: cryptsetup
Reply-To: 237@bugs.devuan.org
Date: Sun, 16 Aug 2020 18:03:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1597600982-5019-0"

This is a multi-part message in MIME format...

------------=_1597600982-5019-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Sun, 16 Aug 2020 13:48:25 -0400
with message-id <2524adf7-d9b7-5460-f459-3de156cebf21@gmail.com>
and subject line Fwd: cryptsetup hangs on shutdown
has caused the Devuan bug report #237,
regarding cryptsetup: System hangs (minutes until timeout) on lvm on luks d=
uring shutdown. Patch attached.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.devuan.org
immediately.)


--=20
237: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D237
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems

------------=_1597600982-5019-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.devuan.org; 23 Aug 2018 14:50:06 +0000
Return-Path: <devujan@drhauss.de>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 23 Aug 2018 16:50:06 +0200 (CEST)
Received: from jhauss.vserver.softronics.ch (jhauss.vserver.softronics.ch [91.214.169.97])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 170CDF60998
	for <submit@bugs.devuan.org>; Thu, 23 Aug 2018 16:44:46 +0200 (CEST)
Received: from harry.drhauss.de (ip-95-222-215-75.hsi15.unitymediagroup.de [95.222.215.75])
	(Authenticated sender: devuan@drhauss.de)
	by jhauss.vserver.softronics.ch (Postfix) with ESMTPA id C08493EA5D
	for <submit@bugs.devuan.org>; Thu, 23 Aug 2018 16:41:38 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: =?utf-8?q?Dr=2E_Jan_Hau=C3=9F?= <devujan@drhauss.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: cryptsetup: System hangs (minutes until timeout) on lvm on luks during shutdown. Patch attached.
Message-ID: <153503566190.4896.16551699497736311318.reportbug@harry.drhauss.de>
X-Mailer: reportbug 7.1.6+devuan2.1
Date: Thu, 23 Aug 2018 16:47:41 +0200
X-Spam-Status: No, score=0.0 required=5.0 tests=T_HK_NAME_DR
	autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

Package: cryptsetup
Version: 2:1.7.3-4
Severity: normal



-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.17.0-0.bpo.1-amd64 root=/dev/mapper/svg-root_d2_lv ro quiet amdgpu.dc=1 resume=UUID=54f94d03-5f1d-4725-9e36-3ec18b6910f3 ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 pcie_aspm=force acpi_serialize pci=noaer

-- /etc/crypttab
nvme0n1p3_crypt UUID=8e567911-848f-4f16-aaeb-f054c7571b09 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl
nvme0n1p4_crypt UUID=a5576297-455b-4ef7-920d-761e27f5fe10 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl
sda7_crypt UUID=5fdbcf43-4cb9-4017-8cd0-89b041c94f05 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl

-- /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/svg-root_d2_lv /               xfs     defaults        0       0
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=9A3B-5F19  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/svg-srv_d2_lv /srv            xfs     nodev,nosuid    0       0
/dev/mapper/svg-usr_d2_lv /usr            xfs     nodev           0       0
/dev/mapper/svg-usr_share_d2_lv /usr/share      xfs     nodev,nosuid    0       0
/dev/mapper/svg-var_d2_lv /var            xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_cache_d2_lv /var/cache      xfs     nodev,nosuid    0       0
/dev/mapper/svg-var_lib_d2_lv /var/lib        xfs     defaults        0       0
/dev/mapper/svg-var_log_d2_lv /var/log        xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_spool_d2_lv /var/spool      xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_tmp_d2_lv /var/tmp        ext2    nodev,user_xattr 0       2
/dev/mapper/svg-opt_d2_lv /opt        xfs    nodev,nosuid	0       2
/dev/mapper/svg-tmp_lv /tmp        ext2    nodev,user_xattr 0       2
/dev/mapper/uvg-home_lv /home           xfs     nodev,nosuid    0       0
/dev/mapper/svg-swap_lv none            swap    sw              0       0

-- lsmod
Module                  Size  Used by
rfcomm                 86016  12
cmac                   16384  0
appletalk              45056  0
ax25                   69632  0
ipx                    32768  0
p8023                  16384  1 ipx
p8022                  16384  1 ipx
psnap                  16384  2 appletalk,ipx
llc                    16384  2 p8022,psnap
bnep                   24576  2
iptable_filter         16384  0
ip_tables              28672  1 iptable_filter
fuse                  118784  3
x_tables               49152  2 iptable_filter,ip_tables
ext4                  741376  2
mbcache                16384  1 ext4
jbd2                  118784  1 ext4
fscrypto               32768  1 ext4
ecb                    16384  0
nls_ascii              16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    77824  1 vfat
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                57344  3 parport_pc,lp,ppdev
dm_cache_smq           28672  1
dm_cache               69632  2 dm_cache_smq
dm_persistent_data     86016  1 dm_cache
dm_bio_prison          20480  1 dm_cache
dm_bufio               32768  1 dm_persistent_data
arc4                   16384  2
amdkfd                200704  1
snd_hda_codec_realtek   110592  1
amdgpu               3125248  17
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     57344  1
snd_hda_intel          45056  4
uvcvideo              114688  0
btusb                  53248  0
ath10k_pci             61440  0
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
btrtl                  16384  1 btusb
videobuf2_vmalloc      16384  1 uvcvideo
chash                  16384  1 amdgpu
videobuf2_memops       16384  1 videobuf2_vmalloc
edac_mce_amd           28672  0
btbcm                  16384  1 btusb
gpu_sched              28672  1 amdgpu
ath10k_core           344064  1 ath10k_pci
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
btintel                24576  1 btusb
videobuf2_v4l2         28672  1 uvcvideo
ttm                   126976  1 amdgpu
kvm_amd               106496  0
ath                    32768  1 ath10k_core
snd_hwdep              20480  1 snd_hda_codec
ccp                    94208  1 kvm_amd
videobuf2_common       49152  2 videobuf2_v4l2,uvcvideo
bluetooth             630784  39 btrtl,btintel,btbcm,bnep,btusb,rfcomm
efi_pstore             16384  0
dell_wmi               16384  0
dell_laptop            24576  1
snd_pcm               118784  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
dell_smbios            28672  2 dell_wmi,dell_laptop
snd_timer              36864  1 snd_pcm
dcdbas                 16384  1 dell_smbios
drbg                   28672  1
wmi_bmof               16384  0
videodev              212992  3 videobuf2_v4l2,uvcvideo,videobuf2_common
sparse_keymap          16384  1 dell_wmi
dell_wmi_descriptor    16384  2 dell_wmi,dell_smbios
dell_smm_hwmon         16384  0
rtsx_usb_ms            20480  0
ansi_cprng             16384  0
mac80211              827392  1 ath10k_core
drm_kms_helper        196608  1 amdgpu
ecdh_generic           24576  1 bluetooth
snd                    94208  16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
memstick               16384  1 rtsx_usb_ms
cdc_acm                32768  0
joydev                 24576  0
crc16                  16384  2 bluetooth,ext4
chaoskey               16384  0
media                  45056  2 videodev,uvcvideo
evdev                  28672  17
kvm                   724992  1 kvm_amd
irqbypass              16384  1 kvm
tpm_crb                16384  0
drm                   462848  10 gpu_sched,drm_kms_helper,amdgpu,ttm
cfg80211              774144  3 ath,mac80211,ath10k_core
soundcore              16384  1 snd
i2c_algo_bit           16384  1 amdgpu
serio_raw              16384  0
tpm_tis                16384  0
pcspkr                 16384  0
tpm_tis_core           20480  1 tpm_tis
efivars                20480  1 efi_pstore
k10temp                16384  0
wmi                    28672  4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
shpchp                 40960  0
sp5100_tco             16384  0
tpm                    65536  3 tpm_tis,tpm_crb,tpm_tis_core
dell_rbtn              16384  0
battery                24576  0
rng_core               16384  3 ccp,chaoskey,tpm
video                  45056  2 dell_wmi,dell_laptop
ac                     16384  0
rfkill                 28672  9 bluetooth,dell_laptop,dell_rbtn,cfg80211
button                 16384  0
acpi_cpufreq           24576  0
xfs                  1495040  11
libcrc32c              16384  2 dm_persistent_data,xfs
crc32c_generic         16384  0
algif_skcipher         16384  0
af_alg                 28672  1 algif_skcipher
dm_crypt               45056  3
dm_mod                147456  59 dm_crypt,dm_cache,dm_bufio
rtsx_usb_sdmmc         28672  0
mmc_core              172032  1 rtsx_usb_sdmmc
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
sg                     36864  0
hid_generic            16384  0
usbhid                 57344  0
sd_mod                 53248  2
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  3
ghash_clmulni_intel    16384  0
pcbc                   16384  0
ahci                   40960  1
libahci                40960  1 ahci
aesni_intel           200704  7
xhci_pci               16384  0
aes_x86_64             20480  1 aesni_intel
libata                278528  2 libahci,ahci
crypto_simd            16384  1 aesni_intel
xhci_hcd              262144  1 xhci_pci
cryptd                 28672  6 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
psmouse               172032  0
nvme                   36864  3
usbcore               290816  8 xhci_hcd,usbhid,cdc_acm,rtsx_usb,uvcvideo,btusb,xhci_pci,chaoskey
scsi_mod              253952  3 sd_mod,libata,sg
i2c_piix4              24576  0
usb_common             16384  1 usbcore
r8169                  94208  0
mii                    16384  1 r8169
nvme_core              77824  5 nvme
i2c_hid                24576  0
hid                   135168  3 i2c_hid,usbhid,hid_generic


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 2.0 (ascii)
Release:	2.0
Codename:	ascii

Architecture: x86_64

Kernel: Linux 4.17.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

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+deb9u3

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
ii  keyutils                1.5.9-9
ii  liblocale-gettext-perl  1.07-3+b1

-- debconf information:
  cryptsetup/prerm_active_mappings: true

I run the Devuan ASCII system on LVM on LUKS.
In function do_stop in file /lib/cryptsetup/cryptdisks.functions there is a vary off of the VGs
missing. So the function handle_crypttab_line_stop gives unwanted return values and sleep $i
within the funtion do_stop increments slowly to 16...
Which slows down the shutdown by unnecessary minutes.

I wrote the following patch according to the function activate_vg from /usr/share/initramfs-tools/scripts/local-top/cryptroot
which varys on the VGs before chroot.


------------------------patch------------------------------------------------------
--- /lib/cryptsetup/cryptdisks.functions.orig   2018-08-14 17:12:31.543227705 +0200
+++ /lib/cryptsetup/cryptdisks.functions        2018-08-23 16:36:23.849064962 +0200
@@ -763,9 +763,17 @@
 
 # Removes all mappings in crypttab
 do_stop () {
-       local dst src key opts opencount major minor
+       local dst src key opts opencount major minor vgs vg
 
        dmsetup mknodes
+       if [ -x /sbin/lvm ]; then
+        vgs="$(/sbin/lvm vgscan | sed -n '/"/s/^.*"\([^'\'']*\)".*$/\1/p')"
+         if [ -n "${vgs}" ]; then
+          for vg in ${vgs}; do
+           /sbin/lvm vgchange -a n ${vg} >/dev/null 2>&1 
+          done 
+         fi
+        fi
        log_action_begin_msg "Stopping $INITSTATE crypto disks"
 
        egrep -v "^[[:space:]]*(#|$)" "$TABFILE" | while read dst src key opts; do
------------------------patch/-----------------------------------------------------

The above patch silently varys off the VGs and makes handle_crypttab_line_stop work.

Kind regards

Jan

------------=_1597600982-5019-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 237-close) by bugs.devuan.org; 16 Aug 2020 18:00:07 +0000
Return-Path: <fsmithred@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sun, 16 Aug 2020 18:00:06 +0000 (UTC)
Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 373CFF609F0
	for <237-close@bugs.devuan.org>; Sun, 16 Aug 2020 19:53:48 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="H/1i3G1e";
	dkim-atps=neutral
Received: by mail-qk1-f182.google.com with SMTP id g26so13087678qka.3
        for <237-close@bugs.devuan.org>; Sun, 16 Aug 2020 10:53:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=subject:references:to:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-language;
        bh=Mk7PCvm4G+8k0hKAyxfsWG5l+AiaXwQHseq3f7tih9Y=;
        b=H/1i3G1ekWVcF8eXFI+kXzMgmeMRLz0GEQgN5cA4RRpvMj/8NOmMNLXN6gSSvLx5r0
         murBKbWyqlW+9k4qzoYsSp3H481CKOcBhpb5CBaSOfzP++0oLTTYTU1TVSEM+WAVPjSe
         ykSnQr9BL886/o9/7Fx9MfzDe9A2NnG8jjo3m6yTh1Lxid9GcvXrkFerTgrtSNuLgyC7
         emHBNyLw0t3A6Xa9WjmH+bN/eni7bqHkPjuaIXhPGZEoCfMcwWvL7LnvmjElt67hYnY2
         QVlEyfqFpqwRj7iITYv2dBhaQtp886Nx8CTOXGchKKUOfF9lrxtB5VM04MdV6kOstZnb
         5VmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:references:to:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-language;
        bh=Mk7PCvm4G+8k0hKAyxfsWG5l+AiaXwQHseq3f7tih9Y=;
        b=aggdJwtd3K0pOuHWTDupuCPYaF1LJY8nUWAdBtHWrImw6GLaUulkOzhXhtfyQmdOkU
         6Tj38RcM48mL09TpviDgyMqu9nQaDUTLm7TPQ89yLBVABznzp8/S47tH/dPJo8dGN9LX
         W8HP7hr8Onghm6SkyYcPyhhDKmW0oW2n5UiEu0lz8FFiFgl37eFV60facVG9DGCvbC0U
         U7niYCQSf81mz+v0y4LEXI8T1XaieFZvoUeutU8rFmIBi5fYuJeWtp46erfES1XayalA
         8A+PIhqY+kSC2LjZRS0q+8B4UqF0CAEPdEI56Jr3RwddVuEDwT99MEbnNdes9K/k5q5U
         MedQ==
X-Gm-Message-State: AOAM531YWam1B0wTZITptAExuZVTlX6bJpu5LgadzOEvJ5bCV0/WaHEi
	Qpc0KIQ8A0dwhreNyxlJCPw3fIMnanA=
X-Google-Smtp-Source: ABdhPJxDZY0qLBa7LuZ/KM1J+75pMOSIN/Zpbp1CYFeIRzqCU3UEnlsNfHeZ4+1LEzwc78qnTo5gFw==
X-Received: by 2002:a37:9cd:: with SMTP id 196mr10176929qkj.234.1597600425678;
        Sun, 16 Aug 2020 10:53:45 -0700 (PDT)
Received: from [192.168.1.105] (047-014-247-068.res.spectrum.com. [47.14.247.68])
        by smtp.googlemail.com with ESMTPSA id j61sm16298898qtd.52.2020.08.16.10.53.44
        for <237-close@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sun, 16 Aug 2020 10:53:45 -0700 (PDT)
Subject: Fwd: cryptsetup hangs on shutdown
References: <e1f123fa-1eb5-d1f6-e03c-a3c3cb57e82f@gmail.com>
To: 237-close@bugs.devuan.org
From: fsmithred <fsmithred@gmail.com>
X-Forwarded-Message-Id: <e1f123fa-1eb5-d1f6-e03c-a3c3cb57e82f@gmail.com>
Message-ID: <2524adf7-d9b7-5460-f459-3de156cebf21@gmail.com>
Date: Sun, 16 Aug 2020 13:48:25 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <e1f123fa-1eb5-d1f6-e03c-a3c3cb57e82f@gmail.com>
Content-Type: multipart/mixed;
 boundary="------------1F0978C5958624B34357B548"
Content-Language: en-US
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------1F0978C5958624B34357B548
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

close

This is fixed in beowulf (cryptsetup 2:2.1.0*) by installing
cryptsetup-modified-functions, which will replace (divert)
/lib/cryptsetup/cryptdisks-functions with a patched copy.

The package is currently in beowulf-proposed-updates and will move into
the beowulf main repo with the next point-release.

Direct link to the package:
https://pkgmaster.devuan.org/devuan/pool/main/c/cryptsetup-modified-functions/cryptsetup-modified-functions_19.09.02%2Bdevuan1_all.deb

Note: This appears to be fixed upstream in newer versions in
chimaera/ceres. (2:2.3.3)

fsmithred


--------------1F0978C5958624B34357B548
Content-Type: application/pgp-keys;
 name="0xA73823D3094C5620.asc"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0xA73823D3094C5620.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFnYzrcBEAC7zq4A3e6ablLpNu7oyJ+QcUgZ0MI0h3wWYwop17trHrvmNNA0
Wfn+Z2V9TIRNS28gzRt02l/80uXENC5rfXn5JT6cCuBxU5Pd/rI56HwtUQzl6bDy
XeiOMxOQM4RqVfLEraYocRvnTCv/l7Nza5ftqwuhuo9b9XLuig8Gg7O9puywx0v+
x1h9Rg3skhLfm/gnGJUu5UQ67wxRgfuz1U0ozRGsP9FJpNWK1Yrd7E2/nSp/UO07
RfQdLX8gpuqlpbzCMExknKokgYBbxoEtB2fPSmIMjjZ+Ea1pyaRz2bDjW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j9h43lNaAFR64l4ZwZNM4up/W5/hyhps97TDbuX7IvDoyL3H4G4L1ZHYYJ
vxeIqa21YTNR7OA4YHSbw/GafV5uJEI2JHwU4dGy0TETBFR5jeEhc0FgY2yTHNiM
xk98MJazMKUIJ4/rfNXRWXkAEQEAAYkCPAQYAQoAJgIbDBYhBGf1ATIWJx6FwlHk
gKc4I9MJTFYgBQJepZe6BQkIjzADAAoJEKc4I9MJTFYgTBYQAILyw0o5TAkvd2ge
649sa0+L+UeUDQqcoicmryWNz6wWlNwhWTljjP0Wrex5PZfDKcrDo/ixCSUinh5E
0cbIR6eQc4XR5s4ymUyxxIcLP2H8knLg8u2Cuha09Tlmt17zrr5vtxRffb/g15TZ
VButoYF296j5Pr5+nsuBp7UajlJ3aZCDPWoKHpdx2AmgWgc2zcFx7at+UIvaN8jY
Y8gsgnU213rjXo4i9rlEa/N0uCsktg6DBIuPzVI99zgRs4seqjOTHXZPvNo95fOS
wd8sHDxZTPO6e0OyCMUzZIvzTb319poZD4BjA/gAoe8Yh0lcQsPQrV+ZlMZ2xGpY
MhkPwW04dcLM3KccQrCUlM/A1/lRSE55DVjEzamd9+vQDe3+6WNof1y9GkJ0ghrV
ygIUA+rZycrWTwKsQu8giraXTPG6oYwtjPFAcTmZaI6NifmchOKJIVsYHVlpJqru
P6toxHvJqVRMoMAeQxgJ+hdXp90R6q3nhdjxApkFOnyVM//XPkM6oDhN5TM75Rmu
CjShNuSOSUTY0AhEhxtJB7UuwKj+s1OCMULO72tgNBArTVQseVxf1CGq872tyukO
UUkXUjVX2mq45v4AAwTpFU0kXiVsuuD+5bxgxX+6TkpN5srIwMCHvrsCOvTVXcP+
QqVvfVA0rIsFYDlXTBVpmEJIe8jS
=/7t3
-----END PGP PUBLIC KEY BLOCK-----

--------------1F0978C5958624B34357B548--
------------=_1597600982-5019-0--

Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: =?utf-8?q?Dr=2E_Jan_Hau=C3=9F?= <devujan@drhauss.de>
Subject: bug#237 closed by fsmithred <fsmithred@gmail.com> (Fwd:
 cryptsetup hangs on shutdown)
Message-ID: <handler.237.D237.15976008074991.notifdone@bugs.devuan.org>
References: <2524adf7-d9b7-5460-f459-3de156cebf21@gmail.com>
 <153503566190.4896.16551699497736311318.reportbug@harry.drhauss.de>
X-Devuan-PR-Message: they-closed 237
X-Devuan-PR-Package: cryptsetup
Reply-To: 237@bugs.devuan.org
Date: Sun, 16 Aug 2020 18:03:06 +0000
Content-Type: multipart/mixed; boundary="----------=_1597600986-5019-1"

This is a multi-part message in MIME format...

------------=_1597600986-5019-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

This is an automatic notification regarding your bug report
which was filed against the cryptsetup package:

#237: cryptsetup: System hangs (minutes until timeout) on lvm on luks durin=
g shutdown. Patch attached.

It has been closed by fsmithred <fsmithred@gmail.com>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact fsmithred <fsmithred@g=
mail.com> by
replying to this email.


--=20
237: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D237
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems

------------=_1597600986-5019-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 237-close) by bugs.devuan.org; 16 Aug 2020 18:00:07 +0000
Return-Path: <fsmithred@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sun, 16 Aug 2020 18:00:06 +0000 (UTC)
Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 373CFF609F0
	for <237-close@bugs.devuan.org>; Sun, 16 Aug 2020 19:53:48 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="H/1i3G1e";
	dkim-atps=neutral
Received: by mail-qk1-f182.google.com with SMTP id g26so13087678qka.3
        for <237-close@bugs.devuan.org>; Sun, 16 Aug 2020 10:53:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=subject:references:to:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-language;
        bh=Mk7PCvm4G+8k0hKAyxfsWG5l+AiaXwQHseq3f7tih9Y=;
        b=H/1i3G1ekWVcF8eXFI+kXzMgmeMRLz0GEQgN5cA4RRpvMj/8NOmMNLXN6gSSvLx5r0
         murBKbWyqlW+9k4qzoYsSp3H481CKOcBhpb5CBaSOfzP++0oLTTYTU1TVSEM+WAVPjSe
         ykSnQr9BL886/o9/7Fx9MfzDe9A2NnG8jjo3m6yTh1Lxid9GcvXrkFerTgrtSNuLgyC7
         emHBNyLw0t3A6Xa9WjmH+bN/eni7bqHkPjuaIXhPGZEoCfMcwWvL7LnvmjElt67hYnY2
         QVlEyfqFpqwRj7iITYv2dBhaQtp886Nx8CTOXGchKKUOfF9lrxtB5VM04MdV6kOstZnb
         5VmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:references:to:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-language;
        bh=Mk7PCvm4G+8k0hKAyxfsWG5l+AiaXwQHseq3f7tih9Y=;
        b=aggdJwtd3K0pOuHWTDupuCPYaF1LJY8nUWAdBtHWrImw6GLaUulkOzhXhtfyQmdOkU
         6Tj38RcM48mL09TpviDgyMqu9nQaDUTLm7TPQ89yLBVABznzp8/S47tH/dPJo8dGN9LX
         W8HP7hr8Onghm6SkyYcPyhhDKmW0oW2n5UiEu0lz8FFiFgl37eFV60facVG9DGCvbC0U
         U7niYCQSf81mz+v0y4LEXI8T1XaieFZvoUeutU8rFmIBi5fYuJeWtp46erfES1XayalA
         8A+PIhqY+kSC2LjZRS0q+8B4UqF0CAEPdEI56Jr3RwddVuEDwT99MEbnNdes9K/k5q5U
         MedQ==
X-Gm-Message-State: AOAM531YWam1B0wTZITptAExuZVTlX6bJpu5LgadzOEvJ5bCV0/WaHEi
	Qpc0KIQ8A0dwhreNyxlJCPw3fIMnanA=
X-Google-Smtp-Source: ABdhPJxDZY0qLBa7LuZ/KM1J+75pMOSIN/Zpbp1CYFeIRzqCU3UEnlsNfHeZ4+1LEzwc78qnTo5gFw==
X-Received: by 2002:a37:9cd:: with SMTP id 196mr10176929qkj.234.1597600425678;
        Sun, 16 Aug 2020 10:53:45 -0700 (PDT)
Received: from [192.168.1.105] (047-014-247-068.res.spectrum.com. [47.14.247.68])
        by smtp.googlemail.com with ESMTPSA id j61sm16298898qtd.52.2020.08.16.10.53.44
        for <237-close@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sun, 16 Aug 2020 10:53:45 -0700 (PDT)
Subject: Fwd: cryptsetup hangs on shutdown
References: <e1f123fa-1eb5-d1f6-e03c-a3c3cb57e82f@gmail.com>
To: 237-close@bugs.devuan.org
From: fsmithred <fsmithred@gmail.com>
X-Forwarded-Message-Id: <e1f123fa-1eb5-d1f6-e03c-a3c3cb57e82f@gmail.com>
Message-ID: <2524adf7-d9b7-5460-f459-3de156cebf21@gmail.com>
Date: Sun, 16 Aug 2020 13:48:25 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <e1f123fa-1eb5-d1f6-e03c-a3c3cb57e82f@gmail.com>
Content-Type: multipart/mixed;
 boundary="------------1F0978C5958624B34357B548"
Content-Language: en-US
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------1F0978C5958624B34357B548
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

close

This is fixed in beowulf (cryptsetup 2:2.1.0*) by installing
cryptsetup-modified-functions, which will replace (divert)
/lib/cryptsetup/cryptdisks-functions with a patched copy.

The package is currently in beowulf-proposed-updates and will move into
the beowulf main repo with the next point-release.

Direct link to the package:
https://pkgmaster.devuan.org/devuan/pool/main/c/cryptsetup-modified-functions/cryptsetup-modified-functions_19.09.02%2Bdevuan1_all.deb

Note: This appears to be fixed upstream in newer versions in
chimaera/ceres. (2:2.3.3)

fsmithred


--------------1F0978C5958624B34357B548
Content-Type: application/pgp-keys;
 name="0xA73823D3094C5620.asc"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0xA73823D3094C5620.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFnYzrcBEAC7zq4A3e6ablLpNu7oyJ+QcUgZ0MI0h3wWYwop17trHrvmNNA0
Wfn+Z2V9TIRNS28gzRt02l/80uXENC5rfXn5JT6cCuBxU5Pd/rI56HwtUQzl6bDy
XeiOMxOQM4RqVfLEraYocRvnTCv/l7Nza5ftqwuhuo9b9XLuig8Gg7O9puywx0v+
x1h9Rg3skhLfm/gnGJUu5UQ67wxRgfuz1U0ozRGsP9FJpNWK1Yrd7E2/nSp/UO07
RfQdLX8gpuqlpbzCMExknKokgYBbxoEtB2fPSmIMjjZ+Ea1pyaRz2bDjWhObCs4/
hkkmwnbN4zeeOsniGs8L3WWLX4dT65yDnZoovMR1XbHeszKfQ+h+tVaquBjpKKu0
S/et9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YHSbw/GafV5uJEI2JHwU4dGy0TETBFR5jeEhc0FgY2yTHNiM
xk98MJazMKUIJ4/rfNXRWXkAEQEAAYkCPAQYAQoAJgIbDBYhBGf1ATIWJx6FwlHk
gKc4I9MJTFYgBQJepZe6BQkIjzADAAoJEKc4I9MJTFYgTBYQAILyw0o5TAkvd2ge
649sa0+L+UeUDQqcoicmryWNz6wWlNwhWTljjP0Wrex5PZfDKcrDo/ixCSUinh5E
0cbIR6eQc4XR5s4ymUyxxIcLP2H8knLg8u2Cuha09Tlmt17zrr5vtxRffb/g15TZ
VButoYF296j5Pr5+nsuBp7UajlJ3aZCDPWoKHpdx2AmgWgc2zcFx7at+UIvaN8jY
Y8gsgnU213rjXo4i9rlEa/N0uCsktg6DBIuPzVI99zgRs4seqjOTHXZPvNo95fOS
wd8sHDxZTPO6e0OyCMUzZIvzTb319poZD4BjA/gAoe8Yh0lcQsPQrV+ZlMZ2xGpY
MhkPwW04dcLM3KccQrCUlM/A1/lRSE55DVjEzamd9+vQDe3+6WNof1y9GkJ0ghrV
ygIUA+rZycrWTwKsQu8giraXTPG6oYwtjPFAcTmZaI6NifmchOKJIVsYHVlpJqru
P6toxHvJqVRMoMAeQxgJ+hdXp90R6q3nhdjxApkFOnyVM//XPkM6oDhN5TM75Rmu
CjShNuSOSUTY0AhEhxtJB7UuwKj+s1OCMULO72tgNBArTVQseVxf1CGq872tyukO
UUkXUjVX2mq45v4AAwTpFU0kXiVsuuD+5bxgxX+6TkpN5srIwMCHvrsCOvTVXcP+
QqVvfVA0rIsFYDlXTBVpmEJIe8jS
=/7t3
-----END PGP PUBLIC KEY BLOCK-----

--------------1F0978C5958624B34357B548--
------------=_1597600986-5019-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.devuan.org; 23 Aug 2018 14:50:06 +0000
Return-Path: <devujan@drhauss.de>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 23 Aug 2018 16:50:06 +0200 (CEST)
Received: from jhauss.vserver.softronics.ch (jhauss.vserver.softronics.ch [91.214.169.97])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 170CDF60998
	for <submit@bugs.devuan.org>; Thu, 23 Aug 2018 16:44:46 +0200 (CEST)
Received: from harry.drhauss.de (ip-95-222-215-75.hsi15.unitymediagroup.de [95.222.215.75])
	(Authenticated sender: devuan@drhauss.de)
	by jhauss.vserver.softronics.ch (Postfix) with ESMTPA id C08493EA5D
	for <submit@bugs.devuan.org>; Thu, 23 Aug 2018 16:41:38 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: =?utf-8?q?Dr=2E_Jan_Hau=C3=9F?= <devujan@drhauss.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: cryptsetup: System hangs (minutes until timeout) on lvm on luks during shutdown. Patch attached.
Message-ID: <153503566190.4896.16551699497736311318.reportbug@harry.drhauss.de>
X-Mailer: reportbug 7.1.6+devuan2.1
Date: Thu, 23 Aug 2018 16:47:41 +0200
X-Spam-Status: No, score=0.0 required=5.0 tests=T_HK_NAME_DR
	autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

Package: cryptsetup
Version: 2:1.7.3-4
Severity: normal



-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.17.0-0.bpo.1-amd64 root=/dev/mapper/svg-root_d2_lv ro quiet amdgpu.dc=1 resume=UUID=54f94d03-5f1d-4725-9e36-3ec18b6910f3 ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 pcie_aspm=force acpi_serialize pci=noaer

-- /etc/crypttab
nvme0n1p3_crypt UUID=8e567911-848f-4f16-aaeb-f054c7571b09 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl
nvme0n1p4_crypt UUID=a5576297-455b-4ef7-920d-761e27f5fe10 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl
sda7_crypt UUID=5fdbcf43-4cb9-4017-8cd0-89b041c94f05 root_key luks,keyscript=/lib/cryptsetup/scripts/decrypt_keyctl

-- /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/svg-root_d2_lv /               xfs     defaults        0       0
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=9A3B-5F19  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/svg-srv_d2_lv /srv            xfs     nodev,nosuid    0       0
/dev/mapper/svg-usr_d2_lv /usr            xfs     nodev           0       0
/dev/mapper/svg-usr_share_d2_lv /usr/share      xfs     nodev,nosuid    0       0
/dev/mapper/svg-var_d2_lv /var            xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_cache_d2_lv /var/cache      xfs     nodev,nosuid    0       0
/dev/mapper/svg-var_lib_d2_lv /var/lib        xfs     defaults        0       0
/dev/mapper/svg-var_log_d2_lv /var/log        xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_spool_d2_lv /var/spool      xfs     nodev,nosuid,noexec 0       0
/dev/mapper/svg-var_tmp_d2_lv /var/tmp        ext2    nodev,user_xattr 0       2
/dev/mapper/svg-opt_d2_lv /opt        xfs    nodev,nosuid	0       2
/dev/mapper/svg-tmp_lv /tmp        ext2    nodev,user_xattr 0       2
/dev/mapper/uvg-home_lv /home           xfs     nodev,nosuid    0       0
/dev/mapper/svg-swap_lv none            swap    sw              0       0

-- lsmod
Module                  Size  Used by
rfcomm                 86016  12
cmac                   16384  0
appletalk              45056  0
ax25                   69632  0
ipx                    32768  0
p8023                  16384  1 ipx
p8022                  16384  1 ipx
psnap                  16384  2 appletalk,ipx
llc                    16384  2 p8022,psnap
bnep                   24576  2
iptable_filter         16384  0
ip_tables              28672  1 iptable_filter
fuse                  118784  3
x_tables               49152  2 iptable_filter,ip_tables
ext4                  741376  2
mbcache                16384  1 ext4
jbd2                  118784  1 ext4
fscrypto               32768  1 ext4
ecb                    16384  0
nls_ascii              16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    77824  1 vfat
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                57344  3 parport_pc,lp,ppdev
dm_cache_smq           28672  1
dm_cache               69632  2 dm_cache_smq
dm_persistent_data     86016  1 dm_cache
dm_bio_prison          20480  1 dm_cache
dm_bufio               32768  1 dm_persistent_data
arc4                   16384  2
amdkfd                200704  1
snd_hda_codec_realtek   110592  1
amdgpu               3125248  17
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     57344  1
snd_hda_intel          45056  4
uvcvideo              114688  0
btusb                  53248  0
ath10k_pci             61440  0
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
btrtl                  16384  1 btusb
videobuf2_vmalloc      16384  1 uvcvideo
chash                  16384  1 amdgpu
videobuf2_memops       16384  1 videobuf2_vmalloc
edac_mce_amd           28672  0
btbcm                  16384  1 btusb
gpu_sched              28672  1 amdgpu
ath10k_core           344064  1 ath10k_pci
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
btintel                24576  1 btusb
videobuf2_v4l2         28672  1 uvcvideo
ttm                   126976  1 amdgpu
kvm_amd               106496  0
ath                    32768  1 ath10k_core
snd_hwdep              20480  1 snd_hda_codec
ccp                    94208  1 kvm_amd
videobuf2_common       49152  2 videobuf2_v4l2,uvcvideo
bluetooth             630784  39 btrtl,btintel,btbcm,bnep,btusb,rfcomm
efi_pstore             16384  0
dell_wmi               16384  0
dell_laptop            24576  1
snd_pcm               118784  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
dell_smbios            28672  2 dell_wmi,dell_laptop
snd_timer              36864  1 snd_pcm
dcdbas                 16384  1 dell_smbios
drbg                   28672  1
wmi_bmof               16384  0
videodev              212992  3 videobuf2_v4l2,uvcvideo,videobuf2_common
sparse_keymap          16384  1 dell_wmi
dell_wmi_descriptor    16384  2 dell_wmi,dell_smbios
dell_smm_hwmon         16384  0
rtsx_usb_ms            20480  0
ansi_cprng             16384  0
mac80211              827392  1 ath10k_core
drm_kms_helper        196608  1 amdgpu
ecdh_generic           24576  1 bluetooth
snd                    94208  16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
memstick               16384  1 rtsx_usb_ms
cdc_acm                32768  0
joydev                 24576  0
crc16                  16384  2 bluetooth,ext4
chaoskey               16384  0
media                  45056  2 videodev,uvcvideo
evdev                  28672  17
kvm                   724992  1 kvm_amd
irqbypass              16384  1 kvm
tpm_crb                16384  0
drm                   462848  10 gpu_sched,drm_kms_helper,amdgpu,ttm
cfg80211              774144  3 ath,mac80211,ath10k_core
soundcore              16384  1 snd
i2c_algo_bit           16384  1 amdgpu
serio_raw              16384  0
tpm_tis                16384  0
pcspkr                 16384  0
tpm_tis_core           20480  1 tpm_tis
efivars                20480  1 efi_pstore
k10temp                16384  0
wmi                    28672  4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
shpchp                 40960  0
sp5100_tco             16384  0
tpm                    65536  3 tpm_tis,tpm_crb,tpm_tis_core
dell_rbtn              16384  0
battery                24576  0
rng_core               16384  3 ccp,chaoskey,tpm
video                  45056  2 dell_wmi,dell_laptop
ac                     16384  0
rfkill                 28672  9 bluetooth,dell_laptop,dell_rbtn,cfg80211
button                 16384  0
acpi_cpufreq           24576  0
xfs                  1495040  11
libcrc32c              16384  2 dm_persistent_data,xfs
crc32c_generic         16384  0
algif_skcipher         16384  0
af_alg                 28672  1 algif_skcipher
dm_crypt               45056  3
dm_mod                147456  59 dm_crypt,dm_cache,dm_bufio
rtsx_usb_sdmmc         28672  0
mmc_core              172032  1 rtsx_usb_sdmmc
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
sg                     36864  0
hid_generic            16384  0
usbhid                 57344  0
sd_mod                 53248  2
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  3
ghash_clmulni_intel    16384  0
pcbc                   16384  0
ahci                   40960  1
libahci                40960  1 ahci
aesni_intel           200704  7
xhci_pci               16384  0
aes_x86_64             20480  1 aesni_intel
libata                278528  2 libahci,ahci
crypto_simd            16384  1 aesni_intel
xhci_hcd              262144  1 xhci_pci
cryptd                 28672  6 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
psmouse               172032  0
nvme                   36864  3
usbcore               290816  8 xhci_hcd,usbhid,cdc_acm,rtsx_usb,uvcvideo,btusb,xhci_pci,chaoskey
scsi_mod              253952  3 sd_mod,libata,sg
i2c_piix4              24576  0
usb_common             16384  1 usbcore
r8169                  94208  0
mii                    16384  1 r8169
nvme_core              77824  5 nvme
i2c_hid                24576  0
hid                   135168  3 i2c_hid,usbhid,hid_generic


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 2.0 (ascii)
Release:	2.0
Codename:	ascii

Architecture: x86_64

Kernel: Linux 4.17.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

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+deb9u3

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
ii  keyutils                1.5.9-9
ii  liblocale-gettext-perl  1.07-3+b1

-- debconf information:
  cryptsetup/prerm_active_mappings: true

I run the Devuan ASCII system on LVM on LUKS.
In function do_stop in file /lib/cryptsetup/cryptdisks.functions there is a vary off of the VGs
missing. So the function handle_crypttab_line_stop gives unwanted return values and sleep $i
within the funtion do_stop increments slowly to 16...
Which slows down the shutdown by unnecessary minutes.

I wrote the following patch according to the function activate_vg from /usr/share/initramfs-tools/scripts/local-top/cryptroot
which varys on the VGs before chroot.


------------------------patch------------------------------------------------------
--- /lib/cryptsetup/cryptdisks.functions.orig   2018-08-14 17:12:31.543227705 +0200
+++ /lib/cryptsetup/cryptdisks.functions        2018-08-23 16:36:23.849064962 +0200
@@ -763,9 +763,17 @@
 
 # Removes all mappings in crypttab
 do_stop () {
-       local dst src key opts opencount major minor
+       local dst src key opts opencount major minor vgs vg
 
        dmsetup mknodes
+       if [ -x /sbin/lvm ]; then
+        vgs="$(/sbin/lvm vgscan | sed -n '/"/s/^.*"\([^'\'']*\)".*$/\1/p')"
+         if [ -n "${vgs}" ]; then
+          for vg in ${vgs}; do
+           /sbin/lvm vgchange -a n ${vg} >/dev/null 2>&1 
+          done 
+         fi
+        fi
        log_action_begin_msg "Stopping $INITSTATE crypto disks"
 
        egrep -v "^[[:space:]]*(#|$)" "$TABFILE" | while read dst src key opts; do
------------------------patch/-----------------------------------------------------

The above patch silently varys off the VGs and makes handle_crypttab_line_stop work.

Kind regards

Jan

------------=_1597600986-5019-1--

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Thu, 29 Oct 2020 08:39:01 UTC