sys_clone() needs asmlinkage_protect
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 20 Jan 2013 03:13:34 +0000 (22:13 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 20 Jan 2013 03:13:34 +0000 (22:13 -0500)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/fork.c

index a31b823b3c2d6d4e6254128f00e36c6c1b048c37..e05cff2429b5d74fdff15d1efec9244568f82a53 100644 (file)
@@ -1660,8 +1660,10 @@ SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
                 int, tls_val)
 #endif
 {
-       return do_fork(clone_flags, newsp, 0,
-               parent_tidptr, child_tidptr);
+       long ret = do_fork(clone_flags, newsp, 0, parent_tidptr, child_tidptr);
+       asmlinkage_protect(5, ret, clone_flags, newsp,
+                       parent_tidptr, child_tidptr, tls_val);
+       return ret;
 }
 #endif