Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: axp-list@redhat.com
Subject: Re: netscape woes with 2.4.10 kernel
Date: Thu, 27 Sep 2001 13:50:22 +0400	[thread overview]
Message-ID: <20010927135022.A17284@jurassic.park.msu.ru> (raw)
In-Reply-To: <DDFE9DFB5EA2D311B35A009027CA9357012EF1FE@erlh909a.med.siemens.de>; from Oliver.Heid@med.siemens.de on Wed, Sep 26, 2001 at 03:47:05PM +0200

On Wed, Sep 26, 2001 at 03:47:05PM +0200, Heid Oliver wrote:
> I just tried the new 2.4.10 kernel (RH7.1 on UP2000+), and got one problem
> (so far): netscape fails with a mapping error on libXmu.so. A 2.4.9 kernel
> compiled with identical configs works fine. Does anybody have a fix?

I think it was caused by incomplete merging with Alan's tree.
Here is a fix.

Ivan.

--- 2.4.10/mm/mmap.c	Fri Sep 21 14:49:18 2001
+++ linux/mm/mmap.c	Fri Sep 21 16:58:51 2001
@@ -600,8 +600,11 @@ static inline unsigned long arch_get_unm
 		if (TASK_SIZE - len >= addr &&
 		    (!vma || addr + len <= vma->vm_start))
 			return addr;
+		if (addr > TASK_UNMAPPED_BASE)
+			addr = 0;
 	}
-	addr = PAGE_ALIGN(TASK_UNMAPPED_BASE);
+	if (!addr)
+		addr = PAGE_ALIGN(TASK_UNMAPPED_BASE);
 
 	for (vma = find_vma(current->mm, addr); ; vma = vma->vm_next) {
 		/* At this point:  (!vma || addr < vma->vm_end). */




  parent reply	other threads:[~2001-09-27  9:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-26 13:47 netscape woes with 2.4.10 kernel Heid Oliver
2001-09-26 14:13 ` Daniel Green
2001-09-27  9:50 ` Ivan Kokshaysky [this message]
2001-09-27 12:35   ` Linus Gasser
2001-09-27 14:51   ` Daniel Green
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