Re: [uml-devel] Re: [patch 11/39] remap_file_pages protection support: add MAP_NOINHERIT flag
From: Blaisorblade
Date: Mon Aug 22 2005 - 15:45:09 EST
On Friday 12 August 2005 21:43, Russell King wrote:
> On Fri, Aug 12, 2005 at 08:21:23PM +0200, blaisorblade@xxxxxxxx wrote:
> > From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
> >
> > Add the MAP_NOINHERIT flag to arch headers, for use with
> > remap-file-pages.
> Does this mean ARM will break when these patches are merged?
Sorry for missing answer, I was disconnected.
Well, when they'll be merged in -mm you(and other archs) will see a bit of
things screwing up, but *this* patch is trivial to port to all archs.
The real problem will be updating the PTE encoding macros (see pte_file and
sys_remap_file_pages) to also store the page protections. Or at least pretend
they do - things won't compile otherwise.
However, those patches stayed around in -mm for a while, since 2.6.4-rc2-mm1
to 2.6.5-mm1, so the (basic) fixes will be of the same kind.
VM_FAULT_SIGSEGV is much more though, however. When VMA pages can change
protection, permission checking must move to the generic VM. See patches for
i386 about that (patches for other architectures are compile-only, and don't
handle properly this aspect).
However, don't worry for now, we'll be discussing this on next try. Mass arch
updating will happen after the patch has been set into its definitive shape.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/