Bug 1440736

Summary: unable to handle kernel NULL pointer dereference null pointer dereference dma_fence_wait_timeout from nouveau_drm_ioctl
Product: [Fedora] Fedora Reporter: Peter Bieringer <pb>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: eugenemah, gansalmon, ichavero, itamar, jforbes, jonathan, kernel-maint, madhu.chinakonda, mchehab
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-4.10.12-200.fc25 kernel-4.10.13-100.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-04 18:24:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Bieringer 2017-04-10 11:56:29 UTC
Description of problem:


Version-Release number of selected component (if applicable):
kernel-4.10.8-200.fc25.x86_64

How reproducible:
mostly after wakeup from suspend

Steps to Reproduce:
1. suspend
2. wakeup
3. wait some minutes

Actual results:
X-Windows crashes

[20795.814388] BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
[20795.814974] IP: dma_fence_wait_timeout+0x36/0xf0
[20795.815217] PGD b99f4067
[20795.815217] PUD b99f5067
[20795.815217] PMD 0
[20795.815217] Oops: 0000 [#1] SMP
...
[20795.815217] Call Trace:
[20795.815217]  drm_atomic_helper_wait_for_fences+0x48/0x120 [drm_kms_helper]
[20795.815217]  nv50_disp_atomic_commit+0x19c/0x2a0 [nouveau]
[20795.815217]  drm_atomic_commit+0x4b/0x50 [drm]
[20795.815217]  drm_atomic_helper_update_plane+0xec/0x150 [drm_kms_helper]
[20795.815217]  __setplane_internal+0x1b4/0x280 [drm]
[20795.815217]  ? check_preempt_wakeup+0x10d/0x220
[20795.815217]  drm_mode_cursor_universal+0x126/0x210 [drm]
[20795.815217]  drm_mode_cursor_common+0x86/0x180 [drm]
[20795.815217]  drm_mode_cursor_ioctl+0x50/0x70 [drm]
[20795.815217]  drm_ioctl+0x21b/0x4c0 [drm]
[20795.815217]  ? _copy_to_user+0x54/0x60
[20795.815217]  ? drm_mode_setplane+0x1a0/0x1a0 [drm]
[20795.815217]  nouveau_drm_ioctl+0x74/0xc0 [nouveau]
[20795.815217]  do_vfs_ioctl+0xa3/0x5f0
[20795.815217]  ? security_file_permission+0x6b/0xc0
[20795.815217]  SyS_ioctl+0x79/0x90
[20795.815217]  entry_SYSCALL_64_fastpath+0x1a/0xa9



Expected results:
no crash (can't remember seen it before 4.10)


Additional info:

Looks like issue is already known:
https://bugs.freedesktop.org/show_bug.cgi?id=100545
https://bugs.freedesktop.org/show_bug.cgi?id=100431

As kernel 4.11 is planned to be released end of April would it be possible to get at least in Fedora testing or via Koji an intermediate built of 4.10 containing the patch described here?

https://github.com/skeggsb/nouveau/commit/23da66b47d9a7ca6a7c4a7f574a8842d8356fec5

Comment 1 Peter Bieringer 2017-04-21 06:36:22 UTC
just to be informed that a local rebuilded kernel (4.10.8 and 4.10.10) containing the mentioned patch will fix the issue.

Comment 2 Justin M. Forbes 2017-04-21 12:24:46 UTC
That patch is in the 4.10.12 stable update that I will be building today.

Comment 3 Fedora Update System 2017-04-24 14:56:35 UTC
kernel-4.10.12-200.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7462231059

Comment 4 Fedora Update System 2017-04-24 14:58:41 UTC
kernel-4.10.12-100.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-11938627fa

Comment 5 Fedora Update System 2017-04-25 03:54:25 UTC
kernel-4.10.12-200.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7462231059

Comment 6 Eugene Mah 2017-04-25 12:09:36 UTC
Just installed kernel-4.10.12-200.fc25 from updates-testing on my system. Looks like it fixes the problem here. I can at least log in and not see a black screen like I was getting before.

Comment 7 Fedora Update System 2017-04-25 19:25:37 UTC
kernel-4.10.12-100.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-11938627fa

Comment 8 Fedora Update System 2017-04-27 19:53:46 UTC
kernel-4.10.12-200.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2017-04-28 12:48:53 UTC
kernel-4.10.13-100.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0aa0f69e0c

Comment 10 Fedora Update System 2017-04-30 02:22:49 UTC
kernel-4.10.13-100.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0aa0f69e0c

Comment 11 Fedora Update System 2017-05-04 18:24:45 UTC
kernel-4.10.13-100.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.