Bug 1440736 - unable to handle kernel NULL pointer dereference null pointer dereference dma_fence_wait_timeout from nouveau_drm_ioctl
Summary: unable to handle kernel NULL pointer dereference null pointer dereference dma...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 25
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-10 11:56 UTC by Peter Bieringer
Modified: 2017-05-04 18:24 UTC (History)
9 users (show)

Fixed In Version: kernel-4.10.12-200.fc25 kernel-4.10.13-100.fc24
Clone Of:
Environment:
Last Closed: 2017-05-04 18:24:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.