Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754201Ab0KWXZI (ORCPT ); Tue, 23 Nov 2010 18:25:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29279 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752722Ab0KWXZG (ORCPT ); Tue, 23 Nov 2010 18:25:06 -0500 Subject: Re: Inotify memory leak From: Eric Paris To: Vegard Nossum Cc: Al Viro , LKML , Eugene Teo In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 23 Nov 2010 18:25:02 -0500 Message-ID: <1290554702.1443.70.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 688 Lines: 22 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 > #include 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/