Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 #include <linux/linkage.h>
0004 
0005 /*
0006  * insn_page is a special 4k aligned dummy function for kprobes.
0007  * It will contain all kprobed instructions that are out-of-line executed.
0008  * The page must be within the kernel image to guarantee that the
0009  * out-of-line instructions are within 2GB distance of their original
0010  * location. Using a dummy function ensures that the insn_page is within
0011  * the text section of the kernel and mapped read-only/executable from
0012  * the beginning on, thus avoiding to split large mappings if the page
0013  * would be in the data section instead.
0014  */
0015     .section .kprobes.text, "ax"
0016     .align 4096
0017 ENTRY(kprobes_insn_page)
0018     .rept 2048
0019     .word 0x07fe
0020     .endr
0021 ENDPROC(kprobes_insn_page)
0022     .previous