When running kernel with kmemleak enabled, we keep seeing on dmesg suspects of new memory leaks, looking at /sys/kernel/debug/kmemleak says that nouveau might be the one to be blamed:
unreferenced object 0xf6175390 (size 148):
comm "X", pid 8910, jiffies 4294890281 (age 6196.003s)
hex dump (first 32 bytes):
06 82 00 00 00 00 00 00 e0 84 a8 f3 80 81 a8 f3 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[<f8144ca2>] drm_gem_handle_create+0x25/0x6f [drm]
[<f81f6780>] nouveau_gem_ioctl_new+0x201/0x262 [nouveau]
[<f81436a1>] drm_ioctl+0x268/0x310 [drm]
As an extra detail, I'm using current linux-2.6 head (baac35c4155a8aa826c70acee6553368ca5243a2) plus x11 overlay on gentoo
looking at the actual code, it appears to be a false positive since idr_remove() is called on drm_gem_handle_delete(). If I'm right, please close this bug and sorry for the inconvenience.
It appears that this bug report has laid dormant for quite a while. Sorry we haven't gotten to it. Since we fix bugs all the time, chances are pretty good that your issue has been fixed with the latest software. Please give it a shot. (Linux kernel 3.10.7, xf86-video-nouveau 1.0.9, mesa 9.1.6, or their git versions.) If upgrading to the latest isn't an option for you, your distro's bugzilla is probably the right destination for your bug report.
In an effort to clean up our bug list, we're pre-emptively closing all bugs that haven't seen updates since 2011. If the original issue remains, please make sure to provide fresh info, see http://nouveau.freedesktop.org/wiki/Bugs/ for what we need to see, and re-open this one.
The Nouveau Team