kernel_optimize_test/arch/tile
Chris Metcalf bc4cf2bb27 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>
2010-12-17 16:56:50 -05:00
..
configs defconfig reduction 2010-08-14 22:26:53 +02:00
include Merge branch 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2010-11-25 07:42:03 +09:00
kernel arch/tile: handle CLONE_SETTLS in copy_thread(), not user space 2010-12-17 16:56:50 -05:00
kvm arch/tile: parameterize system PLs to support KVM port 2010-10-15 15:38:09 -04:00
lib arch/tile: fix memchr() not to dereference memory for zero length 2010-11-24 13:57:42 -05:00
mm drivers/net/tile/: on-chip network drivers for the tile architecture 2010-11-24 13:11:18 -05:00
Kbuild arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
Kconfig pci root complex: support for tile architecture 2010-11-24 13:13:49 -05:00
Kconfig.debug arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
Makefile arch/tile: parameterize system PLs to support KVM port 2010-10-15 15:38:09 -04:00