Possible "struct pid" leak from tty_io.c
From: Catalin Marinas
Date: Thu Mar 08 2007 - 12:27:57 EST
Hi Eric,
I'm trying to track down a kmemleak report (on an ARM platform) which
seems to have appeared with commit
ab521dc0f8e117fd808d3e425216864d60390500. As I'm not familiar with the
TTY layer at all, is it possible that the above commit missed a
put_pid() call on some path?
The /sbin/init application calls sys_clone() a few times but only one
leak is reported (see below). Looking at the reported pid object (at
0xc7c14500), count is 2 and nr is 296 but no process with pid 296
exists any more.
unreferenced object 0xc7c14500 (size 36):
comm "init", pid 245, jiffies 4294939289
backtrace:
[<c0070c18>] kmem_cache_alloc
[<c003a528>] alloc_pid
[<c0026468>] do_fork
[<c00153b0>] sys_clone
[<c0010f80>] ret_fast_syscall
Thanks.
--
Catalin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/