X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id oBHI2lhO250102 for ; Fri, 17 Dec 2010 12:02:48 -0600 X-ASG-Debug-ID: 1292609080-145b02b30000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail-wy0-f181.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id A0DA614611B7 for ; Fri, 17 Dec 2010 10:04:41 -0800 (PST) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by cuda.sgi.com with ESMTP id 7OHA2bcU8zE2CoMT for ; Fri, 17 Dec 2010 10:04:41 -0800 (PST) Received: by wyf22 with SMTP id 22so924888wyf.26 for ; Fri, 17 Dec 2010 10:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=vnhVuyxXyFl3S2tM8wiz0NQBoRs6iHU+sNfK8loVwGM=; b=fbGRmdAUm2NbZS6lK0lKbbr3MtVKdn7mMvl7i+lWQ4/UF0lMifrDtdGsKy8fai8O1i hryVY+Xd8XQxb0y0HvRWnjIXnOvviTU79mxTsXmf1g6q99YUoZPbodFQr7Hj5VepuU5V aGcwpieDdygIelxVxoDhOMlKY4UW7DV4B12Ek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YOToVi27zu6/4o/nIb2Ak/zpK2IwqP1Qx5GbbSxLZ1zLfPnZNwzA6Z3G6Z54e50qFQ YNt3Q7njMCoIWca2FAJ80utNY08rx2FANx/J3Y46ouvJxO5tfSd62jS6XIp4VKOTLcb4 BjWoT8VI/wTjfRDodSGTSukEvvRgHocgHqu4w= MIME-Version: 1.0 Received: by 10.216.155.75 with SMTP id i53mr1044987wek.27.1292609080577; Fri, 17 Dec 2010 10:04:40 -0800 (PST) Received: by 10.216.21.84 with HTTP; Fri, 17 Dec 2010 10:04:40 -0800 (PST) Date: Sat, 18 Dec 2010 05:04:40 +1100 Message-ID: X-ASG-Orig-Subj: xfs_efi_item slab leak Subject: xfs_efi_item slab leak From: Nick Piggin To: xfs@oss.sgi.com Content-Type: text/plain; charset=ISO-8859-1 X-Barracuda-Connect: mail-wy0-f181.google.com[74.125.82.181] X-Barracuda-Start-Time: 1292609082 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=DKIM_SIGNED, DKIM_VERIFIED X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.49710 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- -0.00 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean After running xfstests and then unmounting and rmmodding xfs, I get this bug [ 3473.194517] ============================================================================= [ 3473.194697] BUG xfs_efi_item: Objects remaining on kmem_cache_close() [ 3473.194793] ----------------------------------------------------------------------------- [ 3473.194794] [ 3473.195056] INFO: Slab 0xffffea0006ad5e00 objects=35 used=2 fp=0xffff8801e8640e80 flags=0xc000000000004080 [ 3473.195201] Pid: 22011, comm: rmmod Not tainted 2.6.37-rc6+ #116 [ 3473.195201] Call Trace: [ 3473.195201] [] slab_err+0x91/0xa0 [ 3473.195201] [] ? __slab_alloc+0x138/0x480 [ 3473.195201] [] ? trace_hardirqs_off+0xd/0x10 [ 3473.195201] [] ? kmem_cache_destroy+0x154/0x3e0 [ 3473.195201] [] ? trace_hardirqs_off+0xd/0x10 [ 3473.195201] [] ? __kmalloc+0x104/0x220 [ 3473.195201] [] kmem_cache_destroy+0x177/0x3e0 [ 3473.195201] [] xfs_destroy_zones+0x37/0x100 [xfs] [ 3473.195201] [] exit_xfs_fs+0x33/0x3d [xfs] [ 3473.195201] [] sys_delete_module+0x17a/0x270 [ 3473.195201] [] ? lockdep_sys_exit_thunk+0x35/0x67 [ 3473.195201] [] system_call_fastpath+0x16/0x1b [ 3473.195201] INFO: Object 0xffff8801e8640910 @offset=2320 [ 3473.195201] INFO: Allocated in kmem_zone_alloc+0x8c/0xd0 [xfs] age=2263917 cpu=15 pid=4514 [ 3473.195201] INFO: Freed in xfs_efi_item_free+0x19/0x30 [xfs] age=2263918 cpu=15 pid=4514 [ 3473.195201] INFO: Object 0xffff8801e86427e0 @offset=10208 [ 3473.195201] INFO: Allocated in kmem_zone_alloc+0x8c/0xd0 [xfs] age=2103034 cpu=15 pid=22329 [ 3473.195201] INFO: Freed in xfs_efi_item_free+0x19/0x30 [xfs] age=2103034 cpu=15 pid=22329 [ 3473.197616] SLUB xfs_efi_item: kmem_cache_destroy called for cache that still has objects. [ 3473.197794] Pid: 22011, comm: rmmod Not tainted 2.6.37-rc6+ #116 [ 3473.197892] Call Trace: [ 3473.197980] [] kmem_cache_destroy+0x357/0x3e0 [ 3473.198120] [] xfs_destroy_zones+0x37/0x100 [xfs] [ 3473.198240] [] exit_xfs_fs+0x33/0x3d [xfs] [ 3473.198337] [] sys_delete_module+0x17a/0x270 [ 3473.198435] [] ? lockdep_sys_exit_thunk+0x35/0x67 [ 3473.198534] [] system_call_fastpath+0x16/0x1b