Re: [PATCH] Move some more structures into "mostly_readonly"

From: Jörn Engel
Date: Wed Jun 08 2005 - 05:22:35 EST


On Wed, 8 June 2005 12:07:25 +0200, Arjan van de Ven wrote:
> On Wed, 2005-06-08 at 12:00 +0200, Jörn Engel wrote:
> > On Tue, 7 June 2005 17:31:19 -0400, Brian Gerst wrote:
> > >
> > > It doesn't really matter. .rodata isn't actually mapped read-only.
> > > Doing so would break up the large pages used to map the kernel.
> >
> > Can you confirm that for every architecture? Or just i386?
>
> does it matter? it's supposed to be read only, only sometimes that's not
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> enforced unfortunately.

I agree. What I don't agree with is "It doesn't really matter" - not
after debugging the occasional memory corruptions.

Jörn

--
The grand essentials of happiness are: something to do, something to
love, and something to hope for.
-- Allan K. Chalmers
-
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/