[patch] ia64/clone2: make sure child_stack is non-NULL

Mike Frysinger vapier@gentoo.org
Thu Feb 23 02:36:00 GMT 2006


On Wednesday 22 February 2006 21:23, H. J. Lu wrote:
> On Wed, Feb 22, 2006 at 08:19:56PM -0500, Mike Frysinger wrote:
> > playing with uClibc/ia64 and i noticed that a test case we have for
> > testing the return value of clone() when given bum arguments was failing
> > ... seems the clone2() function in ia64 never verifies child_stack like
> > all other architectures
> >
> > attached patch adds a check for child_stack alongside the check for
> > child_fn ... i know squat about ia64 assembly so i'd be surprised if this
> > was correct :)
>
> Can you also provide a patch for testcase?

testcase from uClibc is attached (not as a patch though)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst-clone1.c
Type: text/x-csrc
Size: 530 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20060223/7048d97c/attachment.bin>


More information about the Libc-alpha mailing list