From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751301AbWGKPpB (ORCPT ); Tue, 11 Jul 2006 11:45:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751302AbWGKPpB (ORCPT ); Tue, 11 Jul 2006 11:45:01 -0400 Received: from nz-out-0102.google.com ([64.233.162.206]:43959 "EHLO nz-out-0102.google.com") by vger.kernel.org with ESMTP id S1751303AbWGKPo7 (ORCPT ); Tue, 11 Jul 2006 11:44:59 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h6gQtZQkHCpQVTsIKlbJJ1HQRKWD3oJgqhi9q0NsP0bpmQlpggg71s5B7uj7zW0YGnc/Rjm5r9mTfutsgSzIW7MOlQ1Bpkofcp6+uh0oHuNgjdABuHca5sk/IpKGbbZVuB5BsYkClHuR6Ye46EnjtWfo13CKtH1Bm2qpLo7zgJU= Message-ID: Date: Tue, 11 Jul 2006 16:44:59 +0100 From: "Catalin Marinas" To: "Michal Piotrowski" Subject: Re: [PATCH 00/10] Kernel memory leak detector 0.8 Cc: linux-kernel@vger.kernel.org In-Reply-To: <6bffcb0e0607110802w4f423854rb340227331084596@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060710220901.5191.66488.stgit@localhost.localdomain> <6bffcb0e0607110527x4520d5bbne8b9b3639a821a18@mail.gmail.com> <6bffcb0e0607110617g36f7123dm2b5f0e88b10cbcaa@mail.gmail.com> <6bffcb0e0607110649s464840a9sf04c7537809436b1@mail.gmail.com> <6bffcb0e0607110802w4f423854rb340227331084596@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/06, Michal Piotrowski wrote: > It is DEBUG_MEMLEAK_ORPHAN_FREEING issue. Disabling it solved the > problem. OK, thanks for trying. > orphan pointer 0xc6113bec (size 28): > c017392a: <__kmalloc_track_caller> > c01631b1: <__kzalloc> > c010b7d7: > c010b89c: > c0100b8b: > c0100c3d: > c0100cdb: That's a real leak. I posted a patch last night that solves this issue - http://lkml.org/lkml/2006/7/10/370 > This is most common > orphan pointer 0xf5a6fd60 (size 39): > c0173822: <__kmalloc> > c01df500: > c01df679: > c01d7eee: > f884f019: > f8850698: > c02a88c2: > c02a9c7a: Looking at the call trace, the pointer to the memory allocated in context_struct_to_string() is stored in the "cb" variable in struct sk_buff (argument passed to selinux_socket_getpeersec_dgram from unix_get_peersec_dgram). This pointer should be found when scanning the "struct sk_buff" blocks, unless you also get a comparable number of "struct sk_buff" reports (from __alloc_skb). If not, it might be a real leak. -- Catalin