Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1413921

Re: Adding module support for __ro_after_init

From Rusty Russell <rusty@rustcorp.com.au>
Newsgroups linux.kernel
Subject Re: Adding module support for __ro_after_init
Date 2016-06-05 07:20 +0200
Message-ID <rGyDD-2CX-5@gated-at.bofh.it> (permalink)
References <rG2kq-6QU-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Kees Cook <keescook@google.com> writes:
> Hi Rusty,
>
> I'd love to get your thoughts on the best way to support
> __ro_after_init markings for modules. Are the r/o markings done after
> module __init runs? If so, this should make things easy, and then we
> just need to move .data..ro_after_init into .rodata at link time. If
> not, then we'd need to explicitly make this section read-only after
> _init.

As you might expect, the sections are made read-only before anything
runs.  We'll need to do the latter, which means it needs to be
page-aligned.  (Well we could put it in the same page as .rodata, and
just not protect that fully until after init).

Jessica might have more thoughts...
Rusty.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Adding module support for __ro_after_init Kees Cook <keescook@google.com> - 2016-06-03 20:50 +0200
  Re: Adding module support for __ro_after_init Rusty Russell <rusty@rustcorp.com.au> - 2016-06-05 07:20 +0200
    Re: Adding module support for __ro_after_init Jessica Yu <jeyu@redhat.com> - 2016-06-07 08:50 +0200
      Re: Adding module support for __ro_after_init Kees Cook <keescook@google.com> - 2016-06-07 18:00 +0200

csiph-web