]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
.27 patch
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Mar 2009 21:51:04 +0000 (14:51 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Mar 2009 21:51:04 +0000 (14:51 -0700)
queue-2.6.27/mips-compat-implement-is_compat_task.patch [new file with mode: 0644]
queue-2.6.27/series

diff --git a/queue-2.6.27/mips-compat-implement-is_compat_task.patch b/queue-2.6.27/mips-compat-implement-is_compat_task.patch
new file mode 100644 (file)
index 0000000..918f3ae
--- /dev/null
@@ -0,0 +1,46 @@
+From 4302e5d53b9166d45317e3ddf0a7a9dab3efd43b Mon Sep 17 00:00:00 2001
+From: Ralf Baechle <ralf@linux-mips.org>
+Date: Thu, 5 Mar 2009 11:45:48 +0100
+Subject: MIPS: compat: Implement is_compat_task.
+
+From: Ralf Baechle <ralf@linux-mips.org>
+
+commit 4302e5d53b9166d45317e3ddf0a7a9dab3efd43b upstream.
+
+This is a build fix required after "x86-64: seccomp: fix 32/64 syscall
+hole" (commit 5b1017404aea6d2e552e991b3fd814d839e9cd67).  MIPS doesn't
+have the issue that was fixed for x86-64 by that patch.
+
+This also doesn't solve the N32 issue which is that N32 seccomp processes
+will be treated as non-compat processes thus only have access to N64
+syscalls.
+
+Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
+Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ include/asm-mips/compat.h |    7 +++++++
+ 1 file changed, 7 insertions(+)
+
+--- a/include/asm-mips/compat.h
++++ b/include/asm-mips/compat.h
+@@ -3,6 +3,8 @@
+ /*
+  * Architecture specific compatibility types
+  */
++#include <linux/seccomp.h>
++#include <linux/thread_info.h>
+ #include <linux/types.h>
+ #include <asm/page.h>
+ #include <asm/ptrace.h>
+@@ -218,4 +220,9 @@ struct compat_shmid64_ds {
+       compat_ulong_t  __unused2;
+ };
++static inline int is_compat_task(void)
++{
++      return test_thread_flag(TIF_32BIT);
++}
++
+ #endif /* _ASM_COMPAT_H */
index 1f926e706920e9dfb262510cea483a1fc8b8054a..54674badb8c193f12d424e8415e81484151734a1 100644 (file)
@@ -92,3 +92,4 @@ ext4-initialize-preallocation-list_head-s-properly.patch
 ext4-fix-null-dereference-in-ext4_ext_migrate-s-error-handling.patch
 ext4-add-fallback-for-find_group_flex.patch
 ext4-fix-deadlock-in-ext4_write_begin-and-ext4_da_write_begin.patch
+mips-compat-implement-is_compat_task.patch