Re: [PATCH] elf_core_dump: use rcu_read_lock() to access ->real_parent

From: David Howells
Date: Wed Apr 29 2009 - 05:46:56 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> (on top of ptrace-s-parent-real_parent-in-binfmt_elf_fdpicc.patch)
>
> In theory it is not safe to dereference ->parent/real_parent without
> tasklist or rcu lock, we can race with re-parenting.
>
> Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

Acked-by: David Howells <dhowells@xxxxxxxxxx>
--
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/