]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.arch/s390-personality-mask.patch
Revert "Move xen patchset to new version's subdir."
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.arch / s390-personality-mask.patch
diff --git a/src/patches/suse-2.6.27.31/patches.arch/s390-personality-mask.patch b/src/patches/suse-2.6.27.31/patches.arch/s390-personality-mask.patch
deleted file mode 100644 (file)
index 0c47193..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-Subject: [PATCH] fix s390x_newuname
-
-From: Martin Schwidefsky <schwidefsky@de.ibm.com>
-
-The uname system call for 64 bit compares current->personality without
-masking the upper 16 bits. If e.g. READ_IMPLIES_EXEC is set the result
-of a uname system call will always be s390x even if the process uses
-the s390 personality.
-
-Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-Acked-by: John Jolly <jjolly@novell.com>
----
- arch/s390/kernel/sys_s390.c |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/arch/s390/kernel/sys_s390.c
-+++ b/arch/s390/kernel/sys_s390.c
-@@ -199,7 +199,7 @@ SYSCALL_DEFINE1(s390_newuname, struct ne
- {
-       int ret = sys_newuname(name);
--      if (current->personality == PER_LINUX32 && !ret) {
-+      if (personality(current->personality) == PER_LINUX32 && !ret) {
-               ret = copy_to_user(name->machine, "s390\0\0\0\0", 8);
-               if (ret) ret = -EFAULT;
-       }