summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2020-09-18 10:26:19 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-10-09 23:45:30 +0200
commitb61e1f3281c5a53f24f47849873463514f58c1b8 (patch)
tree73623ca152797153f08cddc9bca78cb8f619869f /drivers/s390
parenteefc69a09ca5b441ee136f9fb68ab5970cfc2d51 (diff)
downloadlinux-b61e1f3281c5a53f24f47849873463514f58c1b8.tar.bz2
s390/kprobes: move insn_page to text segment
Move the in-kernel kprobes insn page to text segment. Rationale: having that page in rw data segment is suboptimal, since as soon as a kprobe is set, this will split the 1:1 kernel mapping for a single page which get new permissions. Note: there is always at least one kprobe present for the kretprobe trampoline; so the mapping will always be split into smaller 4k mappings because of this. Moving the kprobes insn page into text segment makes sure that the page is mapped RO/X in any case, and avoids that the 1:1 mapping is split. The kprobe insn_page is defined as a dummy function which is filled with "br %r14" instructions. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions