From: velizarb@pirincom.com
To: <linux-kernel@vger.kernel.org> (Linux Kernel mailing list)
Subject: [PATCH] bugfix in memory.c
Date: Sun, 29 Jul 2001 13:10:34 +0300 (EEST) [thread overview]
Message-ID: <200107291029.f6TATso13796@goce.pirincom.com> (raw)
The following is a bugfix against memory.c:lock_kiovec,
At line 649 we have:
if (!PageLocked(page)) {
which assumes page is the page we failed to lock, and if it is unlocked after calling
the unlock_kiovec we have a page which has been mapped twice, but page has been modified
and it doesn't contain the expected value.
Patch is against 2.4.8-pre1, Comments are welcome.
--
--- memory.c.old Sun Jul 29 12:38:19 2001
+++ memory.c Sun Jul 29 12:39:04 2001
@@ -619,9 +619,10 @@
if (TryLockPage(page)) {
while (j--) {
- page = *(--ppage);
- if (page)
- UnlockPage(page);
+ struct page *tmp;
+ tmp = *(--ppage);
+ if (tmp)
+ UnlockPage(tmp);
}
goto retry;
}
reply other threads:[~2001-07-29 10:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200107291029.f6TATso13796@goce.pirincom.com \
--to=velizarb@pirincom.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).