Skip to contentSkip to conversation

New: Oops: kernel NULL pointer dereference in nouveau_connector_get_modes

Bug 28626 [email protected] 1 participant 4 messages Jun 20, 2010 – Jun 21, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=28626

Summary: Oops: kernel NULL pointer dereference in
nouveau_connector_get_modes
Product: xorg
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]

Created an attachment (id=36380)
--> (https://bugs.freedesktop.org/attachment.cgi?id=36380)
dmesg with the oops

Booting with nouveau/linux-2.6 from git results in a kernel oops:

[    3.817681] BUG: unable to handle kernel NULL pointer dereference at
0000000000000060
[    3.818051] IP: [<ffffffffa01128b0>] nouveau_connector_get_modes+0x180/0x410

[nouveau]
Please see attached dmesg for the full oops.

System environment:
-- chipset: intel PM965 + G86 [GeForce 8400M GT] -- system architecture: 64-bit
-- xf86-video-nouveau: git, db98ad2363 (20 June) -- xserver: 1.7.5
-- libdrm: 2.4.20
-- kernel: 2.6.34 + nouveau/linux from git: 48f4092e87 -- Machine: laptop, Sony Vaio FZ21-M
-- Display connector: LVDS (1280x800) + HDMI (1680x1050)

Reverting commit "drm/nouveau: move LVDS detection back to connector detect() time" solved the oops.
Further debugging showed nv_encoder was NULL in nouveau_connector_get_modes. Attached patch solves the problem for me.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 28626] Oops: kernel NULL pointer dereference in nouveau_connector_get_modes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=28626

--- Comment #1 from Albert Damen <[email protected]> 2010-06-20 09:29:17 PDT --- Created an attachment (id=36381)
View: https://bugs.freedesktop.org/attachment.cgi?id=36381
Review: https://bugs.freedesktop.org/review?bug=28626&attachment=36381

Suggested patch

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 28626] Oops: kernel NULL pointer dereference in nouveau_connector_get_modes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=28626

Albert Damen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #36380|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 28626] Oops: kernel NULL pointer dereference in nouveau_connector_get_modes

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=28626

Francisco Jerez <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Francisco Jerez <[email protected]> 2010-06-21 03:43:19 PDT --- (In reply to comment #0)

Quoted 4 lines

Reverting commit "drm/nouveau: move LVDS detection back to connector detect() time" solved the oops.
Further debugging showed nv_encoder was NULL in nouveau_connector_get_modes. Attached patch solves the problem for me.

Thanks, that's the right thing to do, pushed.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.