diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-11-21 16:07:05 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-11-29 18:00:34 +0000 |
commit | 76fb051d42945d142fe265b6ec79e06aa9cfb250 (patch) | |
tree | 7c5c217df4228d33c60392e173686631ddd5997b /arch/arm/mm/pageattr.c | |
parent | 580218f9678e76f712a1cf6cff5a903917fa9558 (diff) | |
download | linux-76fb051d42945d142fe265b6ec79e06aa9cfb250.tar.gz linux-76fb051d42945d142fe265b6ec79e06aa9cfb250.tar.bz2 linux-76fb051d42945d142fe265b6ec79e06aa9cfb250.zip |
ARM: mm: allow set_memory_*() to be used on the vmalloc region
We can allow modules to be loaded into the vmalloc region, where they
should also benefit from the same protections as those loaded into
the more efficient module region. Allow these functions to operate
there as well.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm/pageattr.c')
-rw-r--r-- | arch/arm/mm/pageattr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c index 6cb0d8ea9138..3b69f2642513 100644 --- a/arch/arm/mm/pageattr.c +++ b/arch/arm/mm/pageattr.c @@ -55,7 +55,8 @@ static int change_memory_common(unsigned long addr, int numpages, if (!size) return 0; - if (!in_range(start, size, MODULES_VADDR, MODULES_END)) + if (!in_range(start, size, MODULES_VADDR, MODULES_END) && + !in_range(start, size, VMALLOC_START, VMALLOC_END)) return -EINVAL; data.set_mask = set_mask; |