aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-29 19:47:55 -0400
committerAndi Kleen <andi@basil.nowhere.org>2006-09-29 19:47:55 -0400
commit34596dc9e59d7bece16fe5aba08116b49465da26 (patch)
tree75e09786a8ff8db3a69a5c82663f97d317e59e46 /kernel/sys.c
parent120b114237e2461fb4fa437c5c37edf014c916b9 (diff)
[PATCH] Define vsyscall cache as blob to make clearer that user space shouldn't use it
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 8647061c084a..b88806c66244 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -2083,12 +2083,12 @@ asmlinkage long sys_getcpu(unsigned __user *cpup, unsigned __user *nodep,
2083 * padding 2083 * padding
2084 */ 2084 */
2085 unsigned long t0, t1; 2085 unsigned long t0, t1;
2086 get_user(t0, &cache->t0); 2086 get_user(t0, &cache->blob[0]);
2087 get_user(t1, &cache->t1); 2087 get_user(t1, &cache->blob[1]);
2088 t0++; 2088 t0++;
2089 t1++; 2089 t1++;
2090 put_user(t0, &cache->t0); 2090 put_user(t0, &cache->blob[0]);
2091 put_user(t1, &cache->t1); 2091 put_user(t1, &cache->blob[1]);
2092 } 2092 }
2093 return err ? -EFAULT : 0; 2093 return err ? -EFAULT : 0;
2094} 2094}