Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935055AbZJOI7v (ORCPT ); Thu, 15 Oct 2009 04:59:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935030AbZJOI7v (ORCPT ); Thu, 15 Oct 2009 04:59:51 -0400 Received: from mail-yw0-f176.google.com ([209.85.211.176]:43978 "EHLO mail-yw0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935024AbZJOI7u (ORCPT ); Thu, 15 Oct 2009 04:59:50 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=hPUmtgC65mTBqC3U5Tb3WLP4OIzH60z247UZQ4ZFUp2VBPId0IkzsS/kRknwJRTsJi hhR67mVIly8md2EYU8NeuGl86HQMXcFQu5JdDoXtg4YhEGihPiccj1O8oZjABelaDywg e84SRt7YzCs4TAf827ob7rHlh/GNr+2hAqlCo= MIME-Version: 1.0 Date: Thu, 15 Oct 2009 10:59:13 +0200 Message-ID: Subject: Leaks in trace reported by kmemleak From: Zdenek Kabelac To: lizf@cn.fujitsu.com Cc: Linux Kernel Mailing List Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2565 Lines: 55 I've noticed your latest patch for memory leak in filter setting (8ad807318fcd...) - but even with this patch - kmemleak seems to still report lots (~900) of following leaks - note - they come only from i915 and kvm module - so I'm not sure if these two modules are doing something wrong or the problem is in trace code. It looks like whole directory is somehow forgotten. nreferenced object 0xffff880134b21268 (size 8): comm "modprobe", pid 1099, jiffies 4294881626 hex dump (first 8 bytes): 69 6e 74 00 01 88 ff ff int..... backtrace: [] kmemleak_alloc+0x26/0x60 [] __kmalloc_track_caller+0x143/0x230 [] kstrdup+0x45/0x80 [] trace_define_field+0x89/0x1b0 [] trace_define_common_fields+0xcc/0x110 [] ftrace_define_fields_i915_ring_wait_end+0x16/0x50 [i915] [] event_create_dir+0x93/0x480 [] trace_module_notify+0xff/0x500 [] notifier_call_chain+0x78/0xb0 [] __blocking_notifier_call_chain+0x60/0x90 [] blocking_notifier_call_chain+0x16/0x20 [] sys_init_module+0xaa/0x260 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff ... unreferenced object 0xffff880134b21a78 (size 8): comm "modprobe", pid 1106, jiffies 4294881716 hex dump (first 8 bytes): 5f 5f 75 33 32 00 ff ff __u32... backtrace: [] kmemleak_alloc+0x26/0x60 [] __kmalloc_track_caller+0x143/0x230 [] kstrdup+0x45/0x80 [] trace_define_field+0x89/0x1b0 [] ftrace_define_fields_kvm_mmu_pagetable_walk+0x82/0x90 [kvm] [] event_create_dir+0x93/0x480 [] trace_module_notify+0xff/0x500 [] notifier_call_chain+0x78/0xb0 [] __blocking_notifier_call_chain+0x60/0x90 [] blocking_notifier_call_chain+0x16/0x20 [] sys_init_module+0xaa/0x260 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff -- 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/