All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Fedyk <mfedyk@matchmail.com>
To: Andrea Arcangeli <andrea@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.23pre6aa1
Date: Thu, 2 Oct 2003 17:51:16 -0700	[thread overview]
Message-ID: <20031003005116.GD13051@matchmail.com> (raw)
In-Reply-To: <20031002152648.GB1240@velociraptor.random>

On Thu, Oct 02, 2003 at 05:26:48PM +0200, Andrea Arcangeli wrote:
> Only in 2.4.23pre6aa1: 05_vm_27-pte-dirty-bit-in-hardware-1
> 
> 	This fixes a longstanding bug for a number of archs that haven't the
> 	dirty bit updated in hardware. For those archs we can't mark the pte
> 	writeable when it's still in swap cache, unless we don't mark it dirty
> 	too at the same time. Otherwise the cpu will go ahead writing to the
> 	page, no fault will happen and the swapcache will be still clean, and
> 	the data will be lost at the next zeroIO swapout leading to userspace
> 	data corruption and segfaults during swap. Affected archs are
> 	alpha/s390/s390x for example.
> 
> 	This bug was specific to the -aa VM, it couldn't happen
> 	in mainline. In my tree I optimized the code to exploited
> 	properties of archs that updates the bit in hardware for the
> 	first time. Hence the first need of a #define to differentiate the
> 	two code paths. The logic in the software-dirty-bit case will
> 	be less efficient of course (that's why there's a difference
> 	in the first place).

What does rmap do in this case then?

  parent reply	other threads:[~2003-10-03  0:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-02 15:26 2.4.23pre6aa1 Andrea Arcangeli
2003-10-03  0:09 ` 2.4.23pre6aa1 Mathias Kretschmer
2003-10-03  7:41   ` 2.4.23pre6aa1 Andrea Arcangeli
2003-10-03  0:51 ` Mike Fedyk [this message]
2003-10-03  7:37   ` 2.4.23pre6aa1 Andrea Arcangeli
2003-10-03 10:15 ` 2.4.23pre6aa1: HZ not constant? Eyal Lebedinsky
2003-10-03 12:02   ` Andrea Arcangeli
2003-10-03 14:26 ` 2.4.23pre6aa1: scsi/pcmcia qlogic does not build Eyal Lebedinsky
2003-10-03 16:26   ` Andrea Arcangeli
2003-10-04  6:26 ` 2.4.23pre6aa1 Norberto Bensa
2003-10-05  2:50 ` 2.4.23pre6aa1 Marcelo Tosatti
2003-10-05  9:23   ` 2.4.23pre6aa1 Andrea Arcangeli
2003-10-09 20:40     ` 2.4.23pre6aa1 Marcelo Tosatti

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=20031003005116.GD13051@matchmail.com \
    --to=mfedyk@matchmail.com \
    --cc=andrea@suse.de \
    --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 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.