Bug 104831

Summary: Linux drm_legacy_lock_free+0x40/0x120 kernel NULL pointer dereference
Product: Drivers Reporter: niubl (448354223)
Component: Video(Other)Assignee: drivers_video-other
Status: RESOLVED OBSOLETE    
Severity: normal CC: byhankswang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.2 Subsystem:
Regression: No Bisected commit-id:
Attachments: crash dmesg

Description niubl 2015-09-21 05:39:40 UTC
Created attachment 188031 [details]
crash dmesg

POC(run as root):

#include <fcntl.h>
#include <errno.h>
#include <stdio.h>

main()
{
    int fd;
    int i = 20;
    fd = open("/dev/dri/card0", O_RDONLY);
    ioctl(fd, 0x4008642b, &i);
    fprintf(stderr, "the errno is %d\n", errno);
}
Comment 1 byhankswang 2015-12-07 10:38:20 UTC
You need to describe the details of run time environment. Just run on Ubuntu 14.04?
Comment 2 niubl 2015-12-07 10:41:12 UTC
(In reply to byhankswang from comment #1)
> You need to describe the details of run time environment. Just run on Ubuntu
> 14.04?

run as root on Ubuntu 14.04 . I test on Uubntu 14.04 X86_64.
Comment 3 Jani Nikula 2016-06-16 07:58:39 UTC
Please file a bug at https://bugs.freedesktop.org/ or dri-devel@lists.freedesktop.org for a likely better response.