Re: [patch 2/2] c/r: prctl: Add ability to get clear_tid_address

From: Cyrill Gorcunov
Date: Mon Mar 19 2012 - 12:55:39 EST


On Mon, Mar 19, 2012 at 09:51:36AM -0700, Kees Cook wrote:
> On Fri, Mar 16, 2012 at 1:55 PM, Cyrill Gorcunov <gorcunov@xxxxxxxxxx> wrote:
> > Zero is written at clear_tid_address, when
> > the process exits. This functionality is used
> > by pthread_join().
> >
> > We already have sys_set_tid_address() to change this
> > address for current task but there is no way to obtain
> > it from a user space.
>
> Is it worth introducing a syscall for this just for symmetry? I
> suspect not, in which case:
>
> Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>
>

Thanks Kees! syscall was considered as "no-no" in previous
convesation about this patch, so we switched to prctl.

Cyrill
--
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/