Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1021427: cryptsetup: no input on kernel 6.0

21 views
Skip to first unread message

mahashakti89

unread,
Oct 8, 2022, 6:10:04 AM10/8/22
to
Package: cryptsetup
Version: 2:2.5.0-5
Severity: important

Hi,

Cryptsetup won't work on kernel 6.0. No password input at all. No possibility
to enter the password despite the fact that the keyboard is working
(Ctr+Alt+Supp is working, same for magic system keys)

Working on kernel 5.19

Regards


-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.19.0-amd64 root=UUID=5aa1290e-eade-4b44-afbd-33d5c9e95e54 ro net.ifnames=0 acpi_enforce_resources=lax random.trust_cpu=on rd.driver.blacklist=nouveau

-- /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

tmpfs /tmp tmpfs noatime,nosuid 0 0

#Entry for /dev/nvme0n1p1 :
UUID=A365-59D6 /boot/efi vfat defaults 0 2

#Entry for /dev/nvme0n1p2:
UUID=37b64e85-74a0-4061-97dc-72e1ee38c2a5 /boot ext4 defaults 0 0

#Entry for /dev/nvme0n1p3 :
UUID=5aa1290e-eade-4b44-afbd-33d5c9e95e54 / xfs defaults,noatime 0 1

#Entry for /dev/mapper/cryptpart :
/dev/mapper/cryptpart /home xfs defaults,noatime 0 1

#Entry for /dev/mapper/cryptdata :
/dev/mapper/cryptdata /data xfs defaults,noatime 0 0

#Entry for /dev/mapper/cryptdata2
/dev/mapper/cryptdata2 /data2 xfs defaults,noatime 0 0

#Entry for /dev/sdd2
UUID=252FB67D7B72D4AE /mnt/Depot ntfs defaults,noauto 0 0

#Entry for /dev/nvme1n1p2 :
UUID=607eee2430c53bea /mnt/FreeBSD ufs ufstype=ufs2,rw,noauto 0 0

#Entry forGhostBSD :
UUID=60695ace2fd30e88 /mnt/GhostBSD ufs ufstype=ufs2,rw,noauto 0 0


#Entry for /dev/nvme1n1p3 :
UUID=db683b07-538e-4155-a2a7-27ae4a62ce26 /mnt/Ubuntu xfs defaults,noauto 0 0

#Entry for /dev/nvme1n1p4
UUID=7fcc9db5-57df-4ee4-9366-bd36d18947ee /mnt/ArchLinux xfs defaults,noauto 0 0

#Entry for /dev/sda4 :
UUID=125878075877E7BD /mnt/Windows10 ntfs defaults,noauto 0 0

#Entry for /dev/sdb2
UUID=5f284e7a61442261 /mnt/GhostBSD ufs ufstype=ufs2,rw,noauto 0 0

#Entry for /dev/mapper/cryptsauv :
/dev/mapper/cryptsauv /mnt/backup xfs defaults,noauto,noatime 0 0

#Entry for /dev/mapper/coffre
/dev/mapper/coffre /mnt/coffre btrfs defaults,noauto 0 0

#Entry for /dev/mapper/coffre2 :
UUID=4a68fb43-5762-46ff-b3ee-ffd54ecc4f91 /mnt/coffre2 xfs defaults,noauto 0 0

#Entry for /dev/mapper/cryptswap :
/dev/mapper/cryptswap none swap sw 0 0

/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0

UUID=700E820227C89CF3 /media/LINUX ntfs noauto,uid=1000,gid=1000 0 0

#UUID=5061-59BD /media/COWONJ3 vfat user,noauto,rw,umask=022,uid=1000,gid=1000 0 0
#UUID=5B07-3758 /media/COWONJ3-II vfat user,noauto,rw,umask=022,uid=1000,gid=1000 0 0


#/dev/sdc2 /mnt/OpenBSD ufs ufstype=44bsd,noauto,rw 0 0


-- lsmod
Module Size Used by
xt_recent 24576 1
xt_hashlimit 20480 4
xt_comment 16384 1
xt_mark 16384 1
nft_chain_nat 16384 4
xt_NFLOG 16384 0
nfnetlink_log 24576 0
nf_nat_tftp 16384 0
nf_nat_snmp_basic 20480 0
nf_conntrack_snmp 16384 1 nf_nat_snmp_basic
nf_nat_sip 20480 0
nf_nat_pptp 20480 0
nf_nat_irc 20480 0
nf_nat_h323 24576 0
nf_nat_ftp 20480 0
nf_nat_amanda 16384 0
ts_kmp 16384 6
nf_conntrack_amanda 16384 1 nf_nat_amanda
nf_nat 53248 8 nf_nat_irc,nf_nat_ftp,nf_nat_tftp,nf_nat_amanda,nf_nat_pptp,nf_nat_h323,nft_chain_nat,nf_nat_sip
nf_conntrack_sane 20480 0
nf_conntrack_tftp 20480 1 nf_nat_tftp
nf_conntrack_sip 45056 1 nf_nat_sip
nf_conntrack_pptp 24576 1 nf_nat_pptp
nf_conntrack_netlink 57344 0
nf_conntrack_netbios_ns 16384 0
nf_conntrack_broadcast 16384 2 nf_conntrack_netbios_ns,nf_conntrack_snmp
nf_conntrack_irc 20480 1 nf_nat_irc
nf_conntrack_h323 77824 1 nf_nat_h323
nf_conntrack_ftp 24576 1 nf_nat_ftp
rfcomm 90112 4
cmac 16384 3
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 36864 6 algif_hash,algif_skcipher
bnep 28672 2
xt_hl 16384 22
ip6_tables 32768 52
ip6t_rt 20480 3
ip6t_REJECT 16384 3
nf_reject_ipv6 20480 1 ip6t_REJECT
xt_LOG 20480 9
nf_log_syslog 24576 9
nft_limit 16384 6
xt_limit 16384 0
xt_addrtype 16384 8
xt_tcpudp 20480 0
xt_conntrack 16384 14
nf_conntrack 180224 22 xt_conntrack,nf_nat_irc,nf_nat,nf_conntrack_tftp,nf_nat_ftp,nf_conntrack_pptp,nf_conntrack_netbios_ns,nf_conntrack_sane,nf_nat_tftp,nf_nat_amanda,nf_conntrack_sip,nf_conntrack_h323,nf_nat_pptp,nf_conntrack_broadcast,nf_conntrack_irc,nf_conntrack_amanda,nf_conntrack_netlink,nf_conntrack_ftp,nf_nat_h323,nf_conntrack_snmp,nf_nat_snmp_basic,nf_nat_sip
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
ipt_REJECT 16384 4
nf_reject_ipv4 16384 1 ipt_REJECT
nft_compat 20480 123
nf_tables 282624 560 nft_compat,nft_chain_nat,nft_limit
nfnetlink 20480 4 nft_compat,nf_conntrack_netlink,nf_tables,nfnetlink_log
binfmt_misc 24576 1
dm_crypt 57344 4
nvidia_drm 69632 5
nvidia_modeset 1150976 7 nvidia_drm
btusb 69632 0
btrtl 28672 1 btusb
snd_hda_codec_realtek 167936 1
intel_rapl_msr 20480 0
btbcm 24576 1 btusb
btmtk 16384 1 btusb
snd_hda_codec_generic 94208 1 snd_hda_codec_realtek
btintel 45056 1 btusb
nls_ascii 16384 2
intel_rapl_common 28672 1 intel_rapl_msr
nvidia 40869888 373 nvidia_modeset
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec_hdmi 77824 1
nls_cp437 20480 2
iwlmvm 368640 0
bluetooth 942080 34 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
vfat 24576 2
pktcdvd 49152 0
snd_hda_intel 57344 4
edac_mce_amd 40960 0
fat 86016 1 vfat
uvcvideo 126976 0
mac80211 1110016 1 iwlmvm
snd_intel_dspcfg 36864 1 snd_hda_intel
jitterentropy_rng 16384 1
drm_kms_helper 200704 1 nvidia_drm
videobuf2_vmalloc 20480 1 uvcvideo
videobuf2_memops 20480 1 videobuf2_vmalloc
snd_hda_codec 184320 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
videobuf2_v4l2 36864 1 uvcvideo
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
libarc4 16384 1 mac80211
videobuf2_common 69632 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
kvm_amd 155648 0
snd_hwdep 16384 1 snd_hda_codec
drbg 45056 1
ext4 921600 1
ansi_cprng 16384 0
iwlwifi 352256 1 iwlmvm
fb_sys_fops 16384 1 drm_kms_helper
snd_hda_core 114688 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_pcsp 16384 1
videodev 278528 3 videobuf2_v4l2,uvcvideo,videobuf2_common
snd_pcm 151552 5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcsp,snd_hda_core
kvm 1081344 1 kvm_amd
snd_timer 45056 1 snd_pcm
irqbypass 16384 1 kvm
nvidiafb 57344 0
ecdh_generic 16384 2 bluetooth
snd 114688 19 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcsp,snd_pcm
vgastate 20480 1 nvidiafb
evdev 24576 32
ecc 40960 1 ecdh_generic
mbcache 16384 1 ext4
rapl 24576 0
joydev 28672 0
efi_pstore 16384 0
mc 69632 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
ccp 49152 1 kvm_amd
fb_ddc 16384 1 nvidiafb
soundcore 16384 1 snd
crc16 16384 2 bluetooth,ext4
jbd2 163840 1 ext4
cfg80211 1064960 3 iwlmvm,iwlwifi,mac80211
asus_ec_sensors 16384 0
button 24576 0
acpi_cpufreq 32768 0
mxm_wmi 16384 0
wmi_bmof 16384 0
k10temp 16384 0
nct6775 28672 0
nct6775_core 77824 1 nct6775
hwmon_vid 20480 1 nct6775
wmi 36864 3 nct6775,wmi_bmof,mxm_wmi
ecryptfs 122880 0
drm 577536 9 drm_kms_helper,nvidia,nvidia_drm
fuse 167936 5
configfs 53248 1
efivarfs 24576 1
ip_tables 32768 1
x_tables 57344 17 xt_conntrack,nft_compat,xt_LOG,xt_NFLOG,xt_tcpudp,xt_hashlimit,xt_addrtype,xt_recent,ip6t_rt,xt_comment,ip6_tables,ipt_REJECT,ip_tables,xt_limit,xt_hl,ip6t_REJECT,xt_mark
autofs4 49152 2
xfs 1822720 4
btrfs 1654784 0
blake2b_generic 20480 0
xor 24576 1 btrfs
raid6_pq 122880 1 btrfs
zstd_compress 303104 1 btrfs
libcrc32c 16384 5 nf_conntrack,nf_nat,btrfs,nf_tables,xfs
crc32c_generic 16384 0
dm_mirror 28672 0
dm_region_hash 24576 1 dm_mirror
dm_log 20480 2 dm_region_hash,dm_mirror
hid_logitech_hidpp 53248 0
dm_mod 167936 12 dm_crypt,dm_log,dm_mirror
hid_logitech_dj 28672 0
hid_generic 16384 0
usbhid 65536 1 hid_logitech_dj
hid 151552 10 usbhid,hid_generic,hid_logitech_dj,hid_logitech_hidpp
crct10dif_pclmul 16384 1
crc32_pclmul 16384 0
crc32c_intel 24576 2
ghash_clmulni_intel 16384 0
xhci_pci 24576 0
ahci 49152 4
xhci_pci_renesas 20480 1 xhci_pci
libahci 49152 1 ahci
r8169 98304 0
aesni_intel 393216 12
xhci_hcd 303104 1 xhci_pci
realtek 32768 1
libaes 16384 2 bluetooth,aesni_intel
crypto_simd 16384 1 aesni_intel
cryptd 24576 7 crypto_simd,ghash_clmulni_intel
mdio_devres 16384 1 r8169
igb 258048 0
libata 389120 2 libahci,ahci
usbcore 331776 5 xhci_hcd,usbhid,uvcvideo,btusb,xhci_pci
nvme 49152 4
libphy 176128 3 r8169,mdio_devres,realtek
nvme_core 143360 5 nvme
i2c_algo_bit 16384 2 nvidiafb,igb
usb_common 16384 3 xhci_hcd,usbcore,uvcvideo


-- System Information:
Debian Release: bookworm/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8), LANGUAGE=fr
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.5.0-5
ii debconf [debconf-2.0] 1.5.79
ii dmsetup 2:1.02.185-1
ii libc6 2.35-2

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii cryptsetup-initramfs 2:2.5.0-5
ii dosfstools 4.2-1
ii keyutils 1.6.3-1
ii liblocale-gettext-perl 1.07-4+b2

-- debconf information:
* cryptsetup/prerm_active_mappings: true

Guilhem Moulin

unread,
Oct 8, 2022, 6:40:47 AM10/8/22
to
Control: tag -1 moreinfo unreproducible

On Sat, 08 Oct 2022 at 11:58:16 +0200, mahashakti89 wrote:
> Cryptsetup won't work on kernel 6.0. No password input at all.

cryptsetup's autopkgtests passed with linux/6.0~rc7-1~exp1 and the “Please
unlock disk $NAME: […] set up successfully” messages are visible from the log.
https://ci.debian.net/data/autopkgtest/unstable/amd64/c/cryptsetup/26723257/log.gz

Please provide more information and a debug log: are you trying to
unlock at initramfs (early boot) stage or later in the system? If
that's for early boot stage, did you make sure the keyboard is working
at early boot as well? How are you trying to unlock the system?

--
Guilhem.
signature.asc

Guilhem Moulin

unread,
Oct 8, 2022, 6:51:15 AM10/8/22
to
On Sat, 08 Oct 2022 at 12:27:20 +0200, Guilhem Moulin wrote:
> On Sat, 08 Oct 2022 at 11:58:16 +0200, mahashakti89 wrote:
>> Cryptsetup won't work on kernel 6.0. No password input at all.
>
> cryptsetup's autopkgtests passed with linux/6.0~rc7-1~exp1 and the “Please
> unlock disk $NAME: […] set up successfully” messages are visible from the log.
> https://ci.debian.net/data/autopkgtest/unstable/amd64/c/cryptsetup/26723257/log.gz

Ah no my bad, while linux/6.0~rc7-1~exp1 (from experimental) is the
trigger, the above log shows the test actually runs under
linux-image-5.19.0-2-amd64 (from unstable). But it passes equally fine
with 6.0.0-rc7-amd64:

Loading Linux 6.0.0-rc7-amd64 ...Loading Linux 6.0.0-rc7-amd64 ..
[…]
Please unlock disk vda3_crypt:
cryptsetup: vda3_crypt: set up successfully
done.

--
Guilhem.
signature.asc

Mahashakti89

unread,
Oct 8, 2022, 7:10:04 AM10/8/22
to
Le Sat, 8 Oct 2022 12:27:20 +0200,
Guilhem Moulin <gui...@debian.org> a �crit :



> Control: tag -1 moreinfo unreproducible
>
> On Sat, 08 Oct 2022 at 11:58:16 +0200, mahashakti89 wrote:
> > Cryptsetup won't work on kernel 6.0. No password input at all.
>
> cryptsetup's autopkgtests passed with linux/6.0~rc7-1~exp1 and the
> “Please unlock disk $NAME: […] set up successfully” messages are
> visible from the log.
> https://ci.debian.net/data/autopkgtest/unstable/amd64/c/cryptsetup/26723257/log.gz

I forgot to mention it worked at the very beginning of 6.0 kernel
After pulling the latest commits it didn't work anymore




>
> Please provide more information and a debug log: are you trying to
> unlock at initramfs (early boot) stage or later in the system? If
> that's for early boot stage, did you make sure the keyboard is working
> at early boot as well? How are you trying to unlock the system?

Only the home parttion is encrypted. Decryption process is taking place
later on through password input.

I apologize for my poor english

Regards

--
Lumière de tous les chakras ! ⚡⚡⚡🤣 🤣🤣

Guilhem Moulin

unread,
Oct 8, 2022, 7:31:08 AM10/8/22
to
On Sat, 08 Oct 2022 at 12:48:59 +0200, Mahashakti89 wrote:
> I forgot to mention it worked at the very beginning of 6.0 kernel
> After pulling the latest commits it didn't work anymore

Ah, so you're building your own kernel? You might want to bisect then
to identify the culprit :-)

>> Please provide more information and a debug log: are you trying to
>> unlock at initramfs (early boot) stage or later in the system? If
>> that's for early boot stage, did you make sure the keyboard is working
>> at early boot as well? How are you trying to unlock the system?
>
> Only the home parttion is encrypted. Decryption process is taking place
> later on through password input.

That prompt likely comes from systemd-ask-password(1) not cryptsetup.

--
Guilhem.
signature.asc
0 new messages