]> git.baikalelectronics.ru Git - kernel.git/commit
x86: opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit
authorJosh Triplett <josh@joshtriplett.org>
Tue, 30 Jun 2015 22:00:00 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:45:01 +0000 (19:45 -0700)
commitabe481548fc38476fe16947445635b2c1dd9c71e
treed8665f69bbae52c8f10206550b483433b2348d2b
parent979d77d8aa81abd40508943e0490adce4aa4bd28
x86: opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit

For 32-bit userspace on a 64-bit kernel, this requires modifying
stub32_clone to actually swap the appropriate arguments to match
CONFIG_CLONE_BACKWARDS, rather than just leaving the C argument for tls
broken.

Patch co-authored by Josh Triplett and Thiago Macieira.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Thiago Macieira <thiago.macieira@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/Kconfig
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c