[Linux-ia64] Re: Memory leak in 2.5.64

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-03-12 17:53:02
>>>>> On Tue, 11 Mar 2003 14:44:14 +1100, Peter Chubb <peter@chubb.wattle.id.au> said:

  Peter> Hi David, The way that tasks need to be freed has changed
  Peter> since 2.5.61 --- I think we need to do something like the
  Peter> attached patch (keep __put_task_struct() in kernel/fork.c;
  Peter> have ia64-specific free_task_struct() in
  Peter> arch/ia64/kernel/process.c) otherwise the user_struct will
  Peter> never have its reference count deleted and so will not be
  Peter> freed.

Yes, indeed.  The patch basically looks good to me, except it
shouldn't say CONFIG_IA64.  The choice of whether or not thread_info
and task_struct should be allocated in one chunk should be a general
platform-choice.  There really isn't anything ia64-specific about it.

	--david
Received on Tue Mar 11 22:54:53 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:12 EST