From: Zlatko Calusic <zlatko@iskon.hr>
To: Rik van Riel <riel@conectiva.com.br>
Cc: Dan Aloni <karrde@callisto.yi.org>,
Linus Torvalds <torvalds@transmeta.com>,
"Marco d'Itri" <md@Linux.IT>, Alan Cox <alan@lxorguk.ukuu.org.uk>,
Alexander Viro <viro@math.psu.edu>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: innd mmap bug in 2.4.0-test12
Date: 27 Dec 2000 23:04:10 +0100 [thread overview]
Message-ID: <87d7eded2d.fsf@atlas.iskon.hr> (raw)
In-Reply-To: <Pine.LNX.4.21.0012271717230.14052-100000@duckman.distro.conectiva>
In-Reply-To: Rik van Riel's message of "Wed, 27 Dec 2000 17:20:33 -0200 (BRDT)"
Rik van Riel <riel@conectiva.com.br> writes:
> On Mon, 25 Dec 2000, Dan Aloni wrote:
> > On 25 Dec 2000, Zlatko Calusic wrote:
> >
> > > Speaking of page_launder() I just stumbled upon two oopsen today on
> > > the UP build. Maybe it could give a hint to someone, I'm not that good
> > > at Oops decoding.
> >
> > I've decoded the Oops I got, and found that the problem is in
> > vmscan.c:line-605, where page->mapping is NULL and a_ops gets
> > resolved and dereferenced at 0x0000000c.
>
> The code assumes that every page which has the PG_dirty
> bit set also has page->mapping set to a valid value.
>
> The BUG() people are getting confirms that this assumption
> is not necessarily true and the VM work that's going on will
> most likely make it not be true either in some cases.
>
> The (trivial) patch below should fix this problem.
>
> Linus and/or Alan, could you please apply this for the next
> pre-patch ?
>
Looking at the patch, I'm practically sure it will cure the symptoms.
But I'm still slightly worried about those pages we skip in
there. Maybe we should at least try to discover what are those pages,
and then maybe it will become obvious what we need (or not) to do with
them.
Some strategic printk()s could probably give us some clue.
Too bad I lost track of the recent changes due to catastrofic time
shortage. And that is a shame as I'm very satisfied with the current
VM code, thanks to your hard work Rik.
> regards,
>
> Rik
> --
> Hollywood goes for world dumbination,
> Trailer at 11.
>
> http://www.surriel.com/
> http://www.conectiva.com/ http://distro.conectiva.com.br/
>
>
> --- vmscan.c.orig Wed Dec 27 16:48:24 2000
> +++ vmscan.c Wed Dec 27 17:14:32 2000
> @@ -601,7 +601,7 @@
> * Dirty swap-cache page? Write it out if
> * last copy..
> */
> - if (PageDirty(page)) {
> + if (PageDirty(page) && page->mapping) {
> int (*writepage)(struct page *) = page->mapping->a_ops->writepage;
> int result;
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
>
--
Zlatko
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-12-27 22:37 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-24 8:28 innd mmap bug in 2.4.0-test12 Marco d'Itri
2000-12-24 13:05 ` Jeff Lightfoot
[not found] ` <Pine.GSO.4.21.0012240330370.13109-100000@weyl.math.psu.edu>
2000-12-24 16:00 ` Marco d'Itri
2000-12-24 17:57 ` Linus Torvalds
2000-12-24 18:10 ` Linus Torvalds
2000-12-24 19:19 ` Dietmar Kling
2000-12-24 23:23 ` Zlatko Calusic
2000-12-25 2:26 ` Dan Aloni
2000-12-27 19:20 ` Rik van Riel
2000-12-27 22:04 ` Zlatko Calusic [this message]
[not found] ` <3A4A758F.98EBC605@innominate.de>
2000-12-28 14:29 ` Daniel Phillips
2000-12-28 18:38 ` [PATCH] " Daniel Phillips
2000-12-28 18:54 ` Linus Torvalds
2000-12-28 19:17 ` Daniel Phillips
2000-12-28 20:36 ` Daniel Phillips
2000-12-28 20:42 ` Linus Torvalds
2000-12-28 23:50 ` Daniel Phillips
2000-12-27 23:41 ` Linus Torvalds
2000-12-27 23:55 ` Philipp Rumpf
2000-12-28 0:27 ` Linus Torvalds
2000-12-28 3:00 ` Chris Wedgwood
2000-12-28 5:06 ` Ari Heitner
2000-12-28 6:01 ` Chris Wedgwood
2000-12-28 12:14 ` Alan Cox
2000-12-28 21:36 ` Mo McKinlay
2000-12-28 18:50 ` Linus Torvalds
2000-12-28 18:57 ` Alan Cox
2000-12-29 8:03 ` innd mmap bug in 2.4.0-test12 (UNIMPORTANT) Pau
2000-12-29 1:32 ` innd mmap bug in 2.4.0-test12 Chris Wedgwood
2000-12-29 9:39 ` Christoph Rohland
2000-12-28 15:03 ` Daniel Phillips
2000-12-28 15:12 ` Rik van Riel
2000-12-28 15:15 ` Daniel Phillips
2000-12-28 17:44 ` Chris Mason
2000-12-28 17:51 ` Rik van Riel
2000-12-28 18:18 ` Chris Mason
2000-12-28 17:49 ` Linus Torvalds
2000-12-28 0:43 ` Dan Aloni
2000-12-28 1:41 ` Dan Aloni
2000-12-28 14:14 ` Rik van Riel
2000-12-28 14:33 ` Rik van Riel
2000-12-28 16:03 ` Daniel Phillips
2000-12-28 17:47 ` Linus Torvalds
2000-12-28 18:02 ` Rik van Riel
2000-12-26 23:02 ` Michael Peddemors
2000-12-27 18:39 ` Alan Cox
2000-12-24 20:07 ` Daniel Phillips
2000-12-24 22:08 ` Linus Torvalds
2000-12-24 23:53 ` Marco d'Itri
2000-12-25 3:10 ` Augusto César Radtke
2000-12-25 9:19 ` Linus Torvalds
2000-12-25 9:42 ` Linus Torvalds
2000-12-26 1:45 ` Alan Cox
2000-12-26 18:17 ` Linus Torvalds
2000-12-26 4:50 ` Chris Wedgwood
2000-12-26 5:26 ` controllerless pci device support Eric Shattow
2000-12-27 0:39 ` Alan Cox
2000-12-26 5:37 ` innd mmap bug in 2.4.0-test12 Linus Torvalds
2000-12-27 10:29 ` Anton Blanchard
2001-01-04 20:44 ` Ralf Gerbig
2000-12-25 18:44 ` Marco d'Itri
2000-12-26 2:20 ` Linus Torvalds
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=87d7eded2d.fsf@atlas.iskon.hr \
--to=zlatko@iskon.hr \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=karrde@callisto.yi.org \
--cc=linux-kernel@vger.kernel.org \
--cc=md@Linux.IT \
--cc=riel@conectiva.com.br \
--cc=torvalds@transmeta.com \
--cc=viro@math.psu.edu \
/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