[pkg-cryptsetup-devel] Bug#1068848: cryptsetup: Fails to unlock the filesystem with missing libgcc_s.so.1
Jan Katins
jan.katins at gmail.com
Fri Apr 12 08:04:23 BST 2024
Subject: cryptsetup: Fails to unlock the filesystem with missing libgcc_s.so.1
Package: cryptsetup
Version: 2:2.7.2-1
Severity: normal
Dear Maintainer,
After a recent apt upgrade, my system failed to unlock. After a
ctrl-alt-del, I got to the console and there it showed an error about
libgcc_s.so.1 not available and aborting.
Thankfully, I still had a other initrd around (I guess due to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065698, yay for
bugs!).
I snooped around in the source code a bit and found that libgcc_s
seems to be dlopened and is special cased:
https://salsa.debian.org/kernel-team/initramfs-tools/-/blob/master/hook-functions?ref_type=heads#L248-249
(original bugreport:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950254). So my guess
is that nothing depends on libpthread either anymore, and this is the
case: `lsinitramfs initrd.img-6.7.9-amd64 |grep thread` shows no
libpthread (actually nothing). I fixed it now by installing a
update-initramfs hook (thanks to
https://groups.google.com/g/linux.debian.bugs.dist/c/4fi2HaOEC_M):
```
λ cat /etc/initramfs-tools/hooks/libgcc
#!/bin/sh -e
PREREQS=""
case $1 in
prereqs) echo "${PREREQS}"; exit 0;;
esac
. /usr/share/initramfs-tools/hook-functions
copy_file library /lib/x86_64-linux-gnu/libgcc_s.so.1
/lib/x86_64-linux-gnu/libgcc_s.so.1
```
Not sure if that's the right solution, but i got my system back to boot up:
```
λ sudo update-initramfs -k 6.7.9-amd64 -u
λ lsinitramfs initrd.img-6.7.9-amd64 |grep gcc
usr/lib/x86_64-linux-gnu/libgcc_s.so.1
```
It would also be nice if the "gui" view could show the error or at
least tell the user to pres ctrl-alt-del to get to a more informative
view, took me ages to figure out that one :-(
-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.7.9-amd64 root=/dev/mapper/bloodaxe--vg-root ro
quiet splash
-- /etc/crypttab
nvme0n1p3_crypt UUID=8df352e7-81f1-457e-82bc-0d40aa06ea83 none luks,discard
-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/bloodaxe--vg-root / ext4
errors=remount-ro 0 1
# /boot was on /dev/nvme0n1p2 during installation
UUID=1fa0b711-60ed-4c97-b63e-63b57ea38220 /boot ext2
defaults 0 2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=5AC9-21F9 /boot/efi vfat umask=0077 0 1
/dev/mapper/bloodaxe--vg-swap_1 none swap sw
0 0
-- lsmod
Module Size Used by
xt_conntrack 12288 1
nft_chain_nat 12288 3
xt_MASQUERADE 16384 1
nf_nat 65536 2 nft_chain_nat,xt_MASQUERADE
nf_conntrack_netlink 61440 0
nf_conntrack 212992 4
xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 12288 1 nf_conntrack
xfrm_user 61440 1
xfrm_algo 16384 1 xfrm_user
xt_addrtype 12288 2
nft_compat 24576 4
br_netfilter 36864 0
bridge 385024 1 br_netfilter
stp 12288 1 bridge
llc 16384 2 bridge,stp
ctr 12288 2
ccm 20480 6
tun 69632 2
rfcomm 102400 4
uinput 20480 2
cmac 12288 3
algif_hash 12288 1
algif_skcipher 12288 1
af_alg 36864 6 algif_hash,algif_skcipher
snd_seq_dummy 12288 0
snd_hrtimer 12288 1
snd_seq 114688 7 snd_seq_dummy
snd_seq_device 16384 1 snd_seq
nf_tables 372736 57 nft_compat,nft_chain_nat
qrtr 57344 4
overlay 212992 0
bnep 36864 2
binfmt_misc 28672 1
snd_ctl_led 24576 0
snd_soc_skl_hda_dsp 24576 4
snd_soc_hdac_hdmi 45056 1 snd_soc_skl_hda_dsp
snd_sof_probes 24576 0
snd_soc_intel_hda_dsp_common 16384 1 snd_soc_skl_hda_dsp
snd_hda_codec_hdmi 90112 1
snd_hda_codec_realtek 200704 1
snd_hda_codec_generic 114688 1 snd_hda_codec_realtek
snd_soc_dmic 12288 1
snd_sof_pci_intel_cnl 12288 0
snd_sof_intel_hda_common 221184 1 snd_sof_pci_intel_cnl
intel_pmc_core_pltdrv 12288 0
intel_pmc_core 81920 0
soundwire_intel 73728 1 snd_sof_intel_hda_common
soundwire_generic_allocation 12288 1 soundwire_intel
snd_sof_intel_hda_mlink 40960 2 soundwire_intel,snd_sof_intel_hda_common
x86_pkg_temp_thermal 16384 0
soundwire_cadence 45056 1 soundwire_intel
intel_powerclamp 16384 0
snd_sof_intel_hda 24576 1 snd_sof_intel_hda_common
iwlmvm 602112 0
snd_sof_pci 24576 2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
coretemp 16384 0
snd_sof_xtensa_dsp 16384 1 snd_sof_intel_hda_common
kvm_intel 413696 0
snd_sof 364544 4
snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
snd_sof_utils 16384 1 snd_sof
soundwire_bus 114688 3
soundwire_intel,soundwire_generic_allocation,soundwire_cadence
kvm 1363968 1 kvm_intel
mac80211 1388544 1 iwlmvm
snd_soc_skl 204800 0
btusb 86016 0
btrtl 32768 1 btusb
btintel 57344 1 btusb
snd_soc_hdac_hda 28672 2 snd_sof_intel_hda_common,snd_soc_skl
snd_hda_ext_core 40960 6
snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_soc_skl,snd_sof_intel_hda
btbcm 24576 1 btusb
btmtk 16384 1 btusb
snd_soc_sst_ipc 20480 1 snd_soc_skl
snd_soc_sst_dsp 45056 1 snd_soc_skl
bluetooth 1134592 34 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
snd_soc_acpi_intel_match 98304 3
snd_sof_intel_hda_common,snd_soc_skl,snd_sof_pci_intel_cnl
snd_soc_acpi 16384 3
snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_soc_skl
uvcvideo 147456 0
libarc4 12288 1 mac80211
mei_hdcp 28672 0
mei_pxp 16384 0
intel_rapl_msr 20480 0
irqbypass 12288 1 kvm
snd_soc_core 434176 9
soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
rapl 20480 0
videobuf2_vmalloc 20480 1 uvcvideo
nls_ascii 12288 1
intel_cstate 20480 0
nls_cp437 16384 1
uvc 12288 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 36864 1 uvcvideo
vfat 20480 1
iwlwifi 548864 1 iwlmvm
intel_uncore 258048 0
fat 102400 1 vfat
snd_compress 28672 2 snd_soc_core,snd_sof_probes
videodev 372736 2 videobuf2_v4l2,uvcvideo
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_intel 61440 0
sha3_generic 16384 1
iTCO_wdt 12288 0
think_lmi 36864 0
jitterentropy_rng 20480 1
snd_intel_dspcfg 36864 4
snd_hda_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_skl
videobuf2_common 77824 4
videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
intel_pmc_bxt 16384 1 iTCO_wdt
iTCO_vendor_support 12288 1 iTCO_wdt
processor_thermal_device_pci_legacy 12288 0
processor_thermal_device 20480 1 processor_thermal_device_pci_legacy
snd_intel_sdw_acpi 16384 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec 225280 9
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda,snd_soc_skl_hda_dsp
pcspkr 12288 0
firmware_attributes_class 12288 1 think_lmi
wmi_bmof 12288 0
mc 94208 4
videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
drbg 49152 1
processor_thermal_wt_hint 16384 1 processor_thermal_device
thinkpad_acpi 159744 0
cfg80211 1339392 3 iwlmvm,iwlwifi,mac80211
watchdog 49152 1 iTCO_wdt
snd_hda_core 147456 12
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
intel_wmi_thunderbolt 16384 0
processor_thermal_rfim 28672 1 processor_thermal_device
ansi_cprng 12288 0
nvram 12288 1 thinkpad_acpi
snd_hwdep 20480 1 snd_hda_codec
processor_thermal_rapl 16384 1 processor_thermal_device
intel_rapl_common 36864 2 intel_rapl_msr,processor_thermal_rapl
nxp_nci_i2c 16384 0
ledtrig_audio 12288 3 snd_ctl_led,snd_hda_codec_generic,thinkpad_acpi
ecdh_generic 16384 2 bluetooth
snd_pcm 192512 13
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_sof_utils,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
nxp_nci 12288 1 nxp_nci_i2c
ecc 45056 1 ecdh_generic
ucsi_acpi 12288 0
mei_me 57344 2
snd_timer 53248 3 snd_seq,snd_hrtimer,snd_pcm
nci 94208 2 nxp_nci,nxp_nci_i2c
typec_ucsi 61440 1 ucsi_acpi
platform_profile 12288 1 thinkpad_acpi
processor_thermal_wt_req 12288 1 processor_thermal_device
snd 155648 26
snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_soc_hdac_hdmi,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm
processor_thermal_power_floor 16384 1 processor_thermal_device
typec 114688 1 typec_ucsi
nfc 155648 2 nci,nxp_nci
processor_thermal_mbox 12288 4
processor_thermal_power_floor,processor_thermal_wt_req,processor_thermal_rfim,processor_thermal_wt_hint
mei 188416 5 mei_hdcp,mei_pxp,mei_me
soundcore 16384 2 snd_ctl_led,snd
intel_soc_dts_iosf 16384 1 processor_thermal_device_pci_legacy
roles 16384 1 typec_ucsi
intel_pch_thermal 16384 0
int3403_thermal 16384 0
ac 16384 0
joydev 24576 0
rfkill 40960 11 iwlmvm,nfc,bluetooth,thinkpad_acpi,cfg80211
int340x_thermal_zone 16384 2 int3403_thermal,processor_thermal_device
int3400_thermal 20480 0
acpi_tad 20480 0
acpi_thermal_rel 20480 1 int3400_thermal
acpi_pad 184320 0
hid_multitouch 32768 0
evdev 28672 36
serio_raw 16384 0
msr 12288 0
parport_pc 40960 0
ppdev 24576 0
lp 20480 0
parport 81920 3 parport_pc,lp,ppdev
loop 36864 0
configfs 69632 1
efi_pstore 12288 0
nfnetlink 20480 5 nft_compat,nf_conntrack_netlink,nf_tables
ip_tables 28672 0
x_tables 57344 5
xt_conntrack,nft_compat,xt_addrtype,ip_tables,xt_MASQUERADE
autofs4 57344 2
ext4 1130496 2
crc16 12288 2 bluetooth,ext4
mbcache 16384 1 ext4
jbd2 196608 1 ext4
btrfs 2052096 0
blake2b_generic 24576 0
dm_crypt 61440 1
dm_mod 221184 11 dm_crypt
efivarfs 24576 1
raid10 77824 0
raid456 196608 0
async_raid6_recov 20480 1 raid456
async_memcpy 16384 2 raid456,async_raid6_recov
async_pq 16384 2 raid456,async_raid6_recov
async_xor 16384 3 async_pq,raid456,async_raid6_recov
async_tx 16384 5
async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
xor 20480 2 async_xor,btrfs
raid6_pq 122880 4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c 12288 5 nf_conntrack,nf_nat,btrfs,nf_tables,raid456
crc32c_generic 12288 0
raid1 57344 0
raid0 24576 0
multipath 16384 0
linear 16384 0
md_mod 225280 6 raid1,raid10,raid0,linear,raid456,multipath
usbhid 73728 0
i915 3989504 21
hid_generic 12288 0
drm_buddy 20480 1 i915
nvme 57344 3
i2c_algo_bit 12288 1 i915
crc32_pclmul 12288 0
drm_display_helper 233472 1 i915
nvme_core 196608 4 nvme
crc32c_intel 16384 4
xhci_pci 24576 0
t10_pi 20480 1 nvme_core
cec 69632 2 drm_display_helper,i915
rc_core 73728 1 cec
xhci_hcd 356352 1 xhci_pci
crc64_rocksoft_generic 12288 1
ghash_clmulni_intel 16384 0
ttm 106496 1 i915
i2c_hid_acpi 12288 0
crc64_rocksoft 16384 1 t10_pi
sha512_ssse3 53248 1
intel_lpss_pci 24576 0
i2c_hid 40960 1 i2c_hid_acpi
crc_t10dif 16384 1 t10_pi
drm_kms_helper 270336 2 drm_display_helper,i915
hid 176128 6 i2c_hid,usbhid,hid_multitouch,hid_generic
iosm 118784 0
intel_lpss 16384 1 intel_lpss_pci
crct10dif_generic 12288 0
sha512_generic 16384 1 sha512_ssse3
usbcore 409600 5 xhci_hcd,usbhid,uvcvideo,btusb,xhci_pci
thunderbolt 503808 0
crct10dif_pclmul 12288 1
i2c_i801 36864 0
sha256_ssse3 32768 0
crc64 16384 2 crc64_rocksoft,crc64_rocksoft_generic
drm 778240 16
i2c_hid,drm_kms_helper,drm_display_helper,drm_buddy,thinkpad_acpi,i915,ttm
psmouse 208896 0
sha1_ssse3 32768 0
e1000e 360448 0
usb_common 20480 4 xhci_hcd,usbcore,uvcvideo,typec_ucsi
wwan 28672 1 iosm
i2c_smbus 16384 1 i2c_i801
crct10dif_common 12288 3 crct10dif_generic,crc_t10dif,crct10dif_pclmul
idma64 20480 0
video 77824 2 thinkpad_acpi,i915
battery 28672 1 thinkpad_acpi
wmi 40960 4 video,intel_wmi_thunderbolt,wmi_bmof,think_lmi
button 24576 0
aesni_intel 360448 10
crypto_simd 16384 1 aesni_intel
cryptd 28672 4 crypto_simd,ghash_clmulni_intel
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.7.9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages cryptsetup depends on:
ii cryptsetup-bin 2:2.7.2-1
ii debconf [debconf-2.0] 1.5.86
ii dmsetup 2:1.02.196-1+b1
ii libc6 2.37-16
cryptsetup recommends no packages.
Versions of packages cryptsetup suggests:
ii cryptsetup-initramfs 2:2.7.2-1
ii dosfstools 4.2-1.1
ii keyutils 1.6.3-3
ii liblocale-gettext-perl 1.07-7
-- debconf information:
cryptsetup/prerm_active_mappings: true
More information about the pkg-cryptsetup-devel
mailing list