Hi All,

Here is the patch require for fixing the pid namespace testcase bug on
-mm kernel.

Bug: PID Namespace testcases were getting SEGSEV on -mm kernel only.

After reporting this problem, i got fix from container development team.

Thanks
Rishi
Description: Pid Namespace were getting segmentation fault while running on -mm kernel.
                After debugging by container development team they found the exact root cause.

Signed-off By : Serge Hallyn <[EMAIL PROTECTED]>
Signed-off By : Sukadev Bhattiprolu <[EMAIL PROTECTED]>
Tested By     : Rishikesh k Rajak <[EMAIL PROTECTED]>
---
Index: ltp-full-20080131/testcases/kernel/containers/libclone/libclone.c
===================================================================
--- ltp-full-20080131.orig/testcases/kernel/containers/libclone/libclone.c	2007-12-28 04:48:30.000000000 -0500
+++ ltp-full-20080131/testcases/kernel/containers/libclone/libclone.c	2008-02-06 00:44:41.000000000 -0500
@@ -23,14 +23,15 @@
 			int(*fn2)(void *arg), void *arg2)
 {
 	int ret;
-	void *childstack, *stack = malloc(getpagesize());
+	int stack_size = getpagesize();
+	void *childstack, *stack = malloc (4*getpagesize());
 
 	if (!stack) {
 		perror("malloc");
 		return -1;
 	}
 
-	childstack = stack + getpagesize();
+	childstack = stack + 4*getpagesize();
 
 #ifdef __ia64__
 	ret = clone2(fn1, childstack, getpagesize(), clone_flags | SIGCHLD, arg1, NULL, NULL, NULL);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to