Return-path: Received: from mail-ob0-f182.google.com ([209.85.214.182]:63560 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492Ab3BBXRI (ORCPT ); Sat, 2 Feb 2013 18:17:08 -0500 Received: by mail-ob0-f182.google.com with SMTP id va7so5281502obc.13 for ; Sat, 02 Feb 2013 15:17:07 -0800 (PST) Message-ID: <510D9E71.2080300@lwfinger.net> (sfid-20130203_001718_948823_7307AD73) Date: Sat, 02 Feb 2013 17:17:05 -0600 From: Larry Finger MIME-Version: 1.0 To: Johannes Berg CC: linux-wireless Subject: Memory leak in cfg80211 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: Johannes, A recent change to cfg80211 has resulted in kmemleak reporting a new leak: unreferenced object 0xffff8800b24cba80 (size 192): comm "kworker/1:0", pid 13, jiffies 4294899104 (age 5432.336s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 06 00 00 00 55 53 00 00 d0 a6 24 00 40 b8 25 00 ....US....$.@.%. backtrace: [] kmemleak_alloc+0x21/0x50 [] __kmalloc+0x130/0x2c0 [] reg_copy_regd+0x23/0xa0 [cfg80211] [] reg_todo+0x3d2/0x5a0 [cfg80211] [] process_one_work+0x19d/0x6f0 [] worker_thread+0x155/0x400 [] kthread+0xd6/0xe0 [] ret_from_fork+0x7c/0xb0 [] 0xffffffffffffffff The traceback points back to the call at line 353 of net/wireless/reg.c where the regd space is allocated. I verified that the memory is still allocated after unloading cfg80211. This is not a false report from kmemleak. Thanks, Larry