aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-05-18 13:33:24 -0400
committerBen Hutchings <ben@decadent.org.uk>2012-05-31 00:43:19 +0100
commitd58599222e9066cdd0e7ef4f6e8bd701146a3aa2 (patch)
tree26249f757f331b4295b81a015935902892c74fbf /arch/tile
parent31edc012f05bd1cea61df32b4f22f5227bba72d5 (diff)
downloadkernel_samsung_smdk4412-d58599222e9066cdd0e7ef4f6e8bd701146a3aa2.zip
kernel_samsung_smdk4412-d58599222e9066cdd0e7ef4f6e8bd701146a3aa2.tar.gz
kernel_samsung_smdk4412-d58599222e9066cdd0e7ef4f6e8bd701146a3aa2.tar.bz2
tilegx: enable SYSCALL_WRAPPERS support
commit e6d9668e119af44ae5bcd5f1197174531458afe3 upstream. Some discussion with the glibc mailing lists revealed that this was necessary for 64-bit platforms with MIPS-like sign-extension rules for 32-bit values. The original symptom was that passing (uid_t)-1 to setreuid() was failing in programs linked -pthread because of the "setxid" mechanism for passing setxid-type function arguments to the syscall code. SYSCALL_WRAPPERS handles ensuring that all syscall arguments end up with proper sign-extension and is thus the appropriate fix for this problem. On other platforms (s390, powerpc, sparc64, and mips) this was fixed in 2.6.28.6. The general issue is tracked as CVE-2009-0029. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig
index 7c9d2d4..6cb8319 100644
--- a/arch/tile/Kconfig
+++ b/arch/tile/Kconfig
@@ -11,6 +11,7 @@ config TILE
select GENERIC_IRQ_PROBE
select GENERIC_PENDING_IRQ if SMP
select GENERIC_IRQ_SHOW
+ select HAVE_SYSCALL_WRAPPERS if TILEGX
select SYS_HYPERVISOR
select ARCH_HAVE_NMI_SAFE_CMPXCHG