Intel GPU Hangs : random screen freezing w/ Ubuntu 20.04 (Linux 5.4) i915_active_acquire
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned |
Bug Description
SRU Justification:
[Impact]
Users are experiencing a frequent NULL pointer dereference crash in i915_active_acquire when using kms, which is used by default.
[Fix]
The fix is a cherry pick from upstream which was supposed to be backported to 5.4 by upstream, but was neglected. The fix has a subsequent Fixes patch to resolve some uninitialized pointer usage.
[Test]
Verified by multiple bug reporters.
[Regression Potential]
Medium. Although there are a lot of lines added, they're mostly boilerplate, and this patch is confirmed by multiple users to fix a crash.
---
uname -a
Linux xps 5.4.0-14-generic #17-Ubuntu SMP Thu Feb 6 22:47:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Focal Fossa (development branch)
Release: 20.04
Codename: focal
[ 2556.956079] BUG: kernel NULL pointer dereference, address: 0000000000000040
[ 2556.956084] #PF: supervisor read access in kernel mode
[ 2556.956084] #PF: error_code(0x0000) - not-present page
[ 2556.956085] PGD 0 P4D 0
[ 2556.956088] Oops: 0000 [#1] SMP NOPTI
[ 2556.956090] CPU: 2 PID: 1685 Comm: xfwm4 Not tainted 5.4.0-14-generic #17-Ubuntu
[ 2556.956092] Hardware name: Dell Inc. XPS 13 7390/0G2D0W, BIOS 1.2.0 10/03/2019
[ 2556.956161] RIP: 0010:i915_
[ 2556.956163] Code: 00 48 c7 c6 11 4d 6b c0 e8 af a1 d6 c7 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f 44 00 00 55 48 89 e5 41 55 41 54 53 <8b> 47 38 48 89 fb 85 c0 74 17 8d 50 01 f0 0f b1 53 38 75 f2 45 31
[ 2556.956164] RSP: 0018:ffffac17c1
[ 2556.956165] RAX: 0000000000000000 RBX: ffff983831d3e480 RCX: 0000000000000000
[ 2556.956166] RDX: ffff983783475200 RSI: ffff983831d3e480 RDI: 0000000000000008
[ 2556.956167] RBP: ffffac17c13279e0 R08: 0000000000000000 R09: ffff98382d6b6520
[ 2556.956168] R10: 0000000000006cc0 R11: ffff983838b4db00 R12: ffff983783475200
[ 2556.956169] R13: 0000000000000008 R14: ffff983783475200 R15: ffff98382d6b6400
[ 2556.956170] FS: 00007f9031c28f0
[ 2556.956171] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2556.956172] CR2: 0000000000000040 CR3: 000000046eac6001 CR4: 00000000003606e0
[ 2556.956173] Call Trace:
[ 2556.956199] i915_active_
[ 2556.956223] i915_vma_
[ 2556.956245] eb_submit+
[ 2556.956267] i915_gem_
[ 2556.956271] ? sock_def_
[ 2556.956274] ? __kmalloc_
[ 2556.956294] i915_gem_
[ 2556.956314] ? i915_gem_
[ 2556.956330] drm_ioctl_
[ 2556.956338] drm_ioctl+
[ 2556.956358] ? i915_gem_
[ 2556.956361] ? vfs_writev+
[ 2556.956363] do_vfs_
[ 2556.956365] ? fput+0x13/0x15
[ 2556.956367] ? __sys_recvmsg+
[ 2556.956369] ksys_ioctl+
[ 2556.956371] __x64_sys_
[ 2556.956373] do_syscall_
[ 2556.956376] entry_SYSCALL_
[ 2556.956377] RIP: 0033:0x7f9032b3f68b
[ 2556.956379] Code: 0f 1e fa 48 8b 05 05 28 0d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d d5 27 0d 00 f7 d8 64 89 01 48
[ 2556.956380] RSP: 002b:00007ffee3
[ 2556.956381] RAX: ffffffffffffffda RBX: 000055a8abeb6e48 RCX: 00007f9032b3f68b
[ 2556.956382] RDX: 00007ffee39a0090 RSI: 0000000040406469 RDI: 000000000000000d
[ 2556.956382] RBP: 00007ffee39a0120 R08: 0000000000000001 R09: 0000000000000000
[ 2556.956383] R10: 00007ffee39a0140 R11: 0000000000000246 R12: 00007f9022a4f460
[ 2556.956384] R13: 0000000000000000 R14: 00007ffee39a0090 R15: 000000000000000d
[ 2556.956385] Modules linked in: ccm rfcomm xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat typec_displayport iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables cmac nfnetlink algif_hash ip6table_filter ip6_tables iptable_filter algif_skcipher af_alg bpfilter bridge stp llc snd_sof_pci snd_sof_
[ 2556.956409] wmi_bmof mii mac80211 dell_wmi dell_smbios dcdbas snd_seq_device uvcvideo intel_wmi_
[ 2556.956436] drm idma64 virt_dma wmi i2c_hid hid pinctrl_cannonlake pinctrl_intel video
[ 2556.956441] CR2: 0000000000000040
[ 2556.956443] ---[ end trace de83f1a5004a6b5f ]---
[ 2556.956467] RIP: 0010:i915_
[ 2556.956468] Code: 00 48 c7 c6 11 4d 6b c0 e8 af a1 d6 c7 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f 44 00 00 55 48 89 e5 41 55 41 54 53 <8b> 47 38 48 89 fb 85 c0 74 17 8d 50 01 f0 0f b1 53 38 75 f2 45 31
[ 2556.956469] RSP: 0018:ffffac17c1
[ 2556.956470] RAX: 0000000000000000 RBX: ffff983831d3e480 RCX: 0000000000000000
[ 2556.956471] RDX: ffff983783475200 RSI: ffff983831d3e480 RDI: 0000000000000008
[ 2556.956472] RBP: ffffac17c13279e0 R08: 0000000000000000 R09: ffff98382d6b6520
[ 2556.956473] R10: 0000000000006cc0 R11: ffff983838b4db00 R12: ffff983783475200
[ 2556.956474] R13: 0000000000000008 R14: ffff983783475200 R15: ffff98382d6b6400
[ 2556.956475] FS: 00007f9031c28f0
[ 2556.956476] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2556.956477] CR2: 0000000000000040 CR3: 000000046eac6001 CR4: 00000000003606e0
[ 2726.251982] r8152 4-1.3.2:1.0 enx4865ee114b7b: carrier off
[ 2729.482616] r8152 4-1.3.2:1.0 enx4865ee114b7b: carrier on
[ 2795.952106] r8152 4-1.3.2:1.0 enx4865ee114b7b: carrier off
[ 2799.211692] r8152 4-1.3.2:1.0 enx4865ee114b7b: carrier on
[ 2801.199389] r8152 4-1.3.2:1.0 enx4865ee114b7b: carrier off
[ 2804.460009] r8152 4-1.3.2:1.0 enx4865ee114b7b: carrier on
ubuntu-bug linux
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.....
*** Problem in linux-image-
The problem cannot be reported:
This is not an official Ubuntu package. Please remove any third party package and try again.
Press any key to continue...
apt show linux-image-
Package: linux-image-
Version: 5.4.0-14.17
Built-Using: linux-5.4 (= 5.4.0-14.17)
Status: install ok installed
Priority: optional
Section: kernel
Source: linux-signed-5.4
Maintainer: Canonical Kernel Team <email address hidden>
Installed-Size: 11.6 MB
Provides: aufs-dkms, fuse-module, ivtv-modules, kvm-api-4, linux-image, redhat-
Depends: kmod, linux-base (>= 4.5ubuntu1~
Recommends: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo, initramfs-tools | linux-initramfs
Suggests: fdutils, linux-doc | linux-5.
Conflicts: linux-image-
Download-Size: unknown
APT-Manual-
APT-Sources: /var/lib/
Description: Signed kernel image generic
A kernel image for generic. This version of it is signed with
Canonical's UEFI/Opal signing key.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu21
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: XFCE
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2019-11-19 (124 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20191119)
MachineType: Dell Inc. XPS 13 7390
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.187
Tags: focal
Uname: Linux 5.4.0-18-generic x86_64
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirt lpadmin lxd plugdev sambashare sudo
_MarkForUpload: False
dmi.bios.date: 10/03/2019
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.2.0
dmi.board.name: 0G2D0W
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.family: XPS
dmi.product.name: XPS 13 7390
dmi.product.sku: 0962
dmi.sys.vendor: Dell Inc.
CVE References
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
summary: |
- Dell XPS 13 : Screen freezes and Kernel Oops i915_active_acquire since + Screen freezes : NULL pointer dereference i915_active_acquire since Linux 5.4 |
tags: | added: patch |
summary: |
- Screen freezes : NULL pointer dereference i915_active_acquire since - Linux 5.4 + Intel GPU Hangs : random screen freezing w/ Ubuntu 20.04 (Linux 5.4) + i915_active_acquire |
information type: | Private → Public |
Changed in linux (Ubuntu Focal): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Focal): | |
importance: | Undecided → High |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | Confirmed → Fix Committed |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in linux (Ubuntu): | |
status: | Fix Committed → Invalid |
Changed in linux (Ubuntu Focal): | |
status: | Fix Committed → In Progress |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Focal): | |
status: | Fix Committed → Fix Released |
Changed in linux (Ubuntu Focal): | |
status: | Fix Released → Fix Committed |
Changed in linux (Ubuntu Focal): | |
status: | Fix Committed → Fix Released |
tags: | added: ubuntu-certified |
Similar to this one
NULL pointer dereference in i915_active_acquire since Linux 5.4 /gitlab. freedesktop. org/drm/ intel/issues/ 827
https:/