Skip to content

Commit b1e0318

Browse files
author
Al Viro
committed
sys_clone() needs asmlinkage_protect
Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 43b1682 commit b1e0318

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎kernel/fork.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,8 +1660,10 @@ SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
16601660
int, tls_val)
16611661
#endif
16621662
{
1663-
return do_fork(clone_flags, newsp, 0,
1664-
parent_tidptr, child_tidptr);
1663+
long ret = do_fork(clone_flags, newsp, 0, parent_tidptr, child_tidptr);
1664+
asmlinkage_protect(5, ret, clone_flags, newsp,
1665+
parent_tidptr, child_tidptr, tls_val);
1666+
return ret;
16651667
}
16661668
#endif
16671669

0 commit comments

Comments
 (0)