From: torvalds@cc.helsinki.fi (Linus Torvalds)
Subject: PATCH: fork.c bug in 0.99.pl11
Date: 19 Jul 1993 12:25:58 -0400 [thread overview]
Message-ID: <22ehum$4vg@theory.TC.Cornell.EDU> (raw)
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
--
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
reply other threads:[~1993-07-19 16:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox