projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43b1682
)
sys_clone() needs asmlinkage_protect
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 20 Jan 2013 03:13:34 +0000
(22:13 -0500)
committer
Al 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
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index a31b823b3c2d6d4e6254128f00e36c6c1b048c37..e05cff2429b5d74fdff15d1efec9244568f82a53 100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-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