[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091106180210.GA31652@us.ibm.com>
Date: Fri, 6 Nov 2009 12:02:10 -0600
From: "Serge E. Hallyn" <serue@...ibm.com>
To: Sukadev Bhattiprolu <sukadev@...ibm.com>
Cc: linux-kernel@...r.kernel.org, arnd@...db.de,
Containers <containers@...ts.linux-foundation.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>, hpa@...or.com,
Alexey Dobriyan <adobriyan@...il.com>, roland@...hat.com,
Pavel Emelyanov <xemul@...nvz.org>
Subject: Re: [v11][PATCH 8/9] Define clone_with_pids() syscall
Quoting Sukadev Bhattiprolu (sukadev@...ibm.com):
> + stack_size = (unsigned long)kca.child_stack_size;
> + child_stack = (unsigned long)kca.child_stack_base + stack_size;
> +
> + if (!child_stack)
> + child_stack = regs->sp;
I'm hooking up the s390 version right now. Do you think you should
make this
if (!kca.child_stack_base)
child_stack = regs->sp;
?
I suppose that in general if I pass in a NULL kca.child_stack_base
I'll also pass in a 0 stacksize, but as a user I'd expect that if
I pass in NULL, the size gets ignored. Instead, if I pass in NULL
plus a size, then the kernel will take (void *)size as the stacktop.
-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists