mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: flush_page_to_ram() question in kernel/ptrace.c
Date: Thu, 8 Mar 2001 13:08:45 -0800 (PST)	[thread overview]
Message-ID: <15015.62685.775963.665349@pizda.ninka.net> (raw)
In-Reply-To: <3AA7E4E8.5EACF817@colorfullife.com>
In-Reply-To: <3AA7E4E8.5EACF817@colorfullife.com>


Manfred Spraul writes:
 > >                 memcpy(buf, maddr + (addr & ~PAGE_MASK), len);
 > >                 flush_page_to_ram(page);
 >                   ^^^^^^^^^^^^^^^^^^^^^^
 > Is this flush required?
 > 
 > The memcpy read from the mapping, it didn't write.

You have to kick it out of the cache so that future reads on the
kernel side don't get stale data with caching setups that allow
illegal aliases to form.

Later,
David S. Miller
davem@redhat.com








      reply	other threads:[~2001-03-08 21:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-08 20:00 Manfred Spraul
2001-03-08 21:08 ` David S. Miller [this message]

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=15015.62685.775963.665349@pizda.ninka.net \
    --to=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    /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

all inboxes | Powered by JetHome®