函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\umip.c Create Date:2022-07-27 09:49:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static int identify_insn(struct insn *insn)

返回类型:int

参数:

类型参数名称
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  如果非nbytes则返回:负EINVAL
159  如果bytes[0]不等于0xf则返回:负EINVAL
162  如果bytes[1]恒等于0x1则
164  :X86_MODRM_REG(value)恒等于0
165  返回:0F 01 /0
166  :X86_MODRM_REG(value)恒等于1
167  返回:0F 01 /1
168  :X86_MODRM_REG(value)恒等于4
169  返回:0F 01 /4
170  默认
171  返回:负EINVAL
173  否则如果bytes[1]恒等于0x0则
174  如果X86_MODRM_REG(value)恒等于0则返回:0F 00 /0
176  否则如果X86_MODRM_REG(value)恒等于1则返回:0F 00 /1
178  否则返回:负EINVAL
180  否则
181  返回:负EINVAL
调用者
名称描述
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