Package: cryptsetup Version: 2:1.6.6-5 Severity: important I have two machines which have an encrypted swap partition, and at some point they stopped shutting down cleanly. They are still running with a sysvinit init system, if that might be making a difference. They reach the /etc/init.d/cryptdisks stop command, they say "Stopping remaining crypto disks", and then hang. Adding some debugging lines to /lib/cryptsetup/cryptodisks, it became clear that they are hanging on the command: "cryptsetup remove sda7_crypt" within do_close. (This is happening on every shutdown or restart.)
At that point, the only way to complete the shutdown is to do a hardware power-down, hence why I have labelled this bug as "important". I don't know how to debug this problem further, unfortunately. Julian -- Package-specific info: -- /proc/cmdline BOOT_IMAGE=/vmlinuz-4.1.0-1-amd64 root=UUID=470f20bb-68f8-4b74-b7eb-90a88735dc7b ro quiet -- /etc/crypttab sda7_crypt /dev/sda7 /dev/urandom cipher=aes-xts-plain64,size=256,swap -- /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> # / was on /dev/sda2 during installation UUID=470f20bb-68f8-4b74-b7eb-90a88735dc7b / ext4 errors=remount-ro 0 1 # /boot was on /dev/sda1 during installation UUID=011a54f2-8497-462f-81b1-0fd49d3676e2 /boot ext2 defaults 0 2 # /home was on /dev/sda3 during installation UUID=2b78f878-8947-41f3-aeb3-b80c17b2744c /home ext4 defaults 0 2 # /tmp was on /dev/sda6 during installation UUID=902349f1-5f7d-457e-a7aa-4d0b349ef0af /tmp ext4 defaults 0 2 # /var was on /dev/sda5 during installation UUID=6b86294b-0aae-4cea-9848-71fdb7e7e636 /var ext4 defaults 0 2 /dev/mapper/sda7_crypt none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 -- lsmod Module Size Used by ctr 16384 0 ccm 20480 0 snd_hrtimer 16384 1 snd_seq_midi 16384 0 snd_seq_midi_event 16384 1 snd_seq_midi snd_rawmidi 28672 1 snd_seq_midi snd_seq 61440 3 snd_seq_midi_event,snd_seq_midi snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi ip6table_filter 16384 1 ip6_tables 28672 1 ip6table_filter xt_multiport 16384 1 iptable_filter 16384 1 ip_tables 28672 1 iptable_filter x_tables 28672 5 ip6table_filter,ip_tables,xt_multiport,iptable_filter,ip6_tables bnep 20480 2 bluetooth 438272 5 bnep binfmt_misc 20480 1 uinput 20480 1 nfsd 278528 2 auth_rpcgss 53248 1 nfsd oid_registry 16384 1 auth_rpcgss nfs_acl 16384 1 nfsd nfs 208896 0 lockd 90112 2 nfs,nfsd grace 16384 2 nfsd,lockd fscache 53248 1 nfs sunrpc 266240 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl fuse 86016 5 parport_pc 28672 0 ppdev 20480 0 lp 20480 0 parport 36864 3 lp,ppdev,parport_pc xts 16384 1 gf128mul 16384 1 xts dm_crypt 28672 1 dm_mod 98304 3 dm_crypt ums_realtek 20480 0 uas 24576 0 usb_storage 61440 2 uas,ums_realtek joydev 20480 0 dell_wmi 16384 0 sparse_keymap 16384 1 dell_wmi iTCO_wdt 16384 0 iTCO_vendor_support 16384 1 iTCO_wdt arc4 16384 2 iwldvm 135168 0 mac80211 569344 1 iwldvm iwlwifi 110592 1 iwldvm dell_laptop 20480 0 dcdbas 16384 1 dell_laptop cfg80211 458752 3 iwlwifi,mac80211,iwldvm rfkill 20480 6 cfg80211,bluetooth,dell_laptop i915 1024000 2 snd_hda_codec_idt 57344 1 lpc_ich 24576 0 sr_mod 24576 0 mfd_core 16384 1 lpc_ich i8k 16384 0 evdev 24576 21 cdrom 49152 1 sr_mod coretemp 16384 0 sg 32768 0 drm_kms_helper 102400 1 i915 sky2 57344 0 psmouse 114688 0 snd_hda_codec_generic 65536 1 snd_hda_codec_idt serio_raw 16384 0 pcspkr 16384 0 wmi 20480 1 dell_wmi i2c_i801 20480 0 snd_hda_intel 28672 6 snd_hda_controller 28672 1 snd_hda_intel drm 274432 4 i915,drm_kms_helper snd_hda_codec 94208 4 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller button 16384 1 i915 battery 16384 0 acpi_cpufreq 20480 1 i2c_algo_bit 16384 1 i915 ac 16384 0 snd_hda_core 24576 4 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec,snd_hda_controller video 20480 1 i915 processor 28672 3 acpi_cpufreq shpchp 32768 0 snd_hwdep 16384 1 snd_hda_codec uhci_hcd 45056 0 snd_pcm_oss 45056 0 ehci_pci 16384 0 ehci_hcd 77824 1 ehci_pci snd_mixer_oss 24576 3 snd_pcm_oss snd_pcm 90112 4 snd_pcm_oss,snd_hda_codec,snd_hda_intel,snd_hda_controller usbcore 200704 6 uas,uhci_hcd,ums_realtek,usb_storage,ehci_hcd,ehci_pci snd_timer 28672 3 snd_hrtimer,snd_pcm,snd_seq usb_common 16384 1 usbcore snd 69632 21 snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_mixer_oss soundcore 16384 3 snd ext4 499712 5 crc16 16384 2 ext4,bluetooth mbcache 20480 1 ext4 jbd2 90112 1 ext4 sd_mod 40960 7 ahci 36864 6 libahci 28672 1 ahci libata 200704 2 ahci,libahci scsi_mod 200704 6 sg,uas,usb_storage,libata,sd_mod,sr_mod thermal 20480 0 thermal_sys 36864 3 video,thermal,processor -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.1.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.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.6.6-5 ii debconf [debconf-2.0] 1.5.57 ii dmsetup 2:1.02.90-2.2 ii libc6 2.19-19 Versions of packages cryptsetup recommends: ii busybox 1:1.22.0-15 ii console-setup 1.131 ii initramfs-tools [linux-initramfs-tool] 0.120 ii kbd 1.15.5-2 Versions of packages cryptsetup suggests: ii dosfstools 3.0.28-1 ii keyutils 1.5.9-5+b1 ii liblocale-gettext-perl 1.05-9 -- debconf information: cryptsetup/prerm_active_mappings: true

