From: David Mosberger <davidm@napali.hpl.hp.com>
To: akpm@digeo.com
Cc: linux-kernel@vger.kernel.org
Subject: [patch] make mprotect() work again
Date: Wed, 25 Sep 2002 16:00:15 -0700 [thread overview]
Message-ID: <200209252300.g8PN0FGO019455@napali.hpl.hp.com> (raw)
This patch:
ChangeSet@1.536.31.4, 2002-09-17 20:35:47-07:00, akpm@digeo.com
[PATCH] consolidate the VMA splitting code
broke mprotect(). The patch below makes it work again.
--david
===== mm/mprotect.c 1.16 vs edited =====
--- 1.16/mm/mprotect.c Tue Sep 17 11:05:14 2002
+++ edited/mm/mprotect.c Wed Sep 25 15:48:39 2002
@@ -186,8 +186,10 @@
/*
* Try to merge with the previous vma.
*/
- if (mprotect_attempt_merge(vma, *pprev, end, newflags))
+ if (mprotect_attempt_merge(vma, *pprev, end, newflags)) {
+ change_protection(vma, start, end, newprot);
return 0;
+ }
} else {
error = split_vma(mm, vma, start, 1);
if (error)
next reply other threads:[~2002-09-25 22:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-25 23:00 David Mosberger [this message]
2002-09-25 23:19 ` [patch] make mprotect() work again Andrew Morton
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=200209252300.g8PN0FGO019455@napali.hpl.hp.com \
--to=davidm@napali.hpl.hp.com \
--cc=akpm@digeo.com \
--cc=davidm@hpl.hp.com \
--cc=linux-kernel@vger.kernel.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 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).