From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752337AbZHBIV4 (ORCPT ); Sun, 2 Aug 2009 04:21:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752287AbZHBIVz (ORCPT ); Sun, 2 Aug 2009 04:21:55 -0400 Received: from rv-out-0506.google.com ([209.85.198.239]:3137 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752227AbZHBIVx (ORCPT ); Sun, 2 Aug 2009 04:21:53 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=OtjNrGnooIi6djdBFnlWcdrDlWIU+zh4Y9XrSyRpmHn/ZrTjfi/8m3g0qlPEOpbqUS IuLoFTlDO5rcle9hab+Abs9OKaocuGc64U9Poz1/Em4k+Jsi8xSC+EEJmySnBB9kTnHP zxWqhDRTi5/7aKD0kf1JC8MM5oDWPDPZV8fS4= Date: Sun, 2 Aug 2009 16:21:48 +0800 From: Dave Young To: linux-kernel@vger.kernel.org Subject: kmemleak reporting Message-ID: <20090802082148.GA14673@darkstar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, With kmemleak I got following leaking info. 2.6.31-rc5 with Johannes Weiner's patch applied for the vc_resize leaking issue. [patch] fbcon: don't use vc_resize() on initialization unreferenced object 0xf71aa0c0 (size 64): comm "swapper", pid 1, jiffies 4294877648 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] __kmalloc+0x15d/0x183 [] kzalloc+0xb/0xd [] acpi_add_single_object+0x58b/0xddb [] acpi_bus_scan+0xff/0x170 [] acpi_scan_init+0xb7/0xdc [] acpi_init+0x218/0x25e [] do_one_initcall+0x4a/0x11a [] kernel_init+0x124/0x175 [] kernel_thread_helper+0x7/0x10 [] 0xffffffff unreferenced object 0xf71aa280 (size 64): comm "swapper", pid 1, jiffies 4294877650 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] __kmalloc+0x15d/0x183 [] kzalloc+0xb/0xd [] acpi_add_single_object+0x58b/0xddb [] acpi_bus_scan+0xff/0x170 [] acpi_scan_init+0xb7/0xdc [] acpi_init+0x218/0x25e [] do_one_initcall+0x4a/0x11a [] kernel_init+0x124/0x175 [] kernel_thread_helper+0x7/0x10 [] 0xffffffff unreferenced object 0xf71aaec0 (size 64): comm "swapper", pid 1, jiffies 4294877652 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] __kmalloc+0x15d/0x183 [] kzalloc+0xb/0xd [] acpi_add_single_object+0x58b/0xddb [] acpi_bus_scan+0xff/0x170 [] acpi_scan_init+0xb7/0xdc [] acpi_init+0x218/0x25e [] do_one_initcall+0x4a/0x11a [] kernel_init+0x124/0x175 [] kernel_thread_helper+0x7/0x10 [] 0xffffffff unreferenced object 0xf6639100 (size 64): comm "swapper", pid 1, jiffies 4294878947 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] __kmalloc+0x15d/0x183 [] acpi_cpufreq_cpu_init+0x211/0x54b [] cpufreq_add_dev+0x1b9/0x648 [] sysdev_driver_register+0x96/0xe5 [] cpufreq_register_driver+0xa1/0x168 [] acpi_cpufreq_init+0xad/0xbf [] do_one_initcall+0x4a/0x11a [] kernel_init+0x124/0x175 [] kernel_thread_helper+0x7/0x10 [] 0xffffffff unreferenced object 0xf45eb280 (size 64): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] __kmalloc+0x15d/0x183 [] acpi_cpufreq_cpu_init+0x211/0x54b [] cpufreq_add_dev+0x1b9/0x648 [] cpufreq_cpu_callback+0x5b/0x65 [] notifier_call_chain+0x2b/0x4a [] __raw_notifier_call_chain+0xe/0x10 [] raw_notifier_call_chain+0xc/0xe [] _cpu_up+0xbe/0xf3 [] enable_nonboot_cpus+0x37/0x83 [] suspend_devices_and_enter+0x122/0x17f [] enter_state+0xdd/0x11e [] state_store+0x96/0xac [] kobj_attr_store+0x1a/0x22 unreferenced object 0xc02ee448 (size 8): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] __kmalloc_track_caller+0x15b/0x181 [] kstrdup+0x2a/0x4c [] sysfs_new_dirent+0x28/0xd8 [] create_dir+0x24/0x68 [] sysfs_create_dir+0x2d/0x41 [] kobject_add_internal+0xb3/0x157 [] kobject_add_varg+0x35/0x41 [] kobject_init_and_add+0x26/0x28 [] cpufreq_add_dev+0x38b/0x648 [] cpufreq_cpu_callback+0x5b/0x65 [] notifier_call_chain+0x2b/0x4a [] __raw_notifier_call_chain+0xe/0x10 [] raw_notifier_call_chain+0xc/0xe unreferenced object 0xe5b06900 (size 48): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] kmem_cache_alloc+0xed/0x13a [] sysfs_new_dirent+0x46/0xd8 [] create_dir+0x24/0x68 [] sysfs_create_dir+0x2d/0x41 [] kobject_add_internal+0xb3/0x157 [] kobject_add_varg+0x35/0x41 [] kobject_init_and_add+0x26/0x28 [] cpufreq_add_dev+0x38b/0x648 [] cpufreq_cpu_callback+0x5b/0x65 [] notifier_call_chain+0x2b/0x4a [] __raw_notifier_call_chain+0xe/0x10 [] raw_notifier_call_chain+0xc/0xe [] _cpu_up+0xbe/0xf3 unreferenced object 0xc02ee450 (size 8): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] __kmalloc_track_caller+0x15b/0x181 [] kstrdup+0x2a/0x4c [] sysfs_new_dirent+0x28/0xd8 [] create_dir+0x24/0x68 [] sysfs_create_subdir+0x11/0x16 [] internal_create_group+0x3a/0x11a [] sysfs_create_group+0xc/0x11 [] cpufreq_stat_notifier_policy+0x8f/0x195 [] notifier_call_chain+0x2b/0x4a [] __blocking_notifier_call_chain+0x37/0x4c [] blocking_notifier_call_chain+0xc/0xe [] __cpufreq_set_policy+0xb1/0x1c3 [] cpufreq_add_dev+0x526/0x648 unreferenced object 0xe5b06bd0 (size 48): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] kmem_cache_alloc+0xed/0x13a [] sysfs_new_dirent+0x46/0xd8 [] create_dir+0x24/0x68 [] sysfs_create_subdir+0x11/0x16 [] internal_create_group+0x3a/0x11a [] sysfs_create_group+0xc/0x11 [] cpufreq_stat_notifier_policy+0x8f/0x195 [] notifier_call_chain+0x2b/0x4a [] __blocking_notifier_call_chain+0x37/0x4c [] blocking_notifier_call_chain+0xc/0xe [] __cpufreq_set_policy+0xb1/0x1c3 [] cpufreq_add_dev+0x526/0x648 [] cpufreq_cpu_callback+0x5b/0x65 unreferenced object 0xe5b06c00 (size 48): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] kmem_cache_alloc+0xed/0x13a [] sysfs_new_dirent+0x46/0xd8 [] sysfs_add_file_mode+0x2a/0x67 [] internal_create_group+0xb8/0x11a [] sysfs_create_group+0xc/0x11 [] cpufreq_stat_notifier_policy+0x8f/0x195 [] notifier_call_chain+0x2b/0x4a [] __blocking_notifier_call_chain+0x37/0x4c [] blocking_notifier_call_chain+0xc/0xe [] __cpufreq_set_policy+0xb1/0x1c3 [] cpufreq_add_dev+0x526/0x648 [] cpufreq_cpu_callback+0x5b/0x65 [] notifier_call_chain+0x2b/0x4a unreferenced object 0xe5b06c30 (size 48): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] kmem_cache_alloc+0xed/0x13a [] sysfs_new_dirent+0x46/0xd8 [] sysfs_add_file_mode+0x2a/0x67 [] internal_create_group+0xb8/0x11a [] sysfs_create_group+0xc/0x11 [] cpufreq_stat_notifier_policy+0x8f/0x195 [] notifier_call_chain+0x2b/0x4a [] __blocking_notifier_call_chain+0x37/0x4c [] blocking_notifier_call_chain+0xc/0xe [] __cpufreq_set_policy+0xb1/0x1c3 [] cpufreq_add_dev+0x526/0x648 [] cpufreq_cpu_callback+0x5b/0x65 [] notifier_call_chain+0x2b/0x4a unreferenced object 0xe5b06c60 (size 48): comm "pm-suspend", pid 2038, jiffies 372178 backtrace: [] create_object+0x140/0x210 [] kmemleak_alloc+0x25/0x49 [] kmemleak_alloc_recursive+0x11/0x14 [] kmem_cache_alloc+0xed/0x13a [] sysfs_new_dirent+0x46/0xd8 [] sysfs_add_file_mode+0x2a/0x67 [] internal_create_group+0xb8/0x11a [] sysfs_create_group+0xc/0x11 [] cpufreq_stat_notifier_policy+0x8f/0x195 [] notifier_call_chain+0x2b/0x4a [] __blocking_notifier_call_chain+0x37/0x4c [] blocking_notifier_call_chain+0xc/0xe [] __cpufreq_set_policy+0xb1/0x1c3 [] cpufreq_add_dev+0x526/0x648 [] cpufreq_cpu_callback+0x5b/0x65 [] notifier_call_chain+0x2b/0x4a -- Regards dave