nVidia Quadro K3100M with nouveau driver will cause NULL pointer dereference when switching the screen back on

Bug #1742110 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

This issue only exist when the video card is running with nouveau driver, it works fine with nvidia proprietary driver nvidia-384 installed.

Steps:
1. Install 18.04 Daily build
2. Boot to the desktop, leave it there and wait for the screen timeout setting kicks in (it will just turn-off the screen)
3. Try to bring the screen back by hitting any key

Expected result:
* Screen can be restored

Actual result:
* The system is still accessible through SSH, but the screen never came back, error message could be found in syslog:

Jan 9 17:57:21 Cadenza kernel: [ 1104.874825] BUG: unable to handle kernel NULL pointer dereference at 000000000000004d
Jan 9 17:57:21 Cadenza kernel: [ 1104.874882] IP: nvkm_dp_acquire+0x51/0x3a0 [nouveau]
Jan 9 17:57:21 Cadenza kernel: [ 1104.874887] PGD 0
Jan 9 17:57:21 Cadenza kernel: [ 1104.874887] P4D 0
Jan 9 17:57:21 Cadenza kernel: [ 1104.874890]
Jan 9 17:57:21 Cadenza kernel: [ 1104.874896] Oops: 0000 [#1] SMP
Jan 9 17:57:21 Cadenza kernel: [ 1104.874900] Modules linked in: rfcomm ccm cmac bnep nls_iso8859_1 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp cmdlinepart intel_spi_platform intel_spi kvm snd_hda_codec_hdmi irqbypass snd_hda_codec_idt spi_nor snd_hda_codec_generic mtd crct10dif_pclmul crc32_pclmul arc4 ghash_clmulni_intel pcbc snd_hda_intel snd_hda_codec aesni_intel aes_x86_64 snd_hda_core crypto_simd glue_helper cryptd snd_hwdep snd_pcm snd_seq_midi iwlmvm snd_seq_midi_event intel_cstate intel_rapl_perf mac80211 snd_rawmidi hp_wmi sparse_keymap snd_seq snd_seq_device btusb btrtl iwlwifi btbcm snd_timer uvcvideo rtsx_pci_ms btintel memstick videobuf2_vmalloc bluetooth videobuf2_memops cfg80211 videobuf2_v4l2 snd videobuf2_core videodev mei_me input_leds soundcore joydev hid_multitouch media wmi_bmof ecdh_generic lpc_ich
Jan 9 17:57:21 Cadenza kernel: [ 1104.874960] mei shpchp ie31200_edac tpm_infineon mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid nouveau rtsx_pci_sdmmc mxm_wmi i2c_algo_bit ttm drm_kms_helper syscopyarea sysfillrect e1000e sysimgblt fb_sys_fops ahci drm libahci ptp rtsx_pci pps_core pata_acpi wmi video
Jan 9 17:57:21 Cadenza kernel: [ 1104.874989] CPU: 6 PID: 59 Comm: kworker/6:1 Not tainted 4.13.0-17-generic #20-Ubuntu
Jan 9 17:57:21 Cadenza kernel: [ 1104.874994] Hardware name: Hewlett-Packard HP Z1 G2 Touch Workstation/192F, BIOS L52 v81.14 05/09/2014
Jan 9 17:57:21 Cadenza kernel: [ 1104.875012] Workqueue: events nvkm_notify_work [nouveau]
Jan 9 17:57:21 Cadenza kernel: [ 1104.875017] task: ffff94dbef37c5c0 task.stack: ffffa37d81ae4000
Jan 9 17:57:21 Cadenza kernel: [ 1104.875041] RIP: 0010:nvkm_dp_acquire+0x51/0x3a0 [nouveau]
Jan 9 17:57:21 Cadenza kernel: [ 1104.875045] RSP: 0018:ffffa37d81ae7da8 EFLAGS: 00010297
Jan 9 17:57:21 Cadenza kernel: [ 1104.875049] RAX: ffff94dbef191018 RBX: ffff94dbeecea328 RCX: ffff94dbfdd9bb20
Jan 9 17:57:21 Cadenza kernel: [ 1104.875053] RDX: ffff94dbef37c5c0 RSI: ffff94dbfdd9bb20 RDI: ffff94dbeecea328
Jan 9 17:57:21 Cadenza kernel: [ 1104.875057] RBP: ffffa37d81ae7de8 R08: 0000000000000000 R09: ffff94dbeece1060
Jan 9 17:57:21 Cadenza kernel: [ 1104.875064] R10: ffff94dbeece1008 R11: 00000000000002f1 R12: ffff94dbeecea200
Jan 9 17:57:21 Cadenza kernel: [ 1104.875068] R13: 0000000000000000 R14: ffff94dbef19ede0 R15: ffff94dbef280e40
Jan 9 17:57:21 Cadenza kernel: [ 1104.875073] FS: 0000000000000000(0000) GS:ffff94dbfdd80000(0000) knlGS:0000000000000000
Jan 9 17:57:21 Cadenza kernel: [ 1104.875077] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 9 17:57:21 Cadenza kernel: [ 1104.875080] CR2: 000000000000004d CR3: 0000000094209000 CR4: 00000000001406e0
Jan 9 17:57:21 Cadenza kernel: [ 1104.875085] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jan 9 17:57:21 Cadenza kernel: [ 1104.875088] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jan 9 17:57:21 Cadenza kernel: [ 1104.875092] Call Trace:
Jan 9 17:57:21 Cadenza kernel: [ 1104.875100] ? pick_next_task_fair+0x131/0x560
Jan 9 17:57:21 Cadenza kernel: [ 1104.875123] nvkm_dp_hpd+0x6e/0x140 [nouveau]
Jan 9 17:57:21 Cadenza kernel: [ 1104.875140] nvkm_notify_work+0x1d/0x70 [nouveau]
Jan 9 17:57:21 Cadenza kernel: [ 1104.875146] process_one_work+0x1e7/0x410
Jan 9 17:57:21 Cadenza kernel: [ 1104.875150] worker_thread+0x4a/0x410
Jan 9 17:57:21 Cadenza kernel: [ 1104.875154] kthread+0x125/0x140
Jan 9 17:57:21 Cadenza kernel: [ 1104.875159] ? process_one_work+0x410/0x410
Jan 9 17:57:21 Cadenza kernel: [ 1104.875162] ? kthread_create_on_node+0x70/0x70
Jan 9 17:57:21 Cadenza kernel: [ 1104.875169] ret_from_fork+0x25/0x30
Jan 9 17:57:21 Cadenza kernel: [ 1104.875172] Code: df 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 45 15 a6 d1 4d 8b 54 24 08 49 8b 42 58 4d 8d 4a 58 49 39 c1 0f 84 b0 00 00 00 <45> 0f b6 45 4d 48 8d 78 e8 31 f6 41 bb d3 4d 62 10 41 d0 e8 41
Jan 9 17:57:21 Cadenza kernel: [ 1104.875218] RIP: nvkm_dp_acquire+0x51/0x3a0 [nouveau] RSP: ffffa37d81ae7da8
Jan 9 17:57:21 Cadenza kernel: [ 1104.875221] CR2: 000000000000004d
Jan 9 17:57:21 Cadenza kernel: [ 1104.886187] ---[ end trace e0f816505da8bc51 ]---
Jan 9 17:58:01 Cadenza CRON[21941]: (root) CMD ( test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond)
Jan 9 17:58:25 Cadenza wpa_supplicant[939]: wls1: SME: Trying to authenticate with 18:9c:5d:31:3f:e0 (SSID='Canonical-2.4GHz-g' freq=2412 MHz)
Jan 9 17:58:25 Cadenza kernel: [ 1169.111509] wls1: disconnect from AP a4:56:30:cc:0f:30 for new auth to 18:9c:5d:31:3f:e0
Jan 9 17:58:25 Cadenza kernel: [ 1169.125237] wls1: authenticate with 18:9c:5d:31:3f:e0
Jan 9 17:58:25 Cadenza kernel: [ 1169.127211] wls1: send auth to 18:9c:5d:31:3f:e0 (try 1/3)
Jan 9 17:58:25 Cadenza NetworkManager[756]: <info> [1515491905.9532] device (wls1): supplicant interface state: completed -> authenticating
Jan 9 17:58:25 Cadenza wpa_supplicant[939]: wls1: Trying to associate with 18:9c:5d:31:3f:e0 (SSID='Canonical-2.4GHz-g' freq=2412 MHz)
Jan 9 17:58:25 Cadenza kernel: [ 1169.130110] wls1: authenticated
Jan 9 17:58:25 Cadenza kernel: [ 1169.130381] wls1: associate with 18:9c:5d:31:3f:e0 (try 1/3)
Jan 9 17:58:25 Cadenza wpa_supplicant[939]: wls1: Associated with 18:9c:5d:31:3f:e0
Jan 9 17:58:25 Cadenza kernel: [ 1169.132230] wls1: RX AssocResp from 18:9c:5d:31:3f:e0 (capab=0x431 status=0 aid=2)
Jan 9 17:58:25 Cadenza kernel: [ 1169.133220] wls1: associated
Jan 9 17:58:25 Cadenza NetworkManager[756]: <info> [1515491905.9638] device (wls1): supplicant interface state: authenticating -> 4-way handshake
Jan 9 17:58:25 Cadenza wpa_supplicant[939]: wls1: WPA: Key negotiation completed with 18:9c:5d:31:3f:e0 [PTK=CCMP GTK=CCMP]
Jan 9 17:58:25 Cadenza wpa_supplicant[939]: wls1: CTRL-EVENT-CONNECTED - Connection to 18:9c:5d:31:3f:e0 completed [id=0 id_str=]
Jan 9 17:58:25 Cadenza wpa_supplicant[939]: p2p-dev-wls1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jan 9 17:58:25 Cadenza NetworkManager[756]: <info> [1515491905.9728] device (wls1): supplicant interface state: 4-way handshake -> completed
Jan 9 17:58:25 Cadenza systemd-udevd[21946]: Process '/sbin/crda' failed with exit code 249.
Jan 9 17:58:25 Cadenza wpa_supplicant[939]: p2p-dev-wls1: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=TW
Jan 9 17:58:56 Cadenza kernel: [ 1200.172510] nouveau 0000:01:00.0: DRM: EVO timeout
Jan 9 17:58:58 Cadenza kernel: [ 1202.172492] nouveau 0000:01:00.0: DRM: base-0: timeout
Jan 9 17:59:02 Cadenza kernel: [ 1205.215081] nouveau 0000:01:00.0: DRM: base-0: timeout
Jan 9 17:59:04 Cadenza kernel: [ 1207.242150] nouveau 0000:01:00.0: DRM: base-0: timeout

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.13.0-17-generic 4.13.0-17.20 [modified: boot/vmlinuz-4.13.0-17-generic]
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.8-0ubuntu6
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: sam 1355 F.... pulseaudio
 /dev/snd/controlC0: sam 1355 F.... pulseaudio
Date: Tue Jan 9 18:21:19 2018
InstallationDate: Installed on 2018-01-09 (0 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180101)
MachineType: Hewlett-Packard HP Z1 G2 Touch Workstation
ProcFB: 0 nouveaufb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-17-generic.efi.signed root=UUID=1c2de52d-318e-486d-a69a-ca1cafe9d40b ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.13.0-17-generic N/A
 linux-backports-modules-4.13.0-17-generic N/A
 linux-firmware 1.170
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/09/2014
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: L52 v81.14
dmi.board.asset.tag: 2UA4081F8X
dmi.board.name: 192F
dmi.board.vendor: Hewlett-Packard
dmi.chassis.asset.tag: 2UA4081F8X
dmi.chassis.type: 4
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvrL52v81.14:bd05/09/2014:svnHewlett-Packard:pnHPZ1G2TouchWorkstation:pvr:rvnHewlett-Packard:rn192F:rvr:cvnHewlett-Packard:ct4:cvr:
dmi.product.family: 103C_53335X G=D
dmi.product.name: HP Z1 G2 Touch Workstation
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
tags: added: artful
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: Nouveau driver will cause NULL pointer dereference when switching the screen back on

Tested with the mainline kernel 4.15.0-041500rc7, this issue still exist.
Log can be found here: https://pastebin.ubuntu.com/26352444/

Po-Hsu Lin (cypressyew)
tags: added: kernel-bug-exists-upstream
summary: - Nouveau driver will cause NULL pointer dereference when switching the
- screen back on
+ nVidia Quadro K3100M with nouveau driver will cause NULL pointer
+ dereference when switching the screen back on
description: updated
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key
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.