Re: Possible "struct pid" leak from tty_io.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Catalin Marinas
Date: Wednesday, March 14, 2007 - 2:59 am

On 13/03/07, Eric W. Biederman <ebiederm@xmission.com> wrote:

I looked at the logs and the pointer isn't freed indeed. It is just a
false negative in kmemleak and it would appear as a leak at some
point. But the previous patch (do_tty_hangup) seems to fix one of the
leaks.

For the 2nd leak, proc_set_tty is called and, for symmetry, I added
put_pid in proc_clear_tty (but without any deep thought). I also
haven't checked any lockdep issues with adding put_pid when
p->sighand->siglock is held.

-- 
Catalin
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Possible &quot;struct pid&quot; leak from tty_io.c, Catalin Marinas, (Thu Mar 8, 10:27 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Thu Mar 8, 11:11 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Catalin Marinas, (Fri Mar 9, 3:53 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Fri Mar 9, 9:13 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Catalin Marinas, (Fri Mar 9, 9:44 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Catalin Marinas, (Fri Mar 9, 9:53 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Fri Mar 9, 10:09 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Catalin Marinas, (Mon Mar 12, 8:07 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Mon Mar 12, 9:12 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Tue Mar 13, 12:31 pm)
Re: Possible "struct pid" leak from tty_io.c, Catalin Marinas, (Wed Mar 14, 2:59 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Wed Mar 14, 7:40 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Catalin Marinas, (Wed Mar 14, 10:08 am)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Thu Mar 15, 12:15 pm)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Eric W. Biederman, (Fri Mar 16, 3:01 pm)
Re: Possible &quot;struct pid&quot; leak from tty_io.c, Catalin Marinas, (Fri Mar 16, 3:44 pm)
[PATCH] tty: Fix two reported pid leaks, Eric W. Biederman, (Sun Mar 18, 11:45 am)
[PATCH 0/4] tty: small fixes and cleanups., Eric W. Biederman, (Sun Mar 18, 11:52 am)
[PATCH 1/4] tty: Remove unnecessary export of proc_clear_tty, Eric W. Biederman, (Sun Mar 18, 11:57 am)
[PATCH 2/4] tty: Simplify calling of put_pid., Eric W. Biederman, (Sun Mar 18, 12:03 pm)
[PATCH 3/4] tty: Introduce no_tty and use it in selinux, Eric W. Biederman, (Sun Mar 18, 12:08 pm)
[PATCH 4/4] tty: In tiocsctty when we steal a tty hang it up., Eric W. Biederman, (Sun Mar 18, 12:13 pm)