summaryrefslogtreecommitdiff
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorRohit Vaswani <rvaswani@codeaurora.org>2014-10-31 20:53:08 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:24 -0700
commitf4fbcaf9f770d7ad91bb55e4a5e9a8f7761f0c1e (patch)
tree0836f2b1e9c9e380bda6c3ab036c40f009012b54 /mm/vmscan.c
parenta7470fb452691c07f79cbd431e72f0315ab25e1d (diff)
arm64: Add support for KERNEL_TEXT_RDONLY
When using FORCE_PAGES to allocate the kernel memory into pages, provide an option to mark the the kernel text section as read only. Since the kernel text pages are always mapped in the kernel, anyone can write to the page if they have the address. Enable this option to mark the kernel text pages as read only to trigger a fault if any code attempts to write to a page that is part of the kernel text section. Change-Id: I2a9e105a3340686b4314bb10cc2a6c7bfa19ce8e Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions