Possible memory leaks in drivers/gpu/drm/
Hi,
I get some kmemleak reports in the drm code. The first happens when Xorg is running:
unreferenced object 0xc2659050 (size 32):
comm "Xorg", pid 2585, jiffies 4294902558
backtrace:
[<c01e0c3a>] create_object+0xfa/0x250
[<c01e1e7d>] kmemleak_alloc+0x5d/0x70
[<c01db2d5>] __kmalloc+0x115/0x1f0
[<fa3a53f5>] drm_setversion+0x1c5/0x260 [drm]
[<fa3a3612>] drm_ioctl+0x192/0x3a0 [drm]
[<c01f1d29>] vfs_ioctl+0x79/0x90
[<c01f1e8a>] do_vfs_ioctl+0x6a/0x5e0
[<c01f2463>] sys_ioctl+0x63/0x70
[<c010300c>] sysenter_do_call+0x12/0x38It looks like this is one of the kmalloc calls in the drm_set_busid() function (I'll do more checks tonight to see exactly which of the two kmalloc's).
When the Xorg exits, it seems to leave behind several of these (the same happens when glxinfo exits):
unreferenced object 0xc22b7540 (size 148):
comm "Xorg", pid 2585, jiffies 4294902559
backtrace:
[<c01e0c3a>] create_object+0xfa/0x250
[<c01e1e7d>] kmemleak_alloc+0x5d/0x70
[<c01dac1b>] kmem_cache_alloc+0x14b/0x190
[<c0309400>] idr_pre_get+0x50/0x70
[<fa3a4d74>] drm_gem_handle_create+0x24/0x90 [drm]
[<fa7f79ad>] i915_gem_create_ioctl+0x5d/0xb0 [i915]
[<fa3a3612>] drm_ioctl+0x192/0x3a0 [drm]
[<c01f1d29>] vfs_ioctl+0x79/0x90
[<c01f1e8a>] do_vfs_ioctl+0x6a/0x5e0
[<c01f2463>] sys_ioctl+0x63/0x70
[<c010300c>] sysenter_do_call+0x12/0x38Are they real leaks?
Thanks.
Signature · 1 line
Catalin