]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/module.c
module: When modifying a module's text ignore modules which are going away too
authorAaron Tomlin <atomlin@redhat.com>
Thu, 27 Oct 2016 09:36:06 +0000 (10:36 +0100)
committerJessica Yu <jeyu@redhat.com>
Sat, 26 Nov 2016 19:18:03 +0000 (11:18 -0800)
commit905dd707fc856bae57de144dcf873583881f9489
tree44b86285a362094c40916410c761f4778f8c30e3
parent885a78d4a5b3ad2d7c41d1819b001d7957f442cd
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: Aaron Tomlin <atomlin@redhat.com>
Acked-by: Rusty 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: Jessica Yu <jeyu@redhat.com>
kernel/module.c