Skip to content
Commit 905dd707 authored by Aaron Tomlin's avatar Aaron Tomlin Committed by Jessica Yu
Browse files

module: When modifying a module's text ignore modules which are going away too



By default, during the access permission modification of a module's core
and init pages, we only ignore modules that are malformed. Albeit for a
module which is going away, it does not make sense to change its text to
RO since the module should be RW, before deallocation.

This patch makes set_all_modules_text_ro() skip modules which are going
away too.

Signed-off-by: default avatarAaron Tomlin <atomlin@redhat.com>
Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Link: http://lkml.kernel.org/r/1477560966-781-1-git-send-email-atomlin@redhat.com
[jeyu@redhat.com: add comment as suggested by Steven Rostedt]
Signed-off-by: default avatarJessica Yu <jeyu@redhat.com>
parent 885a78d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment