From: Greg Kroah-Hartman Date: Fri, 13 Mar 2009 21:49:41 +0000 (-0700) Subject: .28 patch X-Git-Tag: v2.6.28.8~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8d8dbf948f09a80135a906d913e1176a235134c;p=thirdparty%2Fkernel%2Fstable-queue.git .28 patch --- diff --git a/queue-2.6.28/mips-compat-implement-is_compat_task.patch b/queue-2.6.28/mips-compat-implement-is_compat_task.patch new file mode 100644 index 00000000000..1e8a6c41fc4 --- /dev/null +++ b/queue-2.6.28/mips-compat-implement-is_compat_task.patch @@ -0,0 +1,46 @@ +From 4302e5d53b9166d45317e3ddf0a7a9dab3efd43b Mon Sep 17 00:00:00 2001 +From: Ralf Baechle +Date: Thu, 5 Mar 2009 11:45:48 +0100 +Subject: MIPS: compat: Implement is_compat_task. + +From: Ralf Baechle + +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 +Signed-off-by: Linus Torvalds +Signed-off-by: Greg Kroah-Hartman + +--- + arch/mips/include/asm/compat.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +--- a/arch/mips/include/asm/compat.h ++++ b/arch/mips/include/asm/compat.h +@@ -3,6 +3,8 @@ + /* + * Architecture specific compatibility types + */ ++#include ++#include + #include + #include + #include +@@ -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 */ diff --git a/queue-2.6.28/series b/queue-2.6.28/series index e4d1c0db3bb..837dc446536 100644 --- a/queue-2.6.28/series +++ b/queue-2.6.28/series @@ -109,3 +109,4 @@ acpi-fix-broken-usage-of-acpi_ut_get_node_name.patch crypto-api-fix-algorithm-test-race-that-broke-aead-initialisation.patch hwmon-hide-misleading-error-message.patch drm-i915-add-missing-userland-definitions-for-gem-init-execbuffer.patch +mips-compat-implement-is_compat_task.patch