From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] enable to read region 5 from /dev/kmem
Date: Wed, 13 Jul 2005 00:33:18 +0000 [thread overview]
Message-ID: <42D4614E.7000007@jp.fujitsu.com> (raw)
In-Reply-To: <42C501CD.4010907@jp.fujitsu.com>
Hi, Tony
My idea is "A user needs O_SYNC flag to access uncachable area"
like other archs.
With this, a user can avoid accessing region 6 by mistake, to some extent.
- Kamezawa
Luck, Tony wrote:
>>>It comes down to what the real semantics of /dev/kmem are supposed
>>>to be.
>>
>>That is certainly true. I thought we had settled that pages with the
>>WB attribute would _only_ be accessible in a cacheable fashion and
>>pages without the WB attribute would _only_ be accessible uncached.
>
>
> So what is the right thing to do when a user goes through /dev/kmem
> and tries to violate this rule? For region 7 addresses we silently
> redirect the access to region 6 for uncacheable pages. At the time
> this seemed a reasonable thing to do as it might be hard for a kmem
> using program to track down whether a page is marked uncacheable ...
> and the "kernel virtual = physical + PAGE_OFFSET" rule works on many
> architectures, so doing this may magically make some kmem readers
> get the right answers without crashing.
>
> We could do a similar thing for region 6 and silently remap to region
> 7 for pages that should only be accessed cacheably ... but what if the
> user going through /dev/kmem and seeking into region 6 knows what they
> are doing and wants to perform uncacheable access? If the user is
> accessing region 6, then they didn't get there by blind chance.
>
> Which gets back to the semantics of /dev/kmem.
>
> -Tony
>
prev parent reply other threads:[~2005-07-13 0:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-01 8:41 [PATCH] enable to read region 5 from /dev/kmem KAMEZAWA Hiroyuki
2005-07-11 23:02 ` Luck, Tony
2005-07-12 0:14 ` KAMEZAWA Hiroyuki
2005-07-12 0:22 ` Chen, Kenneth W
2005-07-12 1:16 ` KAMEZAWA Hiroyuki
2005-07-12 7:18 ` KAMEZAWA Hiroyuki
2005-07-12 17:14 ` Luck, Tony
2005-07-12 18:23 ` david mosberger
2005-07-12 19:05 ` Luck, Tony
2005-07-12 21:39 ` david mosberger
2005-07-12 22:08 ` Luck, Tony
2005-07-13 0:33 ` KAMEZAWA Hiroyuki [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=42D4614E.7000007@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-ia64@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.