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

From: Arjan van de Ven (arjan_at_infradead.org)
Date: 06/08/05

  • Next message: Ingo Molnar: "Re: race in usbnet.c in full RT"
    To: Jörn Engel <joern@wohnheim.fh-wedel.de>
    Date:	Wed, 08 Jun 2005 12:35:33 +0200
    
    

    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 majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ingo Molnar: "Re: race in usbnet.c in full RT"

    Relevant Pages