Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\umip.c Create Date:2022-07-28 08:50:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dentify_insn() - Identify a UMIP-protected instruction*@insn: Instruction structure with opcode and ModRM byte

Proto:static int identify_insn(struct insn *insn)

Type:int

Parameter:

TypeParameterName
struct insn *insn
153  sn_get_modrm - collect ModRM byte, if any*@insn: &struct insn containing instruction* Populates @insn->modrm and updates @insn->next_byte to point past the* ModRM byte, if any. If necessary, first collects the preceding bytes* (prefixes and opcode(s))
155  If Not nbytes Then Return -EINVAL
159  If bytes[0] != 0xf Then Return -EINVAL
162  If bytes[1] == 0x1 Then
164  Case X86_MODRM_REG(value) == 0
165  Return 0F 01 /0
166  Case X86_MODRM_REG(value) == 1
167  Return 0F 01 /1
168  Case X86_MODRM_REG(value) == 4
169  Return 0F 01 /4
170  Default
171  Return -EINVAL
173  Else if bytes[1] == 0x0 Then
174  If X86_MODRM_REG(value) == 0 Then Return 0F 00 /0
176  Else if X86_MODRM_REG(value) == 1 Then Return 0F 00 /1
178  Else Return -EINVAL
180  Else
181  Return -EINVAL
Caller
NameDescribe
fixup_umip_exceptionxup_umip_exception() - Fixup a general protection fault caused by UMIP*@regs: Registers as saved when entering the #GP handler* The instructions SGDT, SIDT, STR, SMSW and SLDT cause a general protection* fault if executed with CPL > 0 (i