Looks like a bug to me... in 2.4 series

Martin Guy <[email protected]>
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Hi folks
   I've been trying to put OM into the current debian 2.4 kernel
and browsing the patches I am worried by the following code
fragments in openMosix-2.4.26-2 and its derivatives.

Watch the use of altfs/altgs

+++ hpc/mig.c
        /* restore segment registers.
           FIXME: do this only if remote modified LDT */
        loadsegment(gs, m->altgs);
        loadsegment(fs, m->altgs);

+++ hpc/service.c
        /* load segment registers
           FIXME: do this only if remote modified LDT */
        loadsegment(gs, p->mosix.altgs);
        loadsegment(fs, p->mosix.altfs);
...then later...
        /* load segment registers
           FIXME: do this only if remote modified LDT */
        loadsegment(gs, p->mosix.altgs);
        loadsegment(fs, p->mosix.altgs);

Does anyone know whether these are typoes from when the lines
were copied and pasted, or should altgs really be used for both
fs and gs? Up until 2.4.24-2, it's always "altgs" in both places,
then in 2.4.26-1 it appears as above: fs, altfs in one place only.

My symptoms are that simple tasks (infinite loops) distribute and
run ok, but complex ones get occational segfaults and other times
the kernel gets a NULL pointer dereference and hangs.

Any ideas?

    M


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.