From: Andrea Arcangeli <andrea@suse.de>
To: Marc-Christian Petersen <m.c.p@wolk-project.de>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
Linus Torvalds <torvalds@osdl.org>
Subject: Re: do we want to kill VM_RESERVED or not? [was Re: 2.6.5-rc1-aa3]
Date: Sun, 21 Mar 2004 13:15:26 +0100 [thread overview]
Message-ID: <20040321121526.GD10787@dualathlon.random> (raw)
In-Reply-To: <20040321120005.GC10787@dualathlon.random>
On Sun, Mar 21, 2004 at 01:00:05PM +0100, Andrea Arcangeli wrote:
> On Sun, Mar 21, 2004 at 12:49:39PM +0100, Andrea Arcangeli wrote:
> > the additional hardness you could remove the BUG_ON on in memory.c at line
>
> I now discovered that WARN_ON exists too, so probably the best is to
> simply change that to a WARN_ON (or to a printk). If one will ever do a
> pagetable walk again, one has to change that to a BUG_ON by that time.
> Kernel will work stable regardless of that condition triggering.
>
> --- x/mm/memory.c.~1~ 2004-03-20 22:12:43.000000000 +0100
> +++ x/mm/memory.c 2004-03-21 12:59:05.331923016 +0100
> @@ -1429,7 +1429,7 @@ retry:
> * real anonymous pages, they're "device" reserved pages instead.
> */
> reserved = !!(vma->vm_flags & VM_RESERVED);
> - BUG_ON(reserved == pageable);
> + WARN_ON(reserved == pageable);
>
> /*
> * Should we do an early C-O-W break?
and here the vmware proper fix:
--- vmmon-only/linux/driver.c.~1~ 2004-03-21 13:07:02.869326296 +0100
+++ vmmon-only/linux/driver.c 2004-03-21 13:07:28.320457136 +0100
@@ -1083,6 +1083,7 @@ static int LinuxDriverMmap(struct file *
}
/* Clear VM_IO, otherwise SuSE's kernels refuse to do get_user_pages */
vma->vm_flags &= ~VM_IO;
+ vma->vm_flags |= VM_RESERVED;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 2, 3)
vma->vm_file = filp;
filp->f_count++;
You should apply both (though just applying one of the two will fix it).
next prev parent reply other threads:[~2004-03-21 12:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-20 21:03 2.6.5-rc1-aa3 Andrea Arcangeli
2004-03-20 22:06 ` 2.6.5-rc1-aa3 Andrew Morton
2004-03-21 6:17 ` 2.6.5-rc1-aa3 Martin J. Bligh
2004-03-21 11:51 ` 2.6.5-rc1-aa3 Andrea Arcangeli
2004-03-21 13:26 ` 2.6.5-rc1-aa3 Andrea Arcangeli
2004-03-21 16:23 ` 2.6.5-rc1-aa3 Martin J. Bligh
2004-03-21 10:05 ` 2.6.5-rc1-aa3 Marc-Christian Petersen
2004-03-21 11:49 ` do we want to kill VM_RESERVED or not? [was Re: 2.6.5-rc1-aa3] Andrea Arcangeli
2004-03-21 12:00 ` Andrea Arcangeli
2004-03-21 12:15 ` Andrea Arcangeli [this message]
2004-03-21 19:42 ` Marc-Christian Petersen
2004-03-22 0:10 ` Andrea Arcangeli
2004-03-22 12:10 ` Marc-Christian Petersen
2004-03-22 12:42 ` Andrea Arcangeli
2004-03-23 9:54 ` Marc-Christian Petersen
2004-03-21 23:24 ` Andrew Morton
2004-03-22 0:51 ` Andrea Arcangeli
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=20040321121526.GD10787@dualathlon.random \
--to=andrea@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.c.p@wolk-project.de \
--cc=torvalds@osdl.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.