From: dannie.stanley@gmail.com (Dannie Stanley)
To: kernelnewbies@lists.kernelnewbies.org
Subject: RO/NX Protections and Modules
Date: Mon, 23 Jan 2012 17:04:33 -0500 [thread overview]
Message-ID: <CAGmNJwYB8gmDyQ2ke2ZqxEBLdb0xRaNE_bcCKuw=MqBGWDz85A@mail.gmail.com> (raw)
Regarding the source code for kernel version 2.6.38. In
kernel/module.c the function defined as:
SYSCALL_DEFINE3(init_module...)
Calls set_section_ro_nx for core and init. My first question is this:
Q1: Why doesn't the exit text/data get the RO/NX page protection?
In the set_section_ro_nx function the RO comment reads: "Do not
protect last partial page" and the NX comment reads: "Do not protect
first partial page." In the presence of mixed pages this makes sense.
However, change_page_attr_set_clr seems to check for page alignment.
So my second question is this:
Q2: Does the RO/NX only apply to page aligned sections?
Thank you,
Dannie
--
Dannie M. Stanley
next reply other threads:[~2012-01-23 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 22:04 Dannie Stanley [this message]
2012-01-25 19:01 ` RO/NX Protections and Modules Fredrick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGmNJwYB8gmDyQ2ke2ZqxEBLdb0xRaNE_bcCKuw=MqBGWDz85A@mail.gmail.com' \
--to=dannie.stanley@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).