linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Andrew Morton <akpm@digeo.com>,
	Zlatko Clausic <zlatko.calusic@iskon.hr>,
	Alessandro Suardi <alessandro.suardi@oracle.com>,
	<linux-kernel@vger.kernel.org>
Subject: [PATCH] Oracle startup split_vma fix
Date: Tue, 1 Oct 2002 16:32:35 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0210011621490.1203-100000@localhost.localdomain> (raw)
In-Reply-To: <dny99icwp0.fsf@magla.zg.iskon.hr>

Alessandro Suardi and Zlatko Calusic independently reported that
Oracle cannot start on recent 2.5: excellent research by Zlatko
quickly pointed to vm_pgoff buglet in the new split_vma.

Patch below against 2.5.40 or 2.5.40-mm1: please apply.

--- 2.5.40/mm/mmap.c	Tue Oct  1 15:33:04 2002
+++ linux/mm/mmap.c	Tue Oct  1 15:53:06 2002
@@ -1058,7 +1058,7 @@
 	if (new_below) {
 		new->vm_end = addr;
 		vma->vm_start = addr;
-		vma->vm_pgoff += ((addr - vma->vm_start) >> PAGE_SHIFT);
+		vma->vm_pgoff += ((addr - new->vm_start) >> PAGE_SHIFT);
 	} else {
 		vma->vm_end = addr;
 		new->vm_start = addr;


      parent reply	other threads:[~2002-10-01 15:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01  9:52 Shared memory shmat/dt not working well in 2.5.x Zlatko Calusic
2002-10-01 13:07 ` Alessandro Suardi
2002-10-01 13:09 ` [PATCH] " Hugh Dickins
2002-10-01 13:28   ` Alessandro Suardi
2002-10-01 13:46     ` Zlatko Calusic
2002-10-01 14:51       ` Alessandro Suardi
2002-10-01 14:59         ` Zlatko Calusic
2002-10-02 18:45         ` Zlatko Calusic
2002-10-08 11:22           ` Zlatko Calusic
2002-10-08 11:38             ` Duncan Sands
2002-10-08 15:10               ` Zlatko Calusic
2002-10-08 15:25                 ` Duncan Sands
2002-10-01 13:37   ` Zlatko Calusic
2002-10-01 15:32 ` Hugh Dickins [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0210011621490.1203-100000@localhost.localdomain \
    --to=hugh@veritas.com \
    --cc=akpm@digeo.com \
    --cc=alessandro.suardi@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    --cc=zlatko.calusic@iskon.hr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).