Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2003 15:10:34 +0800
From:      "David Xu" <davidxu@freebsd.org>
To:        "Daniel Eischen" <eischen@pcnet1.pcnet.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: Scope system threads (was Re: PS_BLOCKED)
Message-ID:  <005001c2ff30$47835e60$f001a8c0@davidw2k>
References:  <Pine.GSO.4.10.10304091821510.8775-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----=20
From: "Daniel Eischen" <eischen@pcnet1.pcnet.com>
To: "David Xu" <davidxu@freebsd.org>
Cc: <freebsd-threads@freebsd.org>
Sent: Thursday, April 10, 2003 6:24 AM
Subject: Re: Scope system threads (was Re: PS_BLOCKED)


> On Wed, 9 Apr 2003, Daniel Eischen wrote:
> > I'll get another patch set up as soon as I can.  I'd like to
>=20
> It's in place now; same usual location.
>=20
>   http://people.freebsd.org/~deischen/libpthread.diffs
>=20

Got it!

I have found that %gs is not saved by kernel in trap frame
and it brain dead direct loads userland %gs in cpu_switch,
it is a bug for threaded program, I can easily crash kernel
within few lines code by setting %gs to use LDT in a thread,
and invalid the LDT descriptor in another thread, and kernel
will crash in cpu_switch()! I am trying to fix it in kernel,
but because there is too much code I must look, too easy to
crash kernel, It would cost me much time, this is too bad
for me, se we can not run multiple kses until the serious
bug is fixed.

> --=20
> Dan Eischen




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005001c2ff30$47835e60$f001a8c0>