summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/kprobes_insn_page.S
blob: f6cb022ef8c804534756d175c6748c5ae6987707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */

#include <linux/linkage.h>

/*
 * insn_page is a special 4k aligned dummy function for kprobes.
 * It will contain all kprobed instructions that are out-of-line executed.
 * The page must be within the kernel image to guarantee that the
 * out-of-line instructions are within 2GB distance of their original
 * location. Using a dummy function ensures that the insn_page is within
 * the text section of the kernel and mapped read-only/executable from
 * the beginning on, thus avoiding to split large mappings if the page
 * would be in the data section instead.
 */
	.section .kprobes.text, "ax"
	.align 4096
ENTRY(kprobes_insn_page)
	.rept 2048
	.word 0x07fe
	.endr
ENDPROC(kprobes_insn_page)
	.previous