[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#878829: initramfs-tools: system freezes at boot with MODULES=dep



Package: initramfs-tools
Version: 0.130
Severity: important

Hi.

The following is a quite strange problem, and it may actually be a kernel bug.

Few days ago, I got a new notebook (a Fujitsu U757), before I removed the HDD from
the old one, I changed MODULES=most on the old and updated the initramfs.
This was with kernel 4.13.4-1.

Then I moved the HDD to the new notebook, and everything worked fine.

Yesterday I've upgraded to 4.13.4-2 and then during booting the system freezes.

First I thought it must be because of the kernel, but after some trying, I
remebered that I've changed MODULES back to =dep and may not have put an updated
initrmafs in place. Downgrading to the older kernel, and trying with dep seems
to confirm this. The system freezes as well.


Some further detail:
My system is fully encrypted with dm-crypt and I boot from a USB stick.
So the kernel, initramfs and a gpg-encrypted key is on the USB stick.
(I don't use the keyscripts from Debian as they have issues, but my own
basically just mounts a device by UUID, asks for a password and tries to
decrypt the file from the device, which contains the key).

This is also why my /etc/initramfs-tools/modules contains the
modules for USB.


Now, when I boot with a initramfs created with MODULES=dep, it
goes until my keyscripts asks me for the password (which means that
the fs on the USB stick must have been found mounted and unmounted
already (this is done with passdev from cryptsetup, which mounts, reads the
key file and unmounts)).

At that pount (the password prompt printed) the system is frozen.
No keyboard activity, nothing printed to the konsole when I remove or add
e.g. USB sticks, MagicSysRQ doesn't work either.

The only thing that helps is a hard power down.

On some (but not all occasions) I saw some graphical distortions on the screen,
e.g. parts of a character row overwritten by a small black line.


As soon as I use MODULES=most, everything works fine again.


>From the behaviour I'd say there is some kernel bug here as well, as it freezes
and doesn't even panic or so.
Feel free to immediately reassign to the kernel if you agree.


I'd be greateful for any other advice on how to debug this.

Cheers,
Chris.


-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 14M Oct 17 01:33 /boot/initrd.img-4.13.0-1-amd64
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.13.0-1-amd64 root=UUID=4b769edc-b2cc-11e7-8f8a-38afd7a81270 ro rootflags=subvol=root

-- /proc/filesystems
	btrfs
	ext3
	ext2
	ext4
	fuseblk

-- lsmod
Module                  Size  Used by
ctr                    16384  4
ccm                    20480  6
fuse                   98304  3
ebtable_filter         16384  0
ebtables               32768  1 ebtable_filter
devlink                40960  0
cpufreq_userspace      16384  0
cpufreq_powersave      16384  0
cpufreq_conservative    16384  0
snd_hda_codec_hdmi     49152  1
arc4                   16384  2
snd_hda_codec_realtek    94208  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
i2c_designware_platform    16384  0
i2c_designware_core    20480  1 i2c_designware_platform
snd_soc_skl            77824  0
snd_soc_skl_ipc        49152  1 snd_soc_skl
snd_soc_sst_ipc        16384  1 snd_soc_skl_ipc
snd_soc_sst_dsp        32768  1 snd_soc_skl_ipc
snd_hda_ext_core       24576  1 snd_soc_skl
snd_soc_sst_match      16384  1 snd_soc_skl
snd_soc_core          217088  1 snd_soc_skl
intel_rapl             20480  0
snd_compress           20480  1 snd_soc_core
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             196608  0
btusb                  45056  0
kvm                   577536  1 kvm_intel
btrtl                  16384  1 btusb
hci_uart               90112  0
irqbypass              16384  1 kvm
intel_cstate           16384  0
btqca                  16384  1 hci_uart
btbcm                  16384  2 hci_uart,btusb
btintel                16384  2 hci_uart,btusb
uvcvideo               90112  0
bluetooth             540672  7 btrtl,hci_uart,btintel,btqca,btbcm,btusb
iwlmvm                258048  0
intel_uncore          122880  0
videobuf2_vmalloc      16384  1 uvcvideo
mac80211              659456  1 iwlmvm
snd_hda_intel          36864  3
intel_rapl_perf        16384  0
videobuf2_memops       16384  1 videobuf2_vmalloc
pcspkr                 16384  0
videobuf2_v4l2         24576  1 uvcvideo
snd_hda_codec         126976  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
joydev                 20480  0
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
evdev                  24576  22
cdc_mbim               16384  0
iwlwifi               167936  1 iwlmvm
serio_raw              16384  0
cdc_wdm                20480  1 cdc_mbim
snd_hda_core           77824  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_soc_skl,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
cdc_ncm                36864  1 cdc_mbim
snd_pcm                98304  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_hda_core,snd_soc_skl,snd_hda_codec_hdmi,snd_soc_core
usbnet                 45056  2 cdc_mbim,cdc_ncm
snd_timer              32768  1 snd_pcm
videodev              167936  3 uvcvideo,videobuf2_core,videobuf2_v4l2
mii                    16384  1 usbnet
snd                    77824  16 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
ucsi_acpi              16384  0
iTCO_wdt               16384  0
drbg                   28672  1
media                  40960  2 uvcvideo,videodev
typec_ucsi             24576  1 ucsi_acpi
iTCO_vendor_support    16384  1 iTCO_wdt
soundcore              16384  1 snd
cfg80211              602112  3 iwlmvm,iwlwifi,mac80211
ansi_cprng             16384  0
idma64                 20480  0
i915                 1552384  15
sg                     32768  0
wmi                    24576  0
typec                  24576  1 typec_ucsi
fujitsu_laptop         20480  0
drm_kms_helper        151552  1 i915
battery                20480  0
intel_lpss_pci         20480  0
ecdh_generic           24576  1 bluetooth
rfkill                 24576  5 bluetooth,cfg80211
drm                   348160  6 i915,drm_kms_helper
ip6t_REJECT            16384  3
intel_lpss_acpi        16384  0
tpm_crb                16384  0
mei_me                 40960  0
nf_reject_ipv6         16384  1 ip6t_REJECT
button                 16384  1 i915
mei                    98304  1 mei_me
sparse_keymap          16384  1 fujitsu_laptop
intel_lpss             16384  2 intel_lpss_pci,intel_lpss_acpi
i2c_algo_bit           16384  1 i915
mfd_core               16384  1 intel_lpss
video                  40960  2 fujitsu_laptop,i915
ac                     16384  0
acpi_pad               24576  0
shpchp                 36864  0
xt_tcpudp              16384  1
nf_conntrack_ipv6      20480  4
nf_defrag_ipv6         36864  1 nf_conntrack_ipv6
ip6table_filter        16384  1
ip6_tables             28672  1 ip6table_filter
xt_policy              16384  4
ipt_REJECT             16384  3
nf_reject_ipv4         16384  1 ipt_REJECT
xt_comment             16384  1
nf_conntrack_ipv4      16384  4
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
xt_multiport           16384  5
xt_conntrack           16384  8
nf_conntrack          131072  3 nf_conntrack_ipv6,nf_conntrack_ipv4,xt_conntrack
binfmt_misc            20480  1
iptable_filter         16384  1
sunrpc                331776  1
loop                   28672  0
parport_pc             28672  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,parport_pc,ppdev
ip_tables              24576  1 iptable_filter
x_tables               36864  12 xt_comment,xt_multiport,ipt_REJECT,ip_tables,ebtables,iptable_filter,xt_tcpudp,ip6t_REJECT,ip6table_filter,xt_policy,xt_conntrack,ip6_tables
autofs4                40960  2
algif_skcipher         20480  0
af_alg                 16384  1 algif_skcipher
ext4                  614400  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                   98304  1 ext4
fscrypto               28672  1 ext4
ecb                    16384  0
dm_crypt               36864  1
dm_mod                118784  3 dm_crypt
raid10                 49152  0
raid456               143360  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_xor,async_pq,raid456,async_memcpy,async_raid6_recov
libcrc32c              16384  2 nf_conntrack,raid456
raid1                  40960  0
raid0                  20480  0
multipath              16384  0
linear                 16384  0
md_mod                139264  6 raid1,raid10,multipath,linear,raid0,raid456
btrfs                1089536  1
crc32c_generic         16384  0
xor                    24576  2 async_xor,btrfs
uas                    24576  0
raid6_pq              118784  4 async_pq,btrfs,raid456,async_raid6_recov
uhci_hcd               45056  0
ehci_pci               16384  0
ehci_hcd               81920  1 ehci_pci
usb_storage            69632  1 uas
sd_mod                 49152  2
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  2
ghash_clmulni_intel    16384  0
pcbc                   16384  0
aesni_intel           188416  6
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 24576  4 crypto_simd,ghash_clmulni_intel,aesni_intel
psmouse               143360  0
e1000e                241664  0
ptp                    20480  1 e1000e
pps_core               20480  1 ptp
i2c_i801               24576  0
ahci                   36864  1
sdhci_pci              28672  0
libahci                32768  1 ahci
sdhci                  45056  1 sdhci_pci
xhci_pci               16384  0
libata                237568  2 ahci,libahci
mmc_core              139264  2 sdhci,sdhci_pci
xhci_hcd              208896  1 xhci_pci
scsi_mod              212992  5 sd_mod,usb_storage,libata,uas,sg
usbcore               245760  13 usbnet,uvcvideo,usb_storage,cdc_mbim,ehci_hcd,cdc_ncm,uhci_hcd,cdc_wdm,xhci_pci,btusb,uas,xhci_hcd,ehci_pci
usb_common             16384  1 usbcore
i2c_hid                20480  0
hid                   118784  1 i2c_hid

-- /etc/initramfs-tools/modules
usb-storage
xhci-hcd
xhci-pci
ehci-hcd
ehci-pci
uhci-hcd
btrfs

-- /etc/kernel-img.conf
#warn_reboot = yes
#silent_modules = no
#ignore_depmod_err = no

#clobber_modules = no

#relink_src_link = yes
#relink_build_link = yes
#force_build_link = no


#preinst_hook = 
#postinst_hook = 
#prerm_hook = 
#postrm_hook = 

#src_postinst_hook = 
#header_postinst_hook = 

-- /etc/initramfs-tools/initramfs.conf
MODULES=dep
BUSYBOX=auto
KEYMAP=n
COMPRESS=xz
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
unused devices: <none>

-- /sys/block
dm-0
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
sda

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
cryptopenpgp

/usr/share/initramfs-tools/hooks:
btrfs
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
cryptroot-unlock
dmsetup
fsck
fuse
keymap
klibc-utils
kmod
lvm2
mdadm
nbd
ntfs_3g
reiserfsprogs
resume
thermal
udev
v86d
zz-busybox


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DE.UTF-8, LC_CTYPE=en_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools depends on:
ii  initramfs-tools-core  0.130
ii  linux-base            4.5

initramfs-tools recommends no packages.

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:2.1-4.3

-- no debconf information


Reply to: