ARM: 8464/1: Update all mm structures with section adjustments
authorLaura Abbott <labbott@redhat.com>
Mon, 30 Nov 2015 18:36:28 +0000 (19:36 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 4 Dec 2015 19:20:34 +0000 (19:20 +0000)
commit08925c2f124f1bac6152a8b234268f9874fc70a5
tree37bc92623cc72be72dde47ea5bf6bde6c86cdf31
parent40ee068ec09b2d98162da5ea18b7c6fdbaa2bb71
ARM: 8464/1: Update all mm structures with section adjustments

Currently, when updating section permissions to mark areas RO
or NX, the only mm updated is current->mm. This is working off
the assumption that there are no additional mm structures at
the time. This may not always hold true. (Example: calling
modprobe early will trigger a fork/exec). Ensure all mm structres
get updated with the new section information.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/init.c