Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753982AbZGRWo3 (ORCPT ); Sat, 18 Jul 2009 18:44:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753947AbZGRWo3 (ORCPT ); Sat, 18 Jul 2009 18:44:29 -0400 Received: from cam-admin0.cambridge.arm.com ([193.131.176.58]:37750 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753841AbZGRWo1 (ORCPT ); Sat, 18 Jul 2009 18:44:27 -0400 Subject: Re: ext4 memory leak (was Re: [PATCH] x86: _edata should include all .data.* sections on X86_64) From: Catalin Marinas To: Alexey Fisher Cc: Ingo Molnar , "Aneesh Kumar K.V" , Pekka Enberg , Kernel Testers List , "linux-kernel@vger.kernel.org" , Sam Ravnborg , linux-ext4@vger.kernel.org In-Reply-To: <4A61CE59.3030905@fisher-privat.net> References: <84144f020907140019g511723dctb541f6333d1a082b@mail.gmail.com> <4A5C41C8.7040904@fisher-privat.net> <1247564356.28240.30.camel@pc1117.cambridge.arm.com> <1247565175.28240.37.camel@pc1117.cambridge.arm.com> <4A5C5A59.5080304@fisher-privat.net> <1247567499.28240.48.camel@pc1117.cambridge.arm.com> <4A5C5FD0.3020204@fisher-privat.net> <1247574390.28240.67.camel@pc1117.cambridge.arm.com> <20090715080336.GA4823@skywalker> <4A5D9939.3000500@fisher-privat.net> <20090718115556.GA31007@elte.hu> <4A61CE59.3030905@fisher-privat.net> Content-Type: text/plain Organization: ARM Ltd Date: Sat, 18 Jul 2009 23:44:16 +0100 Message-Id: <1247957056.4236.20.camel@toshiba-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Jul 2009 22:44:17.0643 (UTC) FILETIME=[4866D3B0:01CA07F9] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3088 Lines: 80 On Sat, 2009-07-18 at 15:30 +0200, Alexey Fisher wrote: > suddenly my kernel is not warning free... i have still warning about > acpi_init, cpufreg, intel_gem and inoitfy on my PC and about firmware > loader on my laptop. So i think there is still some job to do. I will > report this warnings soon. Mine is not warning free either but they look like real leaks. There are also a few more leaks reported by Jaswinder. The inotify one was fixed but not in mainline yet (a fix was included in my kmemleak-fixes branch). What I get consistently: unreferenced object 0xf72a9a80 (size 64): comm "swapper", pid 1, jiffies 4294892557 hex dump (first 32 bytes): 00 00 00 00 38 00 00 00 00 00 00 00 00 00 00 00 ....8........... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x3d/0x70 [] __kmalloc+0x10d/0x210 [] kzalloc+0xb/0xd [] acpi_add_single_object+0x609/0xe65 [] acpi_bus_scan+0xfd/0x174 [] acpi_scan_init+0xb5/0xd5 [] acpi_init+0x21e/0x262 [] do_one_initcall+0x2b/0x160 [] kernel_init+0x150/0x1aa [] kernel_thread_helper+0x7/0x10 [] 0xffffffff Every time I kill the X server (reported here - http://lkml.org/lkml/2009/7/8/422) unreferenced object 0xcb5a6600 (size 44): comm "gdm", pid 5246, jiffies 4960 hex dump (first 32 bytes): 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 e4 b5 2d ca 90 4e 15 c0 83 14 00 00 ......-..N...... backtrace: [] kmemleak_alloc+0x3d/0x70 [] kmem_cache_alloc+0x156/0x1a0 [] alloc_pid+0x19/0x350 [] copy_process+0x800/0x1230 [] do_fork+0x6f/0x370 [] sys_clone+0x36/0x40 [] sysenter_do_call+0x12/0x38 [] 0xffffffff And quite a lot of these (also reported here - http://lkml.org/lkml/2009/7/9/110 - but the first one was fixed by Jaswinder and included in my kmemleak-fixes branch): unreferenced object 0xcb0166c0 (size 148): comm "Xorg", pid 5251, jiffies 5784 hex dump (first 32 bytes): ff ff ff ff 30 7f 98 c3 00 80 18 cb 90 80 18 cb ....0........... 20 81 18 cb b0 81 18 cb 40 82 18 cb d0 82 18 cb .......@....... backtrace: [] kmemleak_alloc+0x3d/0x70 [] kmem_cache_alloc+0x156/0x1a0 [] idr_pre_get+0x50/0x70 [] drm_gem_handle_create+0x24/0x90 [drm] [] i915_gem_create_ioctl+0x5d/0xb0 [i915] [] drm_ioctl+0x192/0x3a0 [drm] [] vfs_ioctl+0x79/0x90 [] do_vfs_ioctl+0x6a/0x5e0 [] sys_ioctl+0x63/0x70 [] sysenter_do_call+0x12/0x38 [] 0xffffffff -- Catalin -- 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/