summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorBalbir Singh <bsingharora@gmail.com>2017-06-29 03:04:05 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-07-03 23:12:19 +1000
commit37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 (patch)
tree0e6d72132ce557c01a8554043aa6ce34cfb83b7d /samples
parentefe4fbb1ac3a6489c1dc7d31b51ecb7425807b1b (diff)
downloadlinux-stable-37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1.tar.gz
linux-stable-37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1.tar.bz2
linux-stable-37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1.zip
powerpc/lib/code-patching: Use alternate map for patch_instruction()
This patch creates the window using text_poke_area, allocated via get_vm_area(). text_poke_area is per CPU to avoid locking. text_poke_area for each cpu is setup using late_initcall, prior to setup of these alternate mapping areas, we continue to use direct write to change/modify kernel text. With the ability to use alternate mappings to write to kernel text, it provides us the freedom to then turn text read-only and implement CONFIG_STRICT_KERNEL_RWX. This code is CPU hotplug aware to ensure that the we have mappings for any new cpus as they come online and tear down mappings for any CPUs that go offline. Signed-off-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions