Hi,
The following patch is needed for utsname to be properly supported
on ppc64. Bug was found by testme.sh #031 :)
(This patch is against the 2.6.14-vs2.2 patch)
thanks,
-serge
Index: linux-2.6.14/arch/ppc64/kernel/syscalls.c
===================================================================
--- linux-2.6.14.orig/arch/ppc64/kernel/syscalls.c 2005-10-27 19:02:08.000000000 -0500
+++ linux-2.6.14/arch/ppc64/kernel/syscalls.c 2005-11-08 12:13:42.000000000 -0600
@@ -37,6 +37,7 @@
#include <linux/file.h>
#include <linux/init.h>
#include <linux/personality.h>
+#include <linux/vs_cvirt.h>
#include <asm/uaccess.h>
#include <asm/ipc.h>
@@ -213,7 +214,7 @@ long ppc64_newuname(struct new_utsname _
int err = 0;
down_read(&uts_sem);
- if (copy_to_user(name, &system_utsname, sizeof(*name)))
+ if (copy_to_user(name, vx_new_utsname(), sizeof(*name)))
err = -EFAULT;
up_read(&uts_sem);
if (!err && personality(current->personality) == PER_LINUX32) {
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Nov 8 18:33:18 2005