Re: possible memory leak on i915_gem_create_ioctl

From: Catalin Marinas
Date: Tue Jul 14 2009 - 10:28:40 EST


On Tue, 2009-07-14 at 16:18 +0200, Alexey Fisher wrote:
> kmemleak report a lot of possible memory leaks if using any glxrelated
> applications like glxgears, glxinfo, compiz, cairo-dock with g45 graphic.
>
> Here is a trace from /sys/kernel/debug/kmemleak:
>
> unreferenced object 0xffff8800b298e000 (size 544):
> comm "openarena", pid 5002, jiffies 4296480664
> backtrace:
> [<ffffffff814ac755>] kmemleak_alloc+0x25/0x60
> [<ffffffff810f4b8b>] kmem_cache_alloc+0xfb/0x180
> [<ffffffff8122404f>] idr_pre_get+0x5f/0x90
> [<ffffffff812c6fed>] drm_gem_handle_create+0x2d/0xa0
> [<ffffffff812e0d60>] i915_gem_create_ioctl+0x60/0xc0
> [<ffffffff812c5c74>] drm_ioctl+0x184/0x3b0
> [<ffffffff8110c6dc>] vfs_ioctl+0x7c/0xa0
> [<ffffffff8110cbaa>] do_vfs_ioctl+0x8a/0x5a0
> [<ffffffff8110d141>] sys_ioctl+0x81/0xa0
> [<ffffffff8100b66b>] system_call_fastpath+0x16/0x1b
> [<ffffffffffffffff>] 0xffffffffffffffff

I already reported these - http://lkml.org/lkml/2009/7/9/110.

They look like real leaks but someone who understands the code better
would need to look at them.

--
Catalin

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/