mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: Arjan van de Ven <arjan@infradead.org>
Cc: mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH[ Export __PAGE_KERNEL_EXEC for modules (vmmon)
Date: Fri, 29 Oct 2004 13:38:37 +0200	[thread overview]
Message-ID: <20041029113837.GD10837@vana.vc.cvut.cz> (raw)
In-Reply-To: <1099040620.2641.11.camel@laptop.fenrus.org>

On Fri, Oct 29, 2004 at 11:03:41AM +0200, Arjan van de Ven wrote:
> On Fri, 2004-10-29 at 00:11 +0200, Petr Vandrovec wrote:
> > Hello Ingo,
> >   recently support for NX on i386 arrived to 2.6.x kernel, and I have
> > some problems building code which uses vmap since then - PAGE_KERNEL_EXEC
> 
> why are you vmap'ing *executable* kernel memory?
> That sounds very wrong.... very very wrong. The module loader needs it,
> sure, but that's not modular. What on earth are you doing ????

Due to rule that not everything should be in kernel, userspace
picks one of codes needed to switch processor from currently used
mode  & address space to mode VMware needs (ia32 => long, long => ia32, 
PAE <=> non-PAE + cr3 + gdt + idt) maps it into kernel space, and then run 
it as needed.  And for running it it must be executable.

OK, I think that I understand message.  __pgprot(__PAGE_KERNEL & ~_PAGE_NX)
is my friend.
						Petr Vandrovec


  reply	other threads:[~2004-10-29 11:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28 22:11 Petr Vandrovec
2004-10-29  9:03 ` Arjan van de Ven
2004-10-29 11:38   ` Petr Vandrovec [this message]
2004-10-29 11:42     ` Arjan van de Ven
2004-10-29 12:00 ` Christoph Hellwig

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=20041029113837.GD10837@vana.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.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®