Kubuntu 24.04 freezes after plugging in ethernet cable

Bug #2073358 reported by samvimes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
In Progress
High
AaronMa
Noble
In Progress
High
Unassigned
linux-oem-6.8 (Ubuntu)
Invalid
High
Unassigned
Noble
In Progress
High
Unassigned

Bug Description

I can reliably reproduce this freeze by:

1. Waking my Thinkpad T490 from suspend
2. Plugging in the ethernet cable

The result is a total system freeze; it's not possible to do anything, neither mouse nor keyboard work - the only way to shutdown is via REISUB.

I've attached a dmesg log, starting at the time I plugged in the cable.

It starts with:
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: e1000e 0000:00:1f.6 enp0s31f6: NIC Link is Up 1000 Mbps Half Duplex, Flow Control: None
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: BUG: scheduling while atomic: kworker/7:4/23723/0x00000002
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: Modules linked in: bnep snd_seq_dummy snd_hrtimer snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device cmac ccm nf_tables libcrc32c qrtr snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_hda_codec_hdmi snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_ctl_led snd_soc_acpi_intel_match snd_soc_acpi snd_hda_codec_realtek soundwire_generic_allocation snd_hda_codec_generic soundwire_bus snd_soc_core intel_uncore_frequency snd_compress ac97_bus intel_uncore_frequency_common snd_pcm_dmaengine intel_pmc_core_pltdrv intel_pmc_core snd_hda_intel binfmt_misc btusb intel_vsec uvcvideo btrtl snd_intel_dspcfg pmt_telemetry cmdlinepart videobuf2_vmalloc pmt_class snd_intel_sdw_acpi btintel iwlmvm processor_thermal_device_pci_legacy uvc spi_nor intel_tcc_cooling snd_hda_codec btbcm processor_thermal_device videobuf2_memops processor_thermal_wt_hint x86_pkg_temp_thermal nls_iso8859_1 mtd
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: mei_hdcp mei_pxp ee1004 intel_rapl_msr mac80211 videobuf2_v4l2 btmtk snd_hda_core intel_powerclamp videodev snd_hwdep processor_thermal_rfim i915 libarc4 bluetooth coretemp processor_thermal_rapl iwlwifi snd_pcm drm_buddy videobuf2_common spi_intel_pci think_lmi rapl intel_rapl_common ecdh_generic ttm processor_thermal_wt_req intel_cstate drm_display_helper i2c_i801 firmware_attributes_class intel_wmi_thunderbolt mc wmi_bmof ecc processor_thermal_power_floor spi_intel mei_me snd_timer cec cfg80211 i2c_smbus processor_thermal_mbox rc_core intel_soc_dts_iosf mei i2c_algo_bit intel_pch_thermal thinkpad_acpi int3403_thermal nvram int340x_thermal_zone int3400_thermal acpi_thermal_rel acpi_pad joydev input_leds mac_hid serio_raw msr parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_tables x_tables autofs4 hid_generic usbhid hid dm_crypt rtsx_pci_sdmmc crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic nvme ghash_clmulni_intel snd sha256_ssse3 intel_lpss_pci ucsi_acpi nvme_core soundcore
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: typec_ucsi sha1_ssse3 intel_lpss xhci_pci video psmouse e1000e rtsx_pci nvme_auth idma64 typec xhci_pci_renesas ledtrig_audio platform_profile wmi pinctrl_cannonlake aesni_intel crypto_simd cryptd
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: CPU: 7 PID: 23723 Comm: kworker/7:4 Not tainted 6.8.0-38-generic #38-Ubuntu
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: Hardware name: LENOVO 20N3S7BC02/20N3S7BC02, BIOS N2IETA4W (1.82 ) 02/22/2024
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: Workqueue: events e1000_watchdog_task [e1000e]
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: Call Trace:
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: <TASK>
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: dump_stack_lvl+0x76/0xa0
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: dump_stack+0x10/0x20
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: __schedule_bug+0x64/0x80
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: schedule_debug.isra.0+0xdb/0x130
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: __schedule+0x69/0x6b0
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: schedule+0x33/0x110
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: schedule_hrtimeout_range_clock+0xbc/0x150
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: ? __pfx_hrtimer_wakeup+0x10/0x10
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: schedule_hrtimeout_range+0x13/0x30
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: usleep_range_state+0x65/0xa0
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: e1000e_read_phy_reg_mdic+0x98/0x2a0 [e1000e]
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: e1000e_update_phy_stats+0x85/0x290 [e1000e]
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: e1000e_update_stats+0x4c9/0x4e0 [e1000e]
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: e1000_watchdog_task+0xf7/0xa80 [e1000e]
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: process_one_work+0x16c/0x350
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: worker_thread+0x306/0x440
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: ? _raw_spin_lock_irqsave+0xe/0x20
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: ? __pfx_worker_thread+0x10/0x10
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: kthread+0xef/0x120
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: ? __pfx_kthread+0x10/0x10
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: ret_from_fork+0x44/0x70
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: ? __pfx_kthread+0x10/0x10
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: ret_from_fork_asm+0x1b/0x30
Jul 17 10:02:20 matthias-ThinkPad-T490 kernel: </TASK>
Jul 17 10:02:24 matthias-ThinkPad-T490 kwin_x11[2256]: kwin_core: XCB error: 152 (BadDamage), sequence: 64603, resource id: 14990918, major code: 143 (DAMAGE), minor code: 3 (Subtract)
Jul 17 10:02:45 matthias-ThinkPad-T490 kernel: watchdog: BUG: soft lockup - CPU#7 stuck for 26s! [kworker/7:1:27982]

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-6.8.0-38-generic 6.8.0-38.38
ProcVersionSignature: Ubuntu 6.8.0-38.38-generic 6.8.8
Uname: Linux 6.8.0-38-generic x86_64
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/seq: matthias 2025 F.... pipewire
 /dev/snd/controlC0: matthias 2027 F.... wireplumber
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Wed Jul 17 10:24:15 2024
InstallationDate: Installed on 2022-12-13 (582 days ago)
InstallationMedia: Kubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
 Bus 001 Device 003: ID 04f2:b681 Chicony Electronics Co., Ltd ThinkPad T490 Webcam
 Bus 001 Device 004: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprint Reader
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
MachineType: LENOVO 20N3S7BC02
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.8.0-38-generic root=/dev/mapper/vgkubuntu-root ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-6.8.0-38-generic N/A
 linux-backports-modules-6.8.0-38-generic N/A
 linux-firmware 20240318.git3b128b60-0ubuntu2.1
SourcePackage: linux
UpgradeStatus: Upgraded to noble on 2024-06-24 (23 days ago)
dmi.bios.date: 02/22/2024
dmi.bios.release: 1.82
dmi.bios.vendor: LENOVO
dmi.bios.version: N2IETA4W (1.82 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20N3S7BC02
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.26
dmi.modalias: dmi:bvnLENOVO:bvrN2IETA4W(1.82):bd02/22/2024:br1.82:efr1.26:svnLENOVO:pn20N3S7BC02:pvrThinkPadT490:rvnLENOVO:rn20N3S7BC02:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20N3_BU_Think_FM_ThinkPadT490:
dmi.product.family: ThinkPad T490
dmi.product.name: 20N3S7BC02
dmi.product.sku: LENOVO_MT_20N3_BU_Think_FM_ThinkPad T490
dmi.product.version: ThinkPad T490
dmi.sys.vendor: LENOVO

[Impact]
Intel e1000e driver will be hang after suspend due to:
861e8086029e ("e1000e: move force SMBUS from enable ulp function to avoid PHY loss issue")

[Fix]
Adjust the smbus logic during suspend to fix the issue.
Upstream fix:
bfd546a552e1 e1000e: move force SMBUS near the end of enable_ulp function
76a0a3f9cc2f e1000e: fix force smbus during suspend flow

[Test]
Bug reporter tested on hardware, e1000e works fine after suspend.

[Where problems could occur]
It may break e1000e driver.

Revision history for this message
samvimes (samvimes) wrote :
summary: - Ubuntu 24.04 freezes after plugging in ethernet cable
+ Kubuntu 24.04 freezes after plugging in ethernet cable
Revision history for this message
AaronMa (mapengyu) wrote :

It should be the issue as following:

https://lore<email address hidden>/

and fixed by:
https://<email address hidden>/
https://lore.kernel<email address hidden>/

Changed in linux (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → AaronMa (mapengyu)
Revision history for this message
AaronMa (mapengyu) wrote :

Could you try the test kernel that backported 2 commits above?

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2073047/comments/7

Revision history for this message
samvimes (samvimes) wrote :

The kernel from https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2073047/comments/7 does seem to fix the problem. I've now repeated the process (waking from suspend + plugging in ethernet) two times without problems (I've also had to disable secure boot but that doesn't have an effect here, I guess)

Revision history for this message
AaronMa (mapengyu) wrote :

Thanks, samvimes

Yes, it's built by myself, no sign, so secure boot should be disabled.

I will do SRU for the 2 commits. Then proposed kernel will be signed.

AaronMa (mapengyu)
description: updated
Changed in linux (Ubuntu Noble):
importance: Undecided → High
status: New → In Progress
Changed in linux (Ubuntu):
status: Triaged → In Progress
Changed in linux-oem-6.8 (Ubuntu):
importance: Undecided → High
Changed in linux-oem-6.8 (Ubuntu Noble):
importance: Undecided → High
Changed in linux-oem-6.8 (Ubuntu):
status: New → Invalid
Changed in linux-oem-6.8 (Ubuntu Noble):
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.