Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* PATCH: fork.c bug in 0.99.pl11
@ 1993-07-19 16:25 Linus Torvalds
  0 siblings, 0 replies; only message in thread
From: Linus Torvalds @ 1993-07-19 16:25 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-07-19 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-19 16:25 PATCH: fork.c bug in 0.99.pl11 Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox