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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-06-08 at 12:20 +0200, Jörn Engel wrote:
> 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.

I agree, and it would be very useful to have a debug option in the
kernel that say checksums rodata (and probably the kernel text which is
also read only) periodically and raises an alarm if the checksum
changes. 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux