From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15522 invoked from network); 22 Jun 1999 05:48:20 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 22 Jun 1999 05:48:20 -0000 Received: from spb.sterling.ru (gatekeeper.spb.sterling.ru [194.67.6.80]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA22793 for ; Tue, 22 Jun 1999 00:54:02 -0400 Received: from spb.sterling.ru (really [127.0.0.1]) by spb.sterling.ru via smail with esmtp (ident ivans using rfc1413) id (Debian Smail3.2.0.102) for ; Tue, 22 Jun 1999 08:45:48 +0400 (MSD) Sender: ivans@mail.redhat.com Message-ID: <376F14FB.14CA757E@spb.sterling.ru> Date: Tue, 22 Jun 1999 08:45:47 +0400 From: Michael Ivanov Reply-To: ivans@spb.sterling.ru Organization: Sterling Group, SPb. X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.9 i686) X-Accept-Language: ru,en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: instability References: <376BCE96.8CACBF27@ma.ultranet.com> <19990619125843.A8357@twiddle.net> <376E88FA.9D75E4DD@zk3.dec.com> Content-Type: multipart/alternative; boundary="------------74ECFDB845961A794231D5DC" --------------74ECFDB845961A794231D5DC Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Hi ebverybody, Can this be the reason for sporadic segv crashes I have when I try to run mtv and let's say, kernel build simultaneously? If so, where I can find a patch? I run 2.2.10ac2. Best regards Peter Rival wrote: > Richard Henderson wrote: > > > On Sat, Jun 19, 1999 at 01:08:38PM -0400, Jay Estabrook wrote: > > > Any progress on the ASN/TLB stuff we were discussing? > > > > Yes. I sent a message to axp-list in the wee hours Friday morning, but > > sent it from the wrong account and it bounced. > > > > It's because we made no effort to validate p->tss.asn, only p->mm->context. > > This is a mistake whenever there exist multiple processes that share VM, as > > with threads or vfork. > > > > Consider two processes A and B sharing a VM. Allow that both have slept > > across the asn rollover. Process A gets scheduled first, notes that > > A->mm->context is out of date, allocates a new one, and updates A->tss.asn > > and A->mm->context. Process B gets scheduled, notes that B->mm->context > > is up to date, and proceeds to use an out of date asn, causing all sorts > > of havok. -- Michael Ivanov. Voice: +7 (812) 219-9237. E-mail: ivans@spb.sterling.ru --------------74ECFDB845961A794231D5DC Content-Type: text/html; charset=koi8-r Content-Transfer-Encoding: 7bit Hi ebverybody,

Can this be the reason for sporadic segv crashes I have when I try to run
mtv and let's say, kernel build simultaneously? If so, where I can find a patch?
I run 2.2.10ac2.

Best regards

Peter Rival wrote:

Richard Henderson wrote:

> On Sat, Jun 19, 1999 at 01:08:38PM -0400, Jay Estabrook wrote:
> > Any progress on the ASN/TLB stuff we were discussing?
>
> Yes.  I sent a message to axp-list in the wee hours Friday morning, but
> sent it from the wrong account and it bounced.
>
> It's because we made no effort to validate p->tss.asn, only p->mm->context.
> This is a mistake whenever there exist multiple processes that share VM, as
> with threads or vfork.
>
> Consider two processes A and B sharing a VM.  Allow that both have slept
> across the asn rollover.  Process A gets scheduled first, notes that
> A->mm->context is out of date, allocates a new one, and updates A->tss.asn
> and A->mm->context.  Process B gets scheduled, notes that B->mm->context
> is up to date, and proceeds to use an out of date asn, causing all sorts
> of havok.

--
Michael Ivanov.
    Voice:  +7 (812) 219-9237. E-mail: ivans@spb.sterling.ru
  --------------74ECFDB845961A794231D5DC--