]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: mm: allow set_memory_*() to be used on the vmalloc region
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 21 Nov 2016 16:07:05 +0000 (16:07 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 29 Nov 2016 18:00:34 +0000 (18:00 +0000)
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>
arch/arm/mm/pageattr.c

index 6cb0d8ea9138c7f1cd9c48fc001550ebe18b4764..3b69f26425130fd65aebc4342bcfbdbbd84a68c7 100644 (file)
@@ -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;