Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761996AbZJOKkP (ORCPT ); Thu, 15 Oct 2009 06:40:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757324AbZJOKkO (ORCPT ); Thu, 15 Oct 2009 06:40:14 -0400 Received: from cam-admin0.cambridge.arm.com ([193.131.176.58]:62159 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756594AbZJOKkN (ORCPT ); Thu, 15 Oct 2009 06:40:13 -0400 To: Peter Teoh Cc: LKML Subject: Re: kmemleak errors References: <804dabb00910142027r7f771ee4n2855fef7dcffbacc@mail.gmail.com> From: Catalin Marinas Date: Thu, 15 Oct 2009 11:39:30 +0100 In-Reply-To: <804dabb00910142027r7f771ee4n2855fef7dcffbacc@mail.gmail.com> (Peter Teoh's message of "Thu\, 15 Oct 2009 11\:27\:34 +0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 15 Oct 2009 10:39:35.0101 (UTC) FILETIME=[C98D36D0:01CA4D83] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1280 Lines: 33 Peter Teoh wrote: > cat /sys/kernel/debug/kmemleak gave: > > unreferenced object 0xffff8800bd864000 (size 40): > comm "swapper", pid 0, jiffies 4294937296 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 70 40 86 bd 00 88 ff ff ........p@...... > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x73/0xd8 > [] kmem_cache_alloc+0xf7/0x15a > [] debug_objects_mem_init+0x71/0x234 > [] start_kernel+0x356/0x414 > [] x86_64_start_reservations+0xb9/0xd4 > [] x86_64_start_kernel+0xee/0x109 > [] 0xffffffffffffffff If run echo scan > /sys/kernel/debug/kmemleak a few times, do they disappear? I think the debug_objects reports are false positives but couldn't figure why kmemleak cannot track them. I'll look again at them and maybe add an annotation (kmemleak_not_leak). -- 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/