Re: [PATCH v2] ptrace: unify FDPIC implementations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Friday, May 21, 2010 - 9:26 am

On 05/21, Mike Frysinger wrote:

I think the patch is nice too.

But,


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?

Oleg.

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

Messages in current thread:
[PATCH] ptrace: unify FDPIC implementations, Mike Frysinger, (Mon Feb 15, 5:30 pm)
Re: [PATCH] ptrace: unify FDPIC implementations, Paul Mundt, (Mon Feb 15, 6:10 pm)
Re: [PATCH] ptrace: unify FDPIC implementations, Mike Frysinger, (Tue Feb 16, 1:12 am)
[PATCH v2] ptrace: unify FDPIC implementations, Mike Frysinger, (Fri May 21, 1:42 am)
Re: [PATCH v2] ptrace: unify FDPIC implementations, Oleg Nesterov, (Fri May 21, 9:26 am)
Re: [PATCH v2] ptrace: unify FDPIC implementations, Roland McGrath, (Fri May 21, 11:35 am)
[PATCH 0/2] blackfin: ptrace mm/sram_list fixes, Oleg Nesterov, (Thu May 27, 12:55 pm)
Re: [PATCH 0/2] blackfin: ptrace mm/sram_list fixes, Mike Frysinger, (Thu May 27, 1:21 pm)
Re: [PATCH 0/2] blackfin: ptrace mm/sram_list fixes, Oleg Nesterov, (Fri May 28, 12:43 pm)