Oops: NULL pointer dereference intel_ddi_post_disable+0x54/0x170

Bug #1813831 reported by David Gnedt
82
This bug affects 17 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

I am running Ubuntu 18.04 LTS on a HP EliteBook 840 G5 with docking station and two screens attached via DisplayPort.
Reproducibly, when I close the lid of my notebook, the kernel 4.15.0-44.47-generic crashes with a Oops in i915 / intel_ddi_post_disable.
The previous kernel 4.15.0-43.46-generic works without problems.

Oops:

[ 224.498572] BUG: unable to handle kernel NULL pointer dereference at 0000000000000245
[ 224.498658] IP: intel_ddi_post_disable+0x54/0x170 [i915]
[ 224.498663] PGD 0 P4D 0
[ 224.498672] Oops: 0000 [#1] SMP PTI
[ 224.498677] Modules linked in: hid_logitech_hidpp hid_logitech_dj hid_cherry usbhid rfcomm nfnetlink xfrm_user xfrm_algo xt_addrtype overlay aufs wireguard(OE) ip6_udp_tunnel udp_tunnel thunderbolt ccm xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack libcrc32c ipt_REJECT nf_reject_ipv4 xt_tcpudp devlink ebtable_filter ebtables bnep nls_iso8859_1 hid_multitouch snd_soc_skl snd_soc_skl_ipc snd_hda_ext_core snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi snd_hda_codec_hdmi snd_soc_core snd_compress ac97_bus snd_hda_codec_conexant snd_hda_codec_generic snd_pcm_dmaengine arc4 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi iwlmvm mac80211 intel_rapl
[ 224.498761] x86_pkg_temp_thermal intel_powerclamp coretemp iwlwifi kvm_intel snd_seq kvm irqbypass intel_cstate hp_wmi intel_rapl_perf cfg80211 sparse_keymap intel_wmi_thunderbolt joydev input_leds snd_seq_device serio_raw wmi_bmof snd_timer snd soundcore uvcvideo videobuf2_vmalloc btusb videobuf2_memops btrtl videobuf2_v4l2 btbcm videobuf2_core btintel videodev media bluetooth ecdh_generic shpchp mei_me mei ucsi_acpi typec_ucsi idma64 typec virt_dma intel_lpss_pci processor_thermal_device intel_pch_thermal intel_lpss intel_soc_dts_iosf int3403_thermal int340x_thermal_zone mac_hid int3400_thermal acpi_pad acpi_thermal_rel hp_wireless sch_fq_codel iptable_filter ip6table_filter ip6_tables br_netfilter bridge stp llc arp_tables parport_pc ppdev lp parport ip_tables x_tables autofs4 algif_skcipher
[ 224.498851] af_alg dm_crypt crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel i915 aes_x86_64 crypto_simd glue_helper cryptd e1000e ptp i2c_algo_bit pps_core drm_kms_helper psmouse syscopyarea sysfillrect sysimgblt fb_sys_fops nvme nvme_core drm i2c_i801 i2c_hid wmi hid video pinctrl_sunrisepoint
[ 224.498895] CPU: 0 PID: 1952 Comm: Xorg Tainted: G OE 4.15.0-44-generic #47-Ubuntu
[ 224.498899] Hardware name: HP HP EliteBook 840 G5/83B2, BIOS Q78 Ver. 01.04.00 09/12/2018
[ 224.498961] RIP: 0010:intel_ddi_post_disable+0x54/0x170 [i915]
[ 224.498966] RSP: 0018:ffffbf5cc45ab9f0 EFLAGS: 00010297
[ 224.498971] RAX: 0000000000000007 RBX: ffff9803af6ff000 RCX: ffffffffc0744272
[ 224.498974] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff9803af6ff000
[ 224.498978] RBP: ffffbf5cc45aba20 R08: 0000000000000003 R09: 0000000000000000
[ 224.498982] R10: 0000000000000209 R11: 0000000000000170 R12: 0000000000000000
[ 224.498985] R13: ffff9803af6ff000 R14: ffff9803aed90000 R15: ffff98031202d000
[ 224.498991] FS: 00007ff14e363600(0000) GS:ffff9803df400000(0000) knlGS:0000000000000000
[ 224.498995] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 224.498999] CR2: 0000000000000245 CR3: 0000000830496006 CR4: 00000000003606f0
[ 224.499002] Call Trace:
[ 224.499064] ? intel_dp_sink_dpms+0xbb/0xf0 [i915]
[ 224.499118] intel_mst_post_disable_dp+0x99/0xd0 [i915]
[ 224.499175] intel_encoders_post_disable.isra.102+0x66/0x80 [i915]
[ 224.499226] haswell_crtc_disable+0xe8/0x150 [i915]
[ 224.499280] intel_atomic_commit_tail+0x7ea/0xd30 [i915]
[ 224.499330] intel_atomic_commit+0x277/0x2b0 [i915]
[ 224.499367] drm_atomic_commit+0x51/0x60 [drm]
[ 224.499387] drm_atomic_helper_set_config+0x7c/0x90 [drm_kms_helper]
[ 224.499414] __drm_mode_set_config_internal+0x6b/0x120 [drm]
[ 224.499440] drm_mode_setcrtc+0x47f/0x660 [drm]
[ 224.499464] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 224.499486] drm_ioctl_kernel+0x5f/0xb0 [drm]
[ 224.499507] drm_ioctl+0x31b/0x3d0 [drm]
[ 224.499528] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 224.499540] do_vfs_ioctl+0xa8/0x630
[ 224.499547] ? recalc_sigpending+0x1b/0x50
[ 224.499556] ? _copy_from_user+0x3e/0x60
[ 224.499563] SyS_ioctl+0x79/0x90
[ 224.499571] do_syscall_64+0x73/0x130
[ 224.499581] entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[ 224.499586] RIP: 0033:0x7ff14b7615d7
[ 224.499590] RSP: 002b:00007ffd03403428 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 224.499596] RAX: ffffffffffffffda RBX: 00007ffd03403460 RCX: 00007ff14b7615d7
[ 224.499599] RDX: 00007ffd03403460 RSI: 00000000c06864a2 RDI: 000000000000000c
[ 224.499603] RBP: 00007ffd03403460 R08: 0000000000000000 R09: 0000559e72a0d510
[ 224.499607] R10: 00007ffd034035e0 R11: 0000000000000246 R12: 00000000c06864a2
[ 224.499611] R13: 000000000000000c R14: 0000559e71ea5a40 R15: 0000559e71d25a20
[ 224.499615] Code: 0d f6 86 44 02 00 00 40 0f 85 81 00 00 00 83 f8 06 72 77 83 f8 08 76 13 83 f8 0a 75 6d 41 f6 86 60 06 00 00 40 0f 84 dd 00 00 00 <41> f6 84 24 45 02 00 00 08 4d 8d bd 00 01 00 00 74 3e 48 89 df
[ 224.499752] RIP: intel_ddi_post_disable+0x54/0x170 [i915] RSP: ffffbf5cc45ab9f0
[ 224.499755] CR2: 0000000000000245
[ 224.499761] ---[ end trace f6caf79c13f5597d ]---

$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

$ apt-cache policy linux-image-4.15.0-44-generic
linux-image-4.15.0-44-generic:
  Installed: 4.15.0-44.47
  Candidate: 4.15.0-44.47
  Version table:
 *** 4.15.0-44.47 500
        500 http://at.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status

Tags: bionic
Revision history for this message
David Gnedt (lxp13) wrote :
Revision history for this message
David Gnedt (lxp13) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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 1813831

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.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic
Revision history for this message
David Gnedt (lxp13) wrote :

This bug is also related to
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1813663
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1813745

This kernel works fine for me too:

> Please test this kernel:
> https://people.canonical.com/~khfeng/lp1813663/
>
> This commit is reverted in the test kernel:
> "drm/i915/dp: Send DPCD ON for MST before phy_up"

Revision history for this message
Ilya Brik (ibrik) wrote :

Seems I reported the same:
https://bugs.launchpad.net/ubuntu/+source/kernel-package/+bug/1813907

:)
Definitely irreproducible on the previous kernel version 4.15.0-43-generic

Revision history for this message
Oliver Weise (ow-bannkreis) wrote :

Same Problem on Thinkpad L560 + Docking Station + External Monitor + 18.04 LTS amd64: When docked both screens go blank when Gnome Session tries to start. Nothing works but REISUB.

From the boot log:

Jan 30 12:24:47 remscheid kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000245
Jan 30 12:24:47 remscheid kernel: IP: intel_ddi_post_disable+0x54/0x170 [i915]

Kernel was: 4.15.0-44-generic
Effect not reproducible with kernel: 4.15.0-43-generic

Revision history for this message
Besmir Zanaj (besmirzanaj-gmail) wrote :

same issue here when disconnecting from Dell E-Port Replicator PR02X Docking Station

Revision history for this message
Besmir Zanaj (besmirzanaj-gmail) wrote :

note towards the end of the log file

root@bzanaj2019:~# journalctl -k -b -1
...
Jan 30 14:23:52 bzanaj2019 kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000245
Jan 30 14:23:52 bzanaj2019 kernel: IP: intel_ddi_post_disable+0x54/0x170 [i915]
Jan 30 14:23:52 bzanaj2019 kernel: PGD 0 P4D 0
Jan 30 14:23:52 bzanaj2019 kernel: Oops: 0000 [#1] SMP PTI
Jan 30 14:23:52 bzanaj2019 kernel: Modules linked in: hid_generic usbhid hid ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_
Jan 30 14:23:52 bzanaj2019 kernel: sparse_keymap joydev cfg80211 serio_raw snd_soc_sst_ipc rtsx_pci_ms snd_soc_acpi snd_hda_codec_realtek snd_hda_codec_generic
Jan 30 14:23:52 bzanaj2019 kernel: fb_sys_fops crypto_simd glue_helper e1000e cryptd psmouse drm ahci ptp libahci pps_core i2c_i801 rtsx_pci wmi video
Jan 30 14:23:52 bzanaj2019 kernel: CPU: 2 PID: 10225 Comm: kworker/2:2 Tainted: G OE 4.15.0-44-generic #47-Ubuntu

Revision history for this message
Andy Fuchs (andy-fuchs) wrote :

Same here. Using Lenovo T560 with docking station and two screens (DVI/VGA).

Revision history for this message
Ville Nummela (vigejolla) wrote :

Same here. Using Lenovo P52s with a docking stations and two screens connected to displayport. The crash does not happen if there are no displays connected. The crash happens also if I try to change the display order in settings.

Revision history for this message
Ville Nummela (vigejolla) wrote :
Revision history for this message
ptitmain (ptitmain) wrote :

I confirm that the compiled kernel of khfeng solves the problem (Dell Precision 5520).

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.