]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.19/0015-tilegx-enable-SYSCALL_WRAPPERS-support.patch
linux-ti33x-psp 3.2: update to 3.2.21, add libertas fixes
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.19 / 0015-tilegx-enable-SYSCALL_WRAPPERS-support.patch
1 From 7f297eaca9b90a9be05ebe02c90efca3692136db Mon Sep 17 00:00:00 2001
2 From: Chris Metcalf <cmetcalf@tilera.com>
3 Date: Fri, 18 May 2012 13:33:24 -0400
4 Subject: [PATCH 015/117] tilegx: enable SYSCALL_WRAPPERS support
6 commit e6d9668e119af44ae5bcd5f1197174531458afe3 upstream.
8 Some discussion with the glibc mailing lists revealed that this was
9 necessary for 64-bit platforms with MIPS-like sign-extension rules
10 for 32-bit values.  The original symptom was that passing (uid_t)-1 to
11 setreuid() was failing in programs linked -pthread because of the "setxid"
12 mechanism for passing setxid-type function arguments to the syscall code.
13 SYSCALL_WRAPPERS handles ensuring that all syscall arguments end up with
14 proper sign-extension and is thus the appropriate fix for this problem.
16 On other platforms (s390, powerpc, sparc64, and mips) this was fixed
17 in 2.6.28.6.  The general issue is tracked as CVE-2009-0029.
19 Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
20 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
21 ---
22  arch/tile/Kconfig |    1 +
23  1 file changed, 1 insertion(+)
25 diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig
26 index 7c9d2d4..6cb8319 100644
27 --- a/arch/tile/Kconfig
28 +++ b/arch/tile/Kconfig
29 @@ -11,6 +11,7 @@ config TILE
30         select GENERIC_IRQ_PROBE
31         select GENERIC_PENDING_IRQ if SMP
32         select GENERIC_IRQ_SHOW
33 +       select HAVE_SYSCALL_WRAPPERS if TILEGX
34         select SYS_HYPERVISOR
35         select ARCH_HAVE_NMI_SAFE_CMPXCHG
36  
37 -- 
38 1.7.9.5