From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992436AbXCPWoP (ORCPT ); Fri, 16 Mar 2007 18:44:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2992442AbXCPWoP (ORCPT ); Fri, 16 Mar 2007 18:44:15 -0400 Received: from nz-out-0506.google.com ([64.233.162.226]:49140 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992436AbXCPWoO (ORCPT ); Fri, 16 Mar 2007 18:44:14 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GTE8s33SyYgUq6kBcxL/I33a7yRM8FQguq9H2qNgeUOCKEs1y5e0UABgfhou3QfMIogP8KHl4qSZ+yy4vDKPl/CTQojAv50hAVk/DVaM33djZlXzKYgvLLWcCk2bb2HxpE6/rWzg/h1MJsvME3t7g13mF10swp9bGCZQ7v0JlFM= Message-ID: Date: Fri, 16 Mar 2007 22:44:14 +0000 From: "Catalin Marinas" To: "Eric W. Biederman" Subject: Re: Possible "struct pid" leak from tty_io.c Cc: "Linux Kernel Mailing List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/07, Eric W. Biederman wrote: > "Catalin Marinas" writes: > > It seems to fix the leak. I looked at the logs and proc_set_tty calls > > put_pid twice for pid 245 (the unresolved leak) and get_pid for pid > > 296, which is later passed to put_pid via do_tty_hangup. > > Ok. Any chance you could help me track down which application is > ultimately calling proc_set_tty (I think it has pid 296 in your case). I'll look at this on Monday since I was trying it on an ARM embedded platform in the office (with a Debian filesystem). -- Catalin