From: Thomas Gleixner <tglx@linutronix.de>
To: Andi Kleen <ak@suse.de>
Cc: ying.huang@intel.com, mingo@elte.hu, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [1/2] CPA: Fix set_memory_x for ioremap v2
Date: Wed, 13 Feb 2008 00:02:53 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.1.00.0802122318090.12988@apollo.tec.linutronix.de> (raw)
In-Reply-To: <20080212153.888987414@suse.de>
On Tue, 12 Feb 2008, Andi Kleen wrote:
> There would be several possible ways to fix this:
> - Simply don't set the NX bit in the original ioremap and drop
> set_memory_x and add a ioremap_exec(). That would be my preferred solution,
> but unfortunately has been dismissed before
> - Drop all __pas and always use the physical address derived
> from the looked up PTE. This would need some significant restructuring
> and would only fix the first problem above, not the second.
> - Special case NX clear to change any aliases. I chose this one
> because it happens to fix both problems, so is both a fix
> and a optimization.
>
> This implies that it's still not safe calling set_memory_(not x) on
> any ioremaped/vmalloced/module addresses.
There is another option:
- Fix it proper.
The so-called "significant restructuring" took a mere 2 hours,
which is probably less than the time consumed in this thread.
http://git.kernel.org/?p=linux/kernel/git/x86/linux-2.6-x86.git;a=shortlog;h=mm
Thanks,
tglx
next prev parent reply other threads:[~2008-02-12 23:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 12:53 Andi Kleen
2008-02-12 12:53 ` [PATCH] [2/2] Improve not NX check in i386 direct mapping setup Andi Kleen
2008-02-12 23:02 ` Thomas Gleixner [this message]
2008-02-13 11:27 ` [PATCH] [1/2] CPA: Fix set_memory_x for ioremap v2 Andi Kleen
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=alpine.LFD.1.00.0802122318090.12988@apollo.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=ying.huang@intel.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®