https://github.com/torvalds/linux
Revision f2ca09f381a59e1eddb89aa70207740c2ee0fe94 authored by Laura Abbott on 13 March 2015, 20:41:45 UTC, committed by Russell King on 18 March 2015, 10:13:46 UTC
The set_memory_* functions currently only support module
addresses. The addresses are validated using is_module_addr.
That function is special though and relies on internal state
in the module subsystem to work properly. At the time of
module initialization and calling set_memory_*, it's too early
for is_module_addr to work properly so it always returns
false. Rather than be subject to the whims of the module state,
just bounds check against the module virtual address range.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 5c95ed4
History
Tip revision: f2ca09f381a59e1eddb89aa70207740c2ee0fe94 authored by Laura Abbott on 13 March 2015, 20:41:45 UTC
ARM: 8311/1: Don't use is_module_addr in setting page attributes
Tip revision: f2ca09f
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.0 KB
Kbuild -rw-r--r-- 2.1 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 298.0 KB
Makefile -rw-r--r-- 53.3 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top