From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Lynch Subject: Re: [PATCH 1/1] implement s390 clone_with_pids syscall Date: Wed, 11 Nov 2009 01:27:22 -0600 Message-ID: <1257924442.7132.467.camel@localhost.localdomain> References: <20091110163708.GA19122@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20091110163708.GA19122-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: serue-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org Cc: Linux Containers , sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org, linux-s390-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: containers.vger.kernel.org > + parent_tid_ptr = (int *)kca.parent_tid_ptr; > + child_tid_ptr = (int *)kca.child_tid_ptr; > + > + stack_size = (unsigned long)kca.child_stack_size; > + child_stack = (unsigned long)kca.child_stack_base; > + if (child_stack) > + child_stack += stack_size; Should this calculation not be of the form: child_stack = arch_dependent_alignment(child_stack + stack_size - 1) ? Is overflow a concern? Same questions apply to the x86 version.