From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,cd6644c0224f81fe,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-07-19 09:32:15 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!pipex!warwick!zaphod.crihan.fr!vishnu.jussieu.fr!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!bounce-bounce From: torvalds@cc.helsinki.fi (Linus Torvalds) Newsgroups: comp.os.linux.announce Subject: PATCH: fork.c bug in 0.99.pl11 Followup-To: comp.os.linux Date: 19 Jul 1993 12:25:58 -0400 Organization: University of Helsinki Sender: mdw@TC.Cornell.EDU Message-ID: <22ehum$4vg@theory.TC.Cornell.EDU> Reply-To: torvalds@cc.helsinki.fi (Linus Torvalds) NNTP-Posting-Host: theory.tc.cornell.edu Keywords: bugfix, kernel, patch 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