diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-12-14 15:57:49 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-12-17 16:56:50 -0500 |
commit | bc4cf2bb271b2d557fc510426755da786fc985be (patch) | |
tree | 25fa4e868d810603da82d1a7c800cf1b0eb0d100 /arch/tile/include/asm | |
parent | 5111711d3ed8f4f1012cac3ec3f2b463b549fbfd (diff) |
arch/tile: handle CLONE_SETTLS in copy_thread(), not user space
Previously we were just setting up the "tp" register in the
new task as started by clone() in libc. However, this is not
quite right, since in principle a signal might be delivered to
the new task before it had its TLS set up. (Of course, this race
window still exists for resetting the libc getpid() cached value
in the new task, in principle. But in any case, we are now doing
this exactly the way all other architectures do it.)
This change is important for 2.6.37 since the tile glibc we will
be submitting upstream will not set TLS in user space any more,
so it will only work on a kernel that has this fix. It should
also be taken for 2.6.36.x in the stable tree if possible.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Cc: stable <stable@kernel.org>
Diffstat (limited to 'arch/tile/include/asm')
0 files changed, 0 insertions, 0 deletions