Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759891AbZFZRTt (ORCPT ); Fri, 26 Jun 2009 13:19:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754712AbZFZRTi (ORCPT ); Fri, 26 Jun 2009 13:19:38 -0400 Received: from mx2.redhat.com ([66.187.237.31]:57934 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754546AbZFZRTh (ORCPT ); Fri, 26 Jun 2009 13:19:37 -0400 Date: Fri, 26 Jun 2009 13:19:33 -0400 From: Dave Jones To: linux-kernel@vger.kernel.org Cc: Catalin Marinas , netdev@vger.kernel.org Subject: kmemleak reports firmware loader funnies in iwlwifi Message-ID: <20090626171933.GA23170@redhat.com> Mail-Followup-To: Dave Jones , linux-kernel@vger.kernel.org, Catalin Marinas , netdev@vger.kernel.org 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 Content-Length: 1380 Lines: 36 After enabling kmemleak in the Fedora rawhide kernels, we've mostly seen a flood of what appear to be false positives, but the below looks really suspect.. https://bugzilla.redhat.com/show_bug.cgi?id=507971 Here's the summary... iwlagn 0000:03:00.0: loaded firmware version 8.24.2.12 kmemleak: Freeing unknown object at 0xffffc90018070000 Pid: 1034, comm: NetworkManager Not tainted 2.6.31-0.25.rc0.git22.fc12.x86_64 #1 Call Trace: [] delete_object+0x5b/0x13b [] kmemleak_free+0x5b/0xb5 [] vfree+0x40/0x68 [] release_firmware+0x49/0x6c [] ? iwl_mac_start+0xc5c/0x106b [iwlagn] [] iwl_mac_start+0xdbc/0x106b [iwlagn] [] ? __module_text_address+0x25/0x85 So it appears to be vfree'ing something that it had no knowledge of ever allocating. afaict _request_firmware only vmallocs when it's using a firmware image built into the driver, which isn't the case here, so I'm not sure why we end up trying to vfree instead of kfree when we call release_firmware anyone know what's going on here? Dave -- 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/