Initialize word in the childs stack which will be loaded into the %esi
authordrepper <drepper>
Mon, 18 Nov 2002 07:41:00 +0000 (07:41 +0000)
committerdrepper <drepper>
Mon, 18 Nov 2002 07:41:00 +0000 (07:41 +0000)
register.

sysdeps/unix/sysv/linux/i386/clone.S

index 64c0778..8f655a7 100644 (file)
@@ -69,6 +69,8 @@ ENTRY (BP_SYM (__clone))
           It will be popped off in the child in the ebx frobbing below.  */
        movl    FUNC(%esp),%eax
        movl    %eax,4(%ecx)
+       /* Don't leak any information.  */
+       movl    $0,(%ecx)
 
        /* Do the system call */
        pushl   %ebx