On 09/23, Richard Guy Briggs wrote: > > On Mon, Sep 16, 2013 at 04:20:35PM +0200, Oleg Nesterov wrote: > > Unless task == current ptrace_parent(task) is not safe even under > > rcu_read_lock() and most of the current users are not right. > > Could you point to an explanation of this?
If this task exits before rcu_read_lock() ->parent can point to the already freed/reused memory. (in the long term we should probably clear ->parent/real_parent/group_leader/more in __unhash_process(), but lets not discuss this right now ;) > (Did you send a patch to fix the selinux hook?) No, sorry, I was sick. Will do. > Acked-by: Richard Guy Briggs <r...@redhat.com> Thanks! Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/