From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id F10862EFE1 for ; Thu, 27 Sep 2001 05:50:39 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f8R9odO30178 for axp-list@listman.redhat.com; Thu, 27 Sep 2001 05:50:39 -0400 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f8R9ocg30174 for ; Thu, 27 Sep 2001 05:50:39 -0400 Received: (from ink@localhost) by jurassic.park.msu.ru (8.11.2/8.11.2) id f8R9oMj17361 for axp-list@redhat.com; Thu, 27 Sep 2001 13:50:22 +0400 Date: Thu, 27 Sep 2001 13:50:22 +0400 From: Ivan Kokshaysky To: axp-list@redhat.com Subject: Re: netscape woes with 2.4.10 kernel Message-ID: <20010927135022.A17284@jurassic.park.msu.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from Oliver.Heid@med.siemens.de on Wed, Sep 26, 2001 at 03:47:05PM +0200 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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). */