Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76fb051d authored by Russell King's avatar Russell King
Browse files

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: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 580218f9
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -55,7 +55,8 @@ static int change_memory_common(unsigned long addr, int numpages,
	if (!size)
	if (!size)
		return 0;
		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;
		return -EINVAL;


	data.set_mask = set_mask;
	data.set_mask = set_mask;