https://bugzilla.kernel.org/show_bug.cgi?id=120591
Bug ID: 120591 Summary: BUG() in dmesg after loading nouveau module Product: Drivers Version: 2.5 Kernel Version: 4.7-rc3 Hardware: x86-64 OS: Linux Tree: Mainline Status: NEW Severity: high Priority: P1 Component: Video(DRI - non Intel) Assignee: drivers_video-dri@kernel-bugs.osdl.org Reporter: demfloro@demfloro.ru Regression: No
Created attachment 220561 --> https://bugzilla.kernel.org/attachment.cgi?id=220561&action=edit dmesg
OS: Arch Linux Video adapter: GeForce GTX 780 Ti xf86-nouveau: 1.0.12
I blacklisted nouveau module for full OS initialisation before reproducing, then issued: # modprobe nouveau debug=trace
After that screen becomes black and in dmesg appears: BUG: unable to handle kernel NULL pointer dereference at 0000000000000210
Bug is not reproducible with 4.7-rc2 or earlier mainline.
https://bugzilla.kernel.org/show_bug.cgi?id=120591
--- Comment #1 from Dmitrii Tcvetkov demfloro@demfloro.ru --- Created attachment 220571 --> https://bugzilla.kernel.org/attachment.cgi?id=220571&action=edit kernel config
https://bugzilla.kernel.org/show_bug.cgi?id=120591
Ilia Mirkin imirkin@alum.mit.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |imirkin@alum.mit.edu
--- Comment #2 from Ilia Mirkin imirkin@alum.mit.edu --- Looks like
commit f045f459d925138fe7d6193a8c86406bda7e49da Author: Ben Skeggs bskeggs@redhat.com Date: Thu Jun 2 12:23:31 2016 +1000
drm/nouveau/fbcon: fix out-of-bounds memory accesses
does not properly deal with disabled fbdev emulation.
Can you add a
if (fbcon->helper.fbdev)
before that added line in nouveau_fbcon_init? I assume that will resolve your issue.
https://bugzilla.kernel.org/show_bug.cgi?id=120591
--- Comment #3 from Dmitrii Tcvetkov demfloro@demfloro.ru --- Created attachment 220611 --> https://bugzilla.kernel.org/attachment.cgi?id=220611&action=edit fix
Suggested by Ilia Mirkin
https://bugzilla.kernel.org/show_bug.cgi?id=120591
--- Comment #4 from Dmitrii Tcvetkov demfloro@demfloro.ru --- Thanks, that change helped, nouveau loaded successfully, Xorg started normally.
https://bugzilla.kernel.org/show_bug.cgi?id=120591
--- Comment #5 from Dmitrii Tcvetkov demfloro@demfloro.ru --- Created attachment 220621 --> https://bugzilla.kernel.org/attachment.cgi?id=220621&action=edit dmesg with patched kernel
https://bugzilla.kernel.org/show_bug.cgi?id=120591
Dmitrii Tcvetkov demfloro@demfloro.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |CODE_FIX
https://bugzilla.kernel.org/show_bug.cgi?id=120591
--- Comment #6 from Ilia Mirkin imirkin@alum.mit.edu --- Dmitrii, you should mail that patch (as a proper commit) to bskeggs@redhat.com and/or nouveau@lists.freedesktop.org . If you're not sure how to do that, I can take care of that for you.
https://bugzilla.kernel.org/show_bug.cgi?id=120591
--- Comment #7 from Dmitrii Tcvetkov demfloro@demfloro.ru --- Thank you for advice, I've sent the patch, mail awaits moderation.
https://bugzilla.kernel.org/show_bug.cgi?id=120591
Dmitrii Tcvetkov demfloro@demfloro.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Dmitrii Tcvetkov demfloro@demfloro.ru --- commit 52dfcc5ccfbb6697ac3cac7f7ff1e712760e1216 Author: Dmitrii Tcvetkov demfloro@demfloro.ru Date: Mon Jun 20 13:52:14 2016 +0300
drm/nouveau: fix for disabled fbdev emulation
dri-devel@lists.freedesktop.org