Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\opt.c Create Date:2022-07-28 08:39:15
Last Modify:2022-05-22 07:44:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check whether insn jumps into specified address range

Proto:static int insn_jump_into_range(struct insn *insn, unsigned long start, int len)

Type:int

Parameter:

TypeParameterName
struct insn *insn
unsigned longstart
intlen
208  target = 0
211  Case bytes[0] == 0xe0
212  Case bytes[0] == 0xe1
213  Case bytes[0] == 0xe2
214  Case bytes[0] == 0xe3
215  Case bytes[0] == 0xe9
216  Case bytes[0] == 0xeb
217  Break
218  Case bytes[0] == 0x0f
219  If (bytes[1] & 0xf0) == 0x80 Then Break
221  Return 0
222  Default
223  If (bytes[0] & 0xf0) == 0x70 Then Break
225  Return 0
227  target = next_byte + value
229  Return start <= target && target <= start + len
Caller
NameDescribe
can_optimizeDecode whole function to ensure any instructions don't jump into target