PATCH: fork.c bug in 0.99.pl11

There is at least one known problem with 0.99pl11 - it's very minor and
will not lead to any real problems, but it's also very easy to fix,
so...

The problem is a one-liner oversight in kernel/fork.c (thanks to TjL for
noticing the symptoms - they aren't easy to see), which is fixed by the
following patch:

----- snip snip -----
--- linux/kernel/fork.c.orig	Mon Jul 19 19:09:45 1993
+++ linux/kernel/fork.c	Mon Jul 19 16:55:04 1993
@@ -157,7 +157,7 @@
 	p->tss.cs = KERNEL_CS;
 	p->tss.ss = KERNEL_DS;
 	p->tss.ds = KERNEL_DS;
-	p->tss.fs = KERNEL_DS;
+	p->tss.fs = USER_DS;
 	p->tss.gs = KERNEL_DS;
 	p->tss.ss0 = KERNEL_DS;
 	p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE;
----- snip snip -----

In fact, it's probably easiest to "apply" this patch by hand: just
change the "p->tss.fs = KERNEL_DS" in fork.c to "p->tss.fs = USER_DS"
and you should be fine.

		Linus
1 file changed