Bug 104831 - Linux drm_legacy_lock_free+0x40/0x120 kernel NULL pointer dereference
Summary: Linux drm_legacy_lock_free+0x40/0x120 kernel NULL pointer dereference
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-21 05:39 UTC by niubl
Modified: 2017-08-03 09:42 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.2
Tree: Mainline
Regression: No


Attachments
crash dmesg (255.08 KB, text/plain)
2015-09-21 05:39 UTC, niubl
Details

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.

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