[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100521183512.4477F40476@magilla.sf.frob.com>
Date: Fri, 21 May 2010 11:35:12 -0700 (PDT)
From: Roland McGrath <roland@...hat.com>
To: Oleg Nesterov <oleg@...hat.com>
Cc: Mike Frysinger <vapier@...too.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-sh@...r.kernel.org, Paul Mundt <lethal@...ux-sh.org>,
uclinux-dist-devel@...ckfin.uclinux.org,
linux-kernel@...r.kernel.org, David Howells <dhowells@...hat.com>
Subject: Re: [PATCH v2] ptrace: unify FDPIC implementations
> This looks unsafe. What protect child->mm if ptrace() races with SIGKILL ?
>
> Of course, I do not blame this patch, the code was copied from arch/, but
> I think we need another patch which checks ->mm != NULL under task_lock()
> on top of this one?
Agreed, unless things are somehow different on nommu so there aren't such
races. But, as you mention, this is a long-standing issue that is entirely
unrelated to the cleanup here and should not delay merging this patch.
Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists