[patch 31/56] Fix kernel panic in migration

Florian Delizy <[email protected]> Thu, 02 Nov 2006 22:56:47 +0100
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
This patch fix an array out of bound copy

(This patch should be already in the git tree)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel
openmosix-fix-mig_send-x8664.patch (text/x-patch, 619 B)
Subject: [patch @num@/@total@] Fix kernel panic in migration

This patch fix an array out of bound copy

(This patch should be already in the git tree)

Index: linux/hpc/arch-x86_64.c
===================================================================
--- linux.orig/hpc/arch-x86_64.c	2006-11-02 22:50:41.000000000 +0100
+++ linux/hpc/arch-x86_64.c	2006-11-02 22:52:20.000000000 +0100
@@ -103,7 +103,7 @@
 
 	memcpy(&m->regs, regs, sizeof(struct pt_regs));
 
-	for (i = 0; i < TLS_SIZE; i++)
+	for (i = 0; i < GDT_ENTRY_TLS_ENTRIES; i++)
 		m->arch.tls_array[i] = p->thread.tls_array[i];
 
 	m->arch.ds = p->thread.ds;