Re: Inotify memory leak

From: Eric Paris
Date: Tue Nov 23 2010 - 18:25:13 EST


On Wed, 2010-11-24 at 00:15 +0100, Vegard Nossum wrote:
> Hi,
>
> Inotify does not clean up properly when it fails to create the file
> descriptor. So it leaks kernel memory. Watch "slabtop" while running
> this program:
>
> #include <sys/inotify.h>
> #include <unistd.h>

potential patch at
http://git.infradead.org/users/eparis/notify.git/shortlog/refs/heads/for-next

Only compiled, not tested. Will try to do that after dinner!

-Eric

--
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/