Bug 61947

Summary: nullpointer dereference causes xorg-server segfault when nouveau DRI driver is loaded
Product: Mesa Reporter: Jan de Groot <jan>
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: medium    
Version: 9.1   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch that fixes the segfault

Description Jan de Groot 2013-03-07 08:51:39 UTC
Created attachment 76086 [details]
Patch that fixes the segfault

Chromium can crash Xorg when the nouveau DRI driver is loaded. This is due to a nullpointer dereference.

Archlinux bug (Xorg crash): https://bugs.archlinux.org/task/33994
Fedora bug (Application crash, same cause): https://bugzilla.redhat.com/show_bug.cgi?id=862466

As suggested in the Fedora bug, comment 15, attached is a patch that fixes this issue (confirmed on Archlinux). This is the same check the Intel DRI driver does, so I think it's needed there.
Comment 1 Marcin Slusarz 2013-03-07 19:00:48 UTC
Thanks. I pushed it to master and marked as stable candidate.

http://cgit.freedesktop.org/mesa/mesa/commit/?id=17f1cb1d99e66227d1e05925ef937643f5c1089a

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.