Bionic: Intermittently sent to Emergency Mode on boot with unhandled kernel NULL pointer dereference at 0000000000000980
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned |
Bug Description
===SRU Justification===
[Impact]
When TBT ICM firmware is not running properly, it may crash the kernel.
[Fix]
Protect against cases when ICM is not set.
[Test]
User confirmed the additional patch works.
[Regression Potential]
Low. It adds a simple logic to avoid NULL dereference.
===Original Bug Report===
Ubuntu Desktop 18.04 release version, running on a Lenovo T570 laptop. Sometimes, at boot, the system goes into Emergency Mode. In looking at journalctl -xb output, the following messages are logged:
May 01 10:05:04 galvin-T570 kernel: hidraw: raw HID events driver (C) Jiri Kosina
May 01 10:05:04 galvin-T570 kernel: acpi PNP0C14:02: duplicate WMI GUID 05901221-
May 01 10:05:04 galvin-T570 kernel: acpi PNP0C14:03: duplicate WMI GUID 05901221-
May 01 10:05:04 galvin-T570 kernel: pps_core: LinuxPPS API ver. 1 registered
May 01 10:05:04 galvin-T570 kernel: pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <email address hidden>
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: NHI initialized, starting thunderbolt
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: allocating TX ring 0 of size 10
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: allocating RX ring 0 of size 10
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: control channel created
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: control channel starting...
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: starting TX ring 0
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1)
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: starting RX ring 0
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001)
May 01 10:05:04 galvin-T570 kernel: thunderbolt 0000:09:00.0: starting ICM firmware
May 01 10:05:04 galvin-T570 kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000980
May 01 10:05:04 galvin-T570 kernel: IP: pci_write_
May 01 10:05:04 galvin-T570 kernel: PGD 0 P4D 0
May 01 10:05:04 galvin-T570 kernel: Oops: 0000 [#1] SMP PTI
May 01 10:05:04 galvin-T570 kernel: Modules linked in: pps_core nvme_core thunderbolt(+) wmi i2c_hid hid video
May 01 10:05:04 galvin-T570 kernel: CPU: 3 PID: 173 Comm: systemd-udevd Not tainted 4.15.0-20-generic #21-Ubuntu
May 01 10:05:04 galvin-T570 kernel: Hardware name: LENOVO 20H9000NUS/
May 01 10:05:04 galvin-T570 kernel: RIP: 0010:pci_
May 01 10:05:04 galvin-T570 kernel: RSP: 0018:ffffa27f84
May 01 10:05:04 galvin-T570 kernel: RAX: 0000000040000126 RBX: 0000000000000000 RCX: 0000000000000050
May 01 10:05:04 galvin-T570 kernel: RDX: 0000000000000200 RSI: 0000000000000034 RDI: 0000000000000000
May 01 10:05:04 galvin-T570 kernel: RBP: ffffa27f840f3a18 R08: 0000000000000200 R09: 0000000000000320
May 01 10:05:04 galvin-T570 kernel: R10: 0000000000002000 R11: 0000000000000000 R12: 0000000000000000
May 01 10:05:04 galvin-T570 kernel: R13: 0000000000000050 R14: ffff91b2efc5bb30 R15: 0000000000000000
May 01 10:05:04 galvin-T570 kernel: FS: 00007f4a6cf7068
May 01 10:05:04 galvin-T570 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 01 10:05:04 galvin-T570 kernel: CR2: 0000000000000980 CR3: 000000082f944005 CR4: 00000000003606e0
May 01 10:05:04 galvin-T570 kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
May 01 10:05:04 galvin-T570 kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
May 01 10:05:04 galvin-T570 kernel: Call Trace:
May 01 10:05:04 galvin-T570 kernel: ? pcie2cio_
May 01 10:05:04 galvin-T570 kernel: icm_driver_
May 01 10:05:04 galvin-T570 kernel: ? tb_ctl_
May 01 10:05:04 galvin-T570 kernel: tb_domain_
May 01 10:05:04 galvin-T570 kernel: nhi_probe+
May 01 10:05:04 galvin-T570 kernel: local_pci_
May 01 10:05:04 galvin-T570 kernel: pci_device_
May 01 10:05:04 galvin-T570 kernel: driver_
May 01 10:05:04 galvin-T570 kernel: __driver_
May 01 10:05:04 galvin-T570 kernel: ? driver_
May 01 10:05:04 galvin-T570 kernel: bus_for_
May 01 10:05:04 galvin-T570 kernel: driver_
May 01 10:05:04 galvin-T570 kernel: bus_add_
May 01 10:05:04 galvin-T570 kernel: ? 0xffffffffc028c000
May 01 10:05:04 galvin-T570 kernel: driver_
May 01 10:05:04 galvin-T570 kernel: ? 0xffffffffc028c000
May 01 10:05:04 galvin-T570 kernel: __pci_register_
May 01 10:05:04 galvin-T570 kernel: nhi_init+
May 01 10:05:04 galvin-T570 kernel: do_one_
May 01 10:05:04 galvin-T570 kernel: ? _cond_resched+
May 01 10:05:04 galvin-T570 kernel: ? kmem_cache_
May 01 10:05:04 galvin-T570 kernel: ? do_init_
May 01 10:05:04 galvin-T570 kernel: do_init_
May 01 10:05:04 galvin-T570 kernel: load_module+
May 01 10:05:04 galvin-T570 kernel: ? ima_post_
May 01 10:05:04 galvin-T570 kernel: SYSC_finit_
May 01 10:05:04 galvin-T570 kernel: ? SYSC_finit_
May 01 10:05:04 galvin-T570 kernel: SyS_finit_
May 01 10:05:04 galvin-T570 kernel: do_syscall_
May 01 10:05:04 galvin-T570 kernel: entry_SYSCALL_
May 01 10:05:04 galvin-T570 kernel: RIP: 0033:0x7f4a6ca7a839
May 01 10:05:04 galvin-T570 kernel: RSP: 002b:00007ffdf0
May 01 10:05:04 galvin-T570 kernel: RAX: ffffffffffffffda RBX: 00005587e4a21e40 RCX: 00007f4a6ca7a839
May 01 10:05:04 galvin-T570 kernel: RDX: 0000000000000000 RSI: 00007f4a6c7590e5 RDI: 0000000000000005
May 01 10:05:04 galvin-T570 kernel: RBP: 00007f4a6c7590e5 R08: 0000000000000000 R09: 00007ffdf06cdf20
May 01 10:05:04 galvin-T570 kernel: R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000
May 01 10:05:04 galvin-T570 kernel: R13: 00005587e4a18ef0 R14: 0000000000020000 R15: 00005587e4a21e40
May 01 10:05:04 galvin-T570 kernel: Code: 87 c0 00 00 00 b9 04 00 00 00 48 89 e5 48 8b 40 20 e8 00 f8 71 00 5d c3 b8 87 00 00 00 c3
May 01 10:05:04 galvin-T570 kernel: RIP: pci_write_
May 01 10:05:04 galvin-T570 kernel: CR2: 0000000000000980
May 01 10:05:04 galvin-T570 kernel: ---[ end trace b696dc351adf7f0f ]---
---
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2018-04-28 (4 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
MachineType: LENOVO 20H9000NUS
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.173
Tags: bionic
Uname: Linux 4.15.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo wireshark
_MarkForUpload: True
dmi.bios.date: 06/02/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: N1VET32W (1.22 )
dmi.board.
dmi.board.name: 20H9000NUS
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad T570
dmi.product.name: 20H9000NUS
dmi.product.
dmi.sys.vendor: LENOVO
summary: |
- Intermittently sent to Emergency Mode on boot with unhandled kernel NULL - pointer dereference at 0000000000000980 + Bionic: Intermittently sent to Emergency Mode on boot with unhandled + kernel NULL pointer dereference at 0000000000000980 |
description: | updated |
tags: | added: confirmed |
Changed in linux (Ubuntu): | |
status: | Incomplete → Fix Released |
Changed in linux (Ubuntu Bionic): | |
importance: | Undecided → High |
status: | New → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1768292
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.